Saxywolf
September 3rd, 2009, 12:17 AM
Install Sun Studio 12 Update 1 for Ubuntu 9.04 Jaunty Jackalope; Written September 2, 2009
(not sure if it'll stay on the Sun forum so I put it here)
First, I'm a newb. So this is really just to guide others through the journey. For the most part, I actually had to follow the included instructions rather then the "help" provided elsewhere (like this... hehe) as I usually have to. Sadly thats not what I did the first couple times. Nor do I usually follow the Lego instructions. Please correct me if you spot something wrong (specifically the PATH, since the command to check access to the developers tools didn't exactly work). If any of the versions are different (and even if they aren't) I suggest you read the readme since they actually seem applicable (even if not quite newb friendly... Dear Google, whats csh/sh/ksh/bash?).
Download:
http://developers.sun.com/sunstudio/downloads/
Join, then go for the Free Download
http://developers.sun.com/sunstudio/downloads/thankyou.jsp
Choose Option 2 and you should get:
SunStudio12u1-Linux-x86-tarfile.tar.bz2
Unpack:
Put the folder 'SunStudio12u1-Linux-x86-tar' anywhere
I just dragged it to my desktop
Install:
Set yourself as admin in a terminal:
sudo -s
Move to the /opt folder:
cd /opt/
Run the install:
[YOUR_path_to_installer]/SunStudio12u1-Linux-x86-tar/SunStudio12u1-Linux-x86-tar.sh --accept-license
Set Up Access to the Developer Tools and Man Pages:
e.g. Supposedly this: http://docs.sun.com/app/docs/doc/820-7601/gemls?a=view
see this for more info: https://help.ubuntu.com/community/EnvironmentVariables
Check that SunStudio12 installed to /opt/sunstudio12.1/
Edit the environment variable file
sudo gedit /etc/environment
Most likely PATH should already be there, so just add this with the other paths in quotes
:/opt/sunstudio12.1/bin
I had to add the MANPATH variable so I added a whole bunch of folders as follows:
MANPATH="/usr/share/man:/usr/local/man:/opt/sunstudio12/sunstudio12.1/man"
Test Access to Developer Tools:
This is where my install experience too a different path (get it?)
The Sun page says this command should work:
/usr/bin/version
I still get the "bash: /usr/bin/version: No such file or directory"
But, simply running the command 'version' works the same as the command '/opt/sunstudio12/sunstudio12.1/bin/version*'
Run Sun Studio 12 (wait, this is Netbeans?):
run this command in any terminal (I have no idea what the & does):
sunstudio &
More appropriately, create a launcher (aka shortcut) on your desktop
(not sure if it'll stay on the Sun forum so I put it here)
First, I'm a newb. So this is really just to guide others through the journey. For the most part, I actually had to follow the included instructions rather then the "help" provided elsewhere (like this... hehe) as I usually have to. Sadly thats not what I did the first couple times. Nor do I usually follow the Lego instructions. Please correct me if you spot something wrong (specifically the PATH, since the command to check access to the developers tools didn't exactly work). If any of the versions are different (and even if they aren't) I suggest you read the readme since they actually seem applicable (even if not quite newb friendly... Dear Google, whats csh/sh/ksh/bash?).
Download:
http://developers.sun.com/sunstudio/downloads/
Join, then go for the Free Download
http://developers.sun.com/sunstudio/downloads/thankyou.jsp
Choose Option 2 and you should get:
SunStudio12u1-Linux-x86-tarfile.tar.bz2
Unpack:
Put the folder 'SunStudio12u1-Linux-x86-tar' anywhere
I just dragged it to my desktop
Install:
Set yourself as admin in a terminal:
sudo -s
Move to the /opt folder:
cd /opt/
Run the install:
[YOUR_path_to_installer]/SunStudio12u1-Linux-x86-tar/SunStudio12u1-Linux-x86-tar.sh --accept-license
Set Up Access to the Developer Tools and Man Pages:
e.g. Supposedly this: http://docs.sun.com/app/docs/doc/820-7601/gemls?a=view
see this for more info: https://help.ubuntu.com/community/EnvironmentVariables
Check that SunStudio12 installed to /opt/sunstudio12.1/
Edit the environment variable file
sudo gedit /etc/environment
Most likely PATH should already be there, so just add this with the other paths in quotes
:/opt/sunstudio12.1/bin
I had to add the MANPATH variable so I added a whole bunch of folders as follows:
MANPATH="/usr/share/man:/usr/local/man:/opt/sunstudio12/sunstudio12.1/man"
Test Access to Developer Tools:
This is where my install experience too a different path (get it?)
The Sun page says this command should work:
/usr/bin/version
I still get the "bash: /usr/bin/version: No such file or directory"
But, simply running the command 'version' works the same as the command '/opt/sunstudio12/sunstudio12.1/bin/version*'
Run Sun Studio 12 (wait, this is Netbeans?):
run this command in any terminal (I have no idea what the & does):
sunstudio &
More appropriately, create a launcher (aka shortcut) on your desktop