LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


Reply
  Search this Thread
Old 01-23-2007, 08:49 PM   #1
just_a_kid
LQ Newbie
 
Registered: Dec 2006
Posts: 24

Rep: Reputation: 15
Failed to Installed GCC


Hi

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

Am i missing something?
Thanks
 
Old 01-23-2007, 10:30 PM   #2
nikm
LQ Newbie
 
Registered: Mar 2005
Posts: 24

Rep: Reputation: 15
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.
 
Old 01-24-2007, 03:26 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
And gcc is likely to be already installed if you have a recent version of Solaris.
 
Old 01-24-2007, 07:34 AM   #4
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
IIRC, there's also a gcc package available on sunfreeware...
 
Old 02-09-2007, 10:22 AM   #5
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
"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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS - 5.4. GCC-3.4.3 - Pass 1 - Failed cruiseoveride Linux From Scratch 7 06-07-2007 10:34 PM
Failed to install gcc-2.95.3 in Fedora 3 RedAlert Fedora 1 01-07-2007 05:49 PM
Compiling gcc without any gcc installed my_kappa Linux - Software 5 01-30-2006 12:15 AM
Rollback of gcc failed and rpm is not working syavne Fedora 2 12-01-2005 05:52 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration