Syndicate content

Installing Solaris to compile your software

Now a day I like to install Solaris to check that my code compiles and generally runs under that OS.

I think that's a good way to prove that the code is multi-OS ready even if it is only for Unices.

OpenSolaris is free and can be downloaded from Oracle. The last URL I use was:

The system, by default, comes with a directory named /usr/sfw which includes a really old version of gcc. It is possible, though, to move forward with a newer version of the compiler by installing a package. Under Solaris 11.2, this is done with:

sudo pkg install gcc-c++-48

The list of available packages can be determined using the search command:

pkg search g++

and you will get a list of packages in link with g++. Only installing g++ will also install gcc since it depends on it.

The search may give you a list of very specific versions (with an @ character and the version information) which can be specified to install that very version.

Now I also mainly use git so I install that package too in order to retrieve the source files of my projects:

sudo pkg install git

I'm sure you could also install svn and cvs if you are using those type of repositories still.

Finally, I use cmake to create the Makefile that works at once:

sudo pkg install cmake

And I'm ready.

Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165


Terms of Site Index

Find the page/content you are looking for with our index.

  • RAM
    Random Access Memory. Everyone with a computer uses a lot of RAM to run their processes. This is true of any electronic device with some dynamic capabilities (like your cell phone, pocket calculator, watch with calculator, etc.)
  • customer
  • focus
  • function
  • script