hOW TO INSTALL gcc

hOW TO INSTALL gcc

Post by Alan » Thu, 26 Aug 1999 04:00:00



   When  I try to install "gcc" in my sun solaris 2.4 computer,  I run
command "cc"
An error occur " language optional software package not installed"

How can I solve this problem?
Is there any other method to installed gcc

Thank you

 
 
 

hOW TO INSTALL gcc

Post by Martin Hepwort » Thu, 26 Aug 1999 04:00:00



>    When  I try to install "gcc" in my sun solaris 2.4 computer,  I run
> command "cc"
> An error occur " language optional software package not installed"

> How can I solve this problem?
> Is there any other method to installed gcc

> Thank you

Alan
So how did you install gcc? If you pulled the package from
www.sunfreeware.com you'll need /usr/local/bin in your path AND use
'gcc' not 'cc'.

martin

 
 
 

hOW TO INSTALL gcc

Post by X#$_0 » Thu, 26 Aug 1999 04:00:00



>    When  I try to install "gcc" in my sun solaris 2.4 computer,  I run
> command "cc"
> An error occur " language optional software package not installed"

> How can I solve this problem?
> Is there any other method to installed gcc

> Thank you

you want to run gcc, not cc. cc is a little stub program in /usr/ccs/bin
which just tells you that you haven't installed sun's compiler.
 
 
 

1. HOWTO build/install GCC 3.1 from SRPM w/o replacing GCC 2.96 ?

OK. I downloaded the latest and greatest GCC 3.1 SRPM from Redhat's
FTP site:

ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/gcc-3.1-7.s...

Now I'd like to build and install GCC 3.1 along side GCC 2.96 on my RH
7.3 system. How is this done? FWIW, when I do the following,

    % cd /usr/src/redhat
    % rpm -Uvh SRPMS/gcc-3.1-7.src.rpm
    % rpm -bb SPECS/gcc31.spec

I end up with i386.rpm's that replace the existing GCC 2.96
installation.

FWIW, I don't really care where the resulting i386.rpm binaries install
GCC 3.1 on my system -- e.g., a special directory (e.g.,
/usr/share/gcc3.1), or in the "usual" installation paths (e.g.,
/usr/bin/gcc3, /usr/include/g++-3, /usr/lib/gcc-lib, etc.), whatever.
I just need to make sure the GCC 3.1 installation[1] is functional, and
that it does not replace or corrupt the existing GCC 2.96 installation.

[1] Specifically, gcc and g++ (and their supporting programs [e.g.,
cpp]) need to be functional. I'm not using any of the other compilers in
the GCC 3.1 bundle.

[n.b. I've already downloaded and installed the other prerequisites --
e.g., the latest binutils, the latest glibc, etc. Also, I *need* to
build GCC 3.1 from its sources. Downloading someone else's precompiled
i386 RPMs of GCC 3.1 is not an option for me...]

Jim

2. Scsh (a Unix Scheme shell) FAQ

3. Install gcc without gcc

4. Digital DS21140 Tulip, Speed/Duplex setting.

5. After installing gcc-2.7.0, all make, gcc, etc stop working!

6. Need help getting SMail up

7. installing GCC

8. Denyning access after failed logins

9. Problem installing gcc-2.4.5

10. installing gcc from binary

11. How to install gcc software

12. Installing gcc

13. install gcc (Solaris 2.8 - intel )