LinuxQuestions.org
Visit Jeremy's Blog.
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 06-08-2009, 10:28 AM   #1
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Rep: Reputation: 16
how to install gcc in solaris express developers edition


hi
i was unable to install gcc in sxde
i have got error which says
Make:fatal error command failed for target `all-gcc`
i searched a lot in internet but no helo..at lost i got headache
so please help guys..its urgent
 
Old 06-08-2009, 11:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Isn't gcc installed in /usr/sfw/bin/gcc as it is in Solaris 10? Also make should be installed at /usr/ccs/bin/make.
 
Old 06-08-2009, 04:26 PM   #3
joe262
LQ Newbie
 
Registered: Apr 2009
Distribution: gentoo, xubuntu, opensuse, solaris 10, opensolaris, centos
Posts: 12

Rep: Reputation: Disabled
yeah

gcc is in /usr/sfw/bin/gcc

what exactly are you trying to build? does it require gmake?
gmake is located in /usr/sfw/bin/gmake

also, depending on what youre trying to build and how, you may need to specify the location of GCC, try setting CC=/usr/sfw/bin/gcc
and MAKE=/usr/sfw/bin/gmake

hope this helps
 
Old 06-08-2009, 07:22 PM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
What I typically do is just set CC=gcc, make sure my PATH includes the directories where gcc and gmake are, make sure the directories in the path are in the order I want so that, for example, /usr/sfw/bin gets checked before, say, /usr/ccs/bin, and then make sure I always say `gmake` rather than `make`.

On the other hand, I haven't typically built gcc itself. I've gotten gcc from sunfreeware in the past, and, now, on my T5220's with Solaris 10, I'm using the cooltools version which is a gcc front end to the Sun compilers.

Why are you building gcc when you already have it?
 
Old 06-09-2009, 03:23 AM   #5
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Original Poster
Rep: Reputation: 16
how to install gcc in solaris express developers edition

but i am not getting in my terminal when i am typing gcc
simply is it saying gcc command not found
mena s that gcc is installed into my system or not
 
Old 06-09-2009, 03:47 AM   #6
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
You just have to get your environment variable $PATH set correctly or use the full path to gcc.

Type `/usr/sfw/bin/gcc` or put /usr/sfw/bin in your PATH.
 
Old 06-09-2009, 04:49 AM   #7
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Original Poster
Rep: Reputation: 16
how to install gcc in solaris express developers edition

thank you...thanks a lot..its working ..working.....once thanks you friend
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to install Solaris Express Community Edition tamtam Solaris / OpenSolaris 5 10-22-2008 03:56 PM
Is GCC compiler included in Solaris Express Developer Edition 1/08 ? LinuxNewbie999 Solaris / OpenSolaris 2 03-25-2008 09:55 AM
Solaris Express Developer Edition 1/08 available crisostomo_enrico Solaris / OpenSolaris 1 02-09-2008 09:01 AM
Solaris Express Developer Edition 9/07 tuxianD Solaris / OpenSolaris 2 11-24-2007 09:00 PM
Patching Solaris Express Developer Edition (05/07) Reisswolf Solaris / OpenSolaris 3 11-08-2007 08:06 AM

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

All times are GMT -5. The time now is 01:54 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