Solved

install perl/gcc on Solaris 2.5

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

747 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

14 Experts available now in Live!

Get 1:1 Help Now