The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-25-2008
susainaj susainaj is offline
Registered User
 

Join Date: Feb 2008
Posts: 1
Finding difficult in installing gcc-3.4.6 complier on Solaris 10.

Hi All,

Can anyone help me in installing gcc-3.4.6 complier on Solaris 10.

1. I have downloaded the gcc-3.4.6.tar.gz from one of the free share
2. While downloading its is seen that it is renamed to gcc-3.4.6.tar.tar
3. On solaris machine I renamed it gcc-3.4.6.tar.gz from gcc-3.4.6.tar.tar
4. then I did gunzip gcc-3.4.6.tar.gz
5. then tar -xvf gcc-3.4.6.tar/*It looksit worked fine*/
6. A directory called gcc-3.4.6 is created
7. Under this directory I created new directory called objdir
8. and ran ../configure from objdir
I received the error called "You must set the environment variable CC to a working compiler"
9. hence I added the enviorment variable
i.e first I added ; CC=cc;export cc did n't worked
CC=/usr/local/cc;export cc; did n't worked
CC=gcc;export cc ; no
CC=gcc-3.4.6; export cc; no
CC=/usr/local/gcc-3.4.6;export cc; did not worked.
10 Even I tried pkgadd -d gcc-3.4.6; I received an error.
11. I download the file on to /export/home/shared/gcc/ directory
12. Do I need to set any path?

Please help me in installing gcc-3.4.6?

Cheers
John
Reply With Quote
Remove advertisements
!!
Forum Sponsor