Solved

install perl/gcc on Solaris 2.5

Posted on 1997-07-18
2
699 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
UNiX Script filesystem space usage 19 79
Convert OverPunch 25 67
AIX 5.x set up arrow to recall 11 64
check the file dates in unix 14 29
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…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

733 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