Solved

install perl/gcc on Solaris 2.5

Posted on 1997-07-18
2
690 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.:

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now