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!

Actions

Informations

DeliciousFacebookDigg
RSS FeedStumbleUponTwitter

8 responses to “Installing GCC on OpenSolaris”

26 05 2008
Muffins (23:53:25) :

Indubitably.

20 07 2008
Mark (23:28:22) :

Great directions, I appreciate it.

31 08 2008
Ron Fredericks (07:32:29) :

Short and Sweet. These instructions worked for me too.

Thanks.

13 06 2009
nkc (19:02:23) :

i did the export..but when i run the configure script for installing gcc, i get the error no proper compiler found

19 06 2009
Ben (16:33:24) :

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

23 07 2009
Installing GCC on OpenSolaris « #! (20:10:39) :

[...] 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.

18 10 2009
Hosam Al Ali (09:40:36) :

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

19 12 2009
Felipe Alfaro Solana (01:13:25) :

$ pfexec pkg install gcc-dev

or

$ pfexec pkg install gcc-dev-4

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WP Hashcash