Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i was wondering how to install gcc as i am having so many problems
1 . i download the packaged from gnu.org
2. i unzip
3. i untar ( gives me directory checksum error )
4. i go to gcc.3.4.3/ folder that just extracted
5. i set CC=/export/home/me/gcc-3.4.3/gcc
6. i type ./configure ( *** You must set the environment variable CC to a working compiler.
)
as u can see no 3 and 6 always give me problem.
gcc is a C Compiler.. why u need another C Compiler to compile this C Compiler?
any idea?
the correct step for installing gcc is
1. untar
2. ./configure
3. make
4. make install
You need a compiler to compile any program. I think you should look for installing binary version of GCC for your distribution. Search on the distribution site.
"configure" needs a WORKING compiler. It tests this by attempting to compile and run a small program. Can you code up a short "hello" program AND successfully run it?
A WORKING compiler needs an assembler, since gcc produces assembly code and then executes the assembler to produce the object file. You did not mention which version of Solaris you were using. With Solaris 8 (and may be true with other versions), the assembler was placed into /usr/ccs/bin, but only if you selected to install the development packages. The file you are looking for is /usr/ccs/bin/as.
Also, I think it would be much simpler to get gcc from "www.sunfreeware.com" and install the precompiled gcc package instead of trying to install gcc from source. If you are missing the assembler, that must be resolved first since even a precompiled gcc is useless without it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.