Solaris / OpenSolarisThis 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.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189
Rep:
mn35,
Simple, brute force:
# find / -type f -name gcc
If it isn't there, go to http://www.sunfreeware.com and get it. You should also get the gnu tools that go with it -- make (the gnu version), automake, autoconf, and whatever dependencies they call for.
I am working on Solaris 8, and it was there when i came, i dont know its history, how can i know if gcc is installed (its is not found on the paths you mentioned above)
Then, it's probably not installed but choogendyk method will tell you for sure.
Quote:
man gcc doesn't give anything.
This isn't a reliable test as manual pages won't be in the MANPATH anyway.
Quote:
I have cc in /usr/ucb/cc
do i download gcc, compile it with cc then use it ?
No, forget about /usr/ucb/cc which is there for historical reason (BSD compatibility for SunOS 4 users in the nineties) and is then of no use for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.