Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-29-2007, 05:08 PM
|
#1
|
|
Member
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53
Rep:
|
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
|
|
|
|
08-29-2007, 05:34 PM
|
#2
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
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.
|
|
|
|
08-30-2007, 07:05 AM
|
#3
|
|
Member
Registered: Jul 2005
Posts: 450
Rep:
|
Look into /opt
There you have /opt/csw/bin/gcc and the likes, just as Jillagire writes.
|
|
|
|
08-30-2007, 07:22 AM
|
#4
|
|
Member
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53
Original Poster
Rep:
|
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.
|
|
|
|
08-30-2007, 10:31 AM
|
#5
|
|
Member
Registered: Jul 2005
Posts: 450
Rep:
|
Oops, I wrote wrong. gcc is not in /opt. On solaris 10, it is in
/usr/sfw/bin/gcc
|
|
|
|
08-30-2007, 10:49 AM
|
#6
|
|
Member
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53
Original Poster
Rep:
|
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
|
|
|
|
08-30-2007, 11:08 AM
|
#7
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
"/bin/gcc" on a Solaris 9 machine ?
This is a hack.
|
|
|
|
08-30-2007, 11:26 AM
|
#8
|
|
Member
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53
Original Poster
Rep:
|
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
|
|
|
|
08-30-2007, 11:31 AM
|
#9
|
|
Member
Registered: Jul 2005
Posts: 450
Rep:
|
blastwave and CBE has several different versions of gcc to download. It installs automatically for you. I have seen gcc v4.XX at CBE.
|
|
|
|
08-30-2007, 12:27 PM
|
#10
|
|
Member
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53
Original Poster
Rep:
|
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?
|
|
|
|
08-30-2007, 12:51 PM
|
#11
|
|
Member
Registered: Nov 2005
Distribution: Mandrake 10.0
Posts: 53
Original Poster
Rep:
|
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
.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:02 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|