Installing GCC on OpenSolaris
19 05 2008*NEW* Click here for command line instructions, plus how to install gmake and subversion!
Are you using the new OpenSolaris, released May 2008?
If you have tried to ./configure any sources, you will find that you can’t, because the gcc isn’t in your PATH.
To get gcc on your PATH, do the following:
- System > Administration > Package Manager
- Search all packages for gcc
- Install SUNWgcc
- Once installed, open Terminal (right click on desktop)
- Use: export PATH=$PATH:/usr/sfw/bin
- Now everything should be fine!












Indubitably.
Great directions, I appreciate it.
Short and Sweet. These instructions worked for me too.
Thanks.
i did the export..but when i run the configure script for installing gcc, i get the error no proper compiler found
Hi nkc,
Did you use a different Terminal window to run configure than you used to export gcc? Or did you close the Terminal window which you used the export command in before using configure?
The best thing to try is doing the following:
echo “export PATH=$PATH:/usr/sfw/bin” >> ~/.bashrc
This will add the export line to your .bashrc file and will be permanent across reboots and the closing of Terminal windows, etc
HTH,
Ben
[...] GCC on OpenSolaris 19 05 2008 Article has moved to here Possibly related posts: (automatically generated)New to OpenSolaris 2008.05 – I [...]
[WORDPRESS HASHCASH] The comment’s server IP (66.135.48.201) doesn’t match the comment’s URL host IP (76.74.255.123) and so is spam.
Dear Mr please help me
I don’t have Internet Connection on my OpenSOlaris Box
How I can Download gcc on my Box and install it without
internet or IPS
please help
$ pfexec pkg install gcc-dev
or
$ pfexec pkg install gcc-dev-4