Thursday, August 7, 2008

Installing Sun Studio 12 on Ubuntu 8.04.1

This is really just a quick HOWTO on installing Sun Studio 12 on Ubuntu 8.04.1 or Xubuntu for that matter.

Here is a quick Overview of the Sun Studio tool chain and IDE.
===============================================

"Sun[tm] Studio 12 software, available for free on Solaris and Linux
platforms, includes the following:

Parallelizing C, C++, and Fortran compilers
Code-level debugger
Memory debugger
Performance profiling
OpenMP support
IDE
Optimized libraries
Thread analysis"

===============================================
Anyway;

Download yourself the tarfile version of the installer from (Hint:Click "Free Download"):
http://developers.sun.com/sunstudio/downloads/index.jsp

Then update your box so its current and run this;
$ sudo apt-get install netbeans gawk scons

Make sure you in the current dir of the downloaded tar file (Hint:Make a new dir and stick the tar inside as we are going to expand it);

$ bunzip2 -cd SunStudio12ml-linux-x86-200709-ii.tar.bz2 | tar -xvf -

$ mv SunStudio12ml-linux-x86-200709-ii.tar.bz2 ../
$ sudo mv sunstudio12 /opt/
$ sudo mv lib /opt/
$ sudo mv netbeans-5.5.1 /opt/

And that should be all !

To run;

$ /opt/sunstudio12/bin/sunstudio &

If you like, you can,

* Add the following to your PATH environment variable:
/opt/sunstudio12/bin

* Add the following to your MANPATH environment variable:
/opt/sunstudio12/man


If anyone has a better way please *do* comment.
Thanks,
Edward.

6 comments:

Anonymous said...

Thanx, I will try it.

- Thahier.

gruschi said...

Works, thanks.

Gruschi

Zara said...

Thanks so much I am an idiot in Linux but I've done it

Anonymous said...

What do these 4 steps do:

$ mv SunStudio12ml-linux-x86-200709-ii.tar.bz2 ../
$ sudo mv sunstudio12 /opt/
$ sudo mv lib /opt/
$ sudo mv netbeans-5.5.1 /opt/

and how do I undo these steps in future?

Alperen said...

thanks a lot, it has worked for jaunty as well

Alexey said...

It works, thanks. But how to install patches, for example this one
http://sunsolve.sun.com/search/document.do?assetkey=1-21-124874-03-1