Table of Contents

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.

  1. To start Lynx:
   # lynx
   

press g, paste the link URL into your terminal, and press Enter.

  1. When prompted, press y to accept self-signed certificates.
  2. You may need to Accept Terms & Conditions, and hit the 'Continue' link. The page will reload with the download links live.
  3. 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.)\
  4. Press d to initiate the download (don't press Enter, as with other links).
  5. 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.
  6. Once saved, press q to quit lynx.

Installation

The installation is relatively simple. Decide on a suitable destination for Sun Studio.

If you plan to use production - not Express - editions of the Sun Studio compiler and tools, do not use /opt/ as a destination.

# cd /opt
# bzcat DOWNLOAD-DIRECTORY/StudioExpress-OS-PLATFORM-DATE-ii.tar.bz2 | /bin/tar -xf -
  1. Edit your .bashrc file (or the appropriate rc file for your preferred shell).
  2. Add /opt/SUNWspro/bin/ to your PATH
  3. Add /opt/SUNWspro/man/ to your MANPATH
  4. Reload your environment settings:
   # source ~/.bashrc
   
  1. Test that /opt/SUNWspro/bin/cc is recognized in the path:
   # which cc
   opt/SUNWspro/bin/cc
   

If you following these installation steps, you'll find, by default, the latest edition of Sun's open-source Java IDE, NetBeans 5.5 has been placed in the /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/