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:

http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html

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
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

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

  • cl

    cl is the C and C++ compiler of Microsoft. This is the default compiler used by Visual Studio when compiling C or C++ files.

  • hard drive

    A hard drive is a device that save a large quantity of data for later recollection.

    Most hard drives today use a magnetic system to save the data. However, those do get really hot and tend to break easily because they use a mechanical head (after 4 to 5 years.) Yet, they have an incredible capacity with drives that can hold as much as 2Tb.

    New modern drives use flash technology. This is like your USB thumb drive. It does not get hot, it is silent, it has much faster read access (no head to move.) It has two drawback: (1) it has a rather slow write and (2) the capacity is still quite small (at time of writing we are starting to get 128Gb drives...) The price is also much higher, but if you consider that these drives will probably last you twice as long as the magnetic drives and you won't need extraneous cooling systems, overall, it probably still worth it.

  • policy
  • template
  • view