Installing Sun Studio on your Accelerator
You can download Sun Studio Express from Sun’s website: http://developers.sun.com/sunstudio/downloads/express/
Preflight
Downloading from Sun's Download Center
You will need to provide a current email address, or your Sun login credentials.
Sun’s website generates dynamic download links. You can download the archive to your local machine and SFTP/scp it to your Accelerator, or better if you have Lynx available on your Accelerator, you should be able to download the the file with Lynx.
Follow all the steps until you get to the final downloads listing page. Copy (Cmd + C) the URL from the address bar of your browser.
- To start Lynx:
# lynx
press g, paste the link URL into your terminal, and press Enter.
- When prompted, press
yto accept self-signed certificates. - You may need to Accept Terms & Conditions, and hit the ‘Continue’ link. The page will reload with the download links live.
- Use the cursor keys to move down to, and select the download link for Sun Studio for your platform, for example
StudioExpress-sol-x86-2007-05-29.ii.tar.bz2 263.89 MB. (As a selected item, it may appear in yellow, depending on how you have colors enabled.)\ - Press
dto initiate the download (don’t press Enter, as with other links). - Once the download has completed, select “Save to Disk” under “Standard Download Options” and choose a target destination (such as
/home/admin). It may take a few moments to save. - Once saved, press
qto quit lynx.
Installation
The installation is relatively simple. Decide on a suitable destination for Sun Studio.
/opt/ as a destination.
# cd /opt # bzcat DOWNLOAD-DIRECTORY/StudioExpress-OS-PLATFORM-DATE-ii.tar.bz2 | /bin/tar -xf -
- Edit your
.bashrcfile (or the appropriate rc file for your preferred shell). - Add
/opt/SUNWspro/bin/to your PATH - Add
/opt/SUNWspro/man/to your MANPATH - Reload your environment settings:
# source ~/.bashrc
- Test that
/opt/SUNWspro/bin/ccis recognized in the path:
# which cc opt/SUNWspro/bin/cc
/opt/netbeans-5.5.1/.
As great an IDE NetBeans is, you’re unlikely to need a graphical IDE on a production server that you’re managing through SSH. To remove it:
# rm -R /opt/netbeans-5.5.1/