Solved

install perl/gcc on Solaris 2.5

Posted on 1997-07-18
2
694 Views
Last Modified: 2013-12-16
I need some help installing perl 5.
When trying to install perl I discovered that there is no C compiler in Solaris 2.5. There is a script called cc which looks for the link /usr/ccs/bin/ucbcc to the C compiler (which does not exist). So the perl install complains that cc does not seem to be working.

I downloaded a copy of gcc-2.7.2.2.
Configure runs ok and ends with 'Links are now set up to build a native compiler for sparc-sun-solaris2.5.
I then try make LANGUAGES=c but this fails with:
make: Fatal Error: command failed for target cccp.o.

There is no cccp.o in the gcc directory only cccp.1 and cccp.c.

I have no knowledge of C compilers whatsoever so will require some basic instruction. All I really want is the simplest way to successfully install perl.

Any help will be appreciated....
0
Comment
Question by:gormenghast
2 Comments
 
LVL 1

Accepted Solution

by:
mgrcnk earned 100 total points
ID: 1812628
To get a C compiler, you originally had to buy Sun's C compiler and compile gcc for yourself (or just use Sun's).  However, some very nice people already did this and uploaded what they did to anonymous FTP sites.

Get ftp://server.berkeley.edu/pub/x86solaris/compilers/gcc-2.6.3-i486bin.tar.gz

Once you have this:

$ gunzip gcc-2.6.3-i486bin.tar.gz
$ tar xvf gcc-2.6.3-i486bin.tar
It untars into the directory structure (/usr/local/*)
 
Installation insturctions are put in /usr/local
 
$ cd /usr/local
$ ./just-fixinc
This converts certain sun header files so that they can be used by GCC.

Now you have a copy of gcc.  Using this, you should be able to make the gcc2.7.2.2 compile.  Here are my notes:

#
# Installation Instructions for gcc 2.7.2.2
#
# by Chris King, 1 July 1997
#
Get gcc2.7.2.2 from prep.ai.mit.edu:/pub/gnu
 
Unpack under /usr/local/src:
 
> cd /usr/local/src; tar -xzf gcc-2.7.2.2.tar.gz
 
Configure the source:
 
> cd gcc-2.7.2.2
> ./configure --with-gnu-as
 
Build 1st stage:
 
> setenv PATH /usr/local/bin:$PATH
> make LANGUAGES=c CC=gcc
> make stage1
> make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O2"
> make stage2
> make CC="stage2/xgcc -Bstage2/" CFLAGS="-g -O2"
 
$ make compare
        This step compared the stage2 and stage3 binaries of GCC,
they are the same, so we have a good gcc.
 
$ make install CC="stage2/xgcc -Bstage2/" CFLAGS="-g -O2"
 
We have the latest gcc now
 

0
 
LVL 2

Author Comment

by:gormenghast
ID: 1812629
Thanks for your help ...........

I was installing onto a sparc -- so the i486 gcc was not any good.
However you did point me in the right direction and I managed to download a compiled version of gcc-2.7.2.1 from http://smc.vnet.net/solaris_2.5.html.

I did not bother to upgrade this to 2.7.2.2.

I was then able to install perl.


Thanks again............Steve
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
nodeip 9 80
Ubuntu install gnome-session-fallback is failing 4 110
how to check for shares on HP-UX 1 59
Skill Development 15 176
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question