LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 08-29-2007, 06:08 PM   #1
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Rep: Reputation: 15
pkg-get install gcc ERROR: gcc unrecognized


Hello, I've been asked to setup a Solaris file server for windows clients for a small company. At my home office i run slackware 10.2 server with sendmail,apache,samba. I'm totally new to solaris, my contact person at this company does not know much about this system. So I started from scratch here is what I have accomplished. Configured lan and internet access, downloaded and unzipped Samba. Started to configure but ahhh no complier!! Surfed to blastwave.org followed the howto's on pkg-get and wget successfully. Here is my issue. I type pkg-get install gcc and receive the following ERROR: gcc unrecognized. I've googled and have hit a stalemate. Can someone please shed some light as to what I need to change?

Thank You

Raidmax
 
Old 08-29-2007, 06:34 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
What Solaris version are you using ? Latest already bundle gcc, apache, samba and the likes.

About pkg-get, that just means there is no package named gcc.

You probably want gcc3core or gcc4core.
 
Old 08-30-2007, 08:05 AM   #3
kebabbert
Member
 
Registered: Jul 2005
Posts: 463

Rep: Reputation: 41
Look into /opt

There you have /opt/csw/bin/gcc and the likes, just as Jillagire writes.
 
Old 08-30-2007, 08:22 AM   #4
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
thank you for the reply. the solaris version is nine. I'll check out /opt for gcc3core or gcc4core when I get to the company this morning.
 
Old 08-30-2007, 11:31 AM   #5
kebabbert
Member
 
Registered: Jul 2005
Posts: 463

Rep: Reputation: 41
Oops, I wrote wrong. gcc is not in /opt. On solaris 10, it is in
/usr/sfw/bin/gcc
 
Old 08-30-2007, 11:49 AM   #6
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
thanks kebabbert i looked in opt before i read your latest post ....went from bummer to What a beautiful day!!! found gcc in /bin version is 3.4.3

Thanks again!

Raidmax
 
Old 08-30-2007, 12:08 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
"/bin/gcc" on a Solaris 9 machine ?

This is a hack.
 
Old 08-30-2007, 12:26 PM   #8
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
kebabbert ,jilliagre where can I find a howto on compiling this(gcc)? Again I did not build this server and I'm a newbie to solaris. Can you please point me to where I would find a howto for gcc on solaris 10?

Thank You,

Raidmax
 
Old 08-30-2007, 12:31 PM   #9
kebabbert
Member
 
Registered: Jul 2005
Posts: 463

Rep: Reputation: 41
blastwave and CBE has several different versions of gcc to download. It installs automatically for you. I have seen gcc v4.XX at CBE.
 
Old 08-30-2007, 01:27 PM   #10
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
kebabbert thanks so much now have different issue I don't know if the system was powered down incorrectly when I was not here but my experience tells me it was, everything I've done up to this point I no longer can verify. Tried to wget the gcc and got wget: not found Ahhh checked my /tmp and nothing is in there that was there yesterday not samba, etc. Here is the output of the who command
root console aug 30 10:05 (:0)
root pts/3 aug 30 10:05 (:0.0)
root pts/5 aug 30 10:05 (0:0)
root pts/4 aug 30 10:05 (0:0)

ok when I originally began the setup they were logging in as user genesis with password of root. Obviously I inquired as to roots password and was told and confirmed it was also root. Up until this morning configuring as root things were going fine. What do i need to do? My background is windows its a profile thing right?
 
Old 08-30-2007, 01:51 PM   #11
Raidmax
Member
 
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53

Original Poster
Rep: Reputation: 15
wrong sorry login username: genesis, password: 23genesis, then su root:root. Past two days no problems. Now login genesis with password and I'm getting

The DT messaging system could not be started.
To correct the problem:

1. Choose [OK] to return to the login screen.
2. Select Failsafe Session from the login screen's option menu and login.
3. Check to see that the hostname is correct in these locations:
/etc/src.sh
/etc/hosts
/usr/adm/inetd.sec

4. Check to see any magic cookie related error messages in these locations:
/var/adm/messages
$HOME/.dt/erroelog

For additional information, see the DT User's Guide


.
 
  


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
gcc unrecognized option ruben22 Linux From Scratch 9 11-12-2008 05:41 AM
gcc: unrecognized option `-prefer-non-pic' Noodles25 Linux - Software 3 04-19-2007 08:44 PM
have gcc compilation error during gcc installtion in linuxfromscratch vbshanmugaprakash Linux - General 3 12-13-2006 06:52 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 03:13 PM
GTK+ 2.0 / pkg-config / gcc radiohead_rocks Programming 18 01-26-2004 05:46 PM


All times are GMT -5. The time now is 09:46 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration