?
Solved

install perl/gcc on Solaris 2.5

Posted on 1997-07-18
2
Medium Priority
?
710 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 300 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:
Suggested Courses
Course of the Month9 days, 5 hours left to enroll

764 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