General Questions
Q:
What is this tarball archive?
A:
The tarball archive or installable image provided here is for an easy installation of the Sun Studio 11
software tools, patches, and product license you will need to build applications.
- Download the tarball into a scratch download directory on your system.
For example, /var/tmp.
- Unpack the tarball, into a directory of your choice, using this command:
% bzcat DOWNLOAD-DIRECTORY/sunstudio11-OS-PLATFORM-DATE-ii.tar.bz2 | /bin/tar -xf
You do not need to be super-user or administrator. No package information is recorded, so you cannot apply
additional patches to this image.
Back to top
Q:
What other setup do I need to have, in order to use this software?
A:
After installing the software, you should update your PATH and MANPATH shell variables to your installation and documentation directories or modify your home directory's .cshrc file (for C shell) or .profile file (for Bourne or Korn shells) to make these changes permanent.
To update variables if you use csh:
- Login to your account
% setenv PATH [installpath]/bin:$PATH
% setenv MANPATH [installpath]/man:$MANPATH
To update variables if you use sh (or ksh):
- Login to your account
% PATH=[installpath]/bin:$PATH ; export PATH
% MANPATH=[installpath]/man:$MANPATH ; export MANPATH
Note: Replace [installpath], in either case, with the pathname where you installed the tools.
Back to top
Q:
What are the system requirements and what OS patches do I need to have on my system to make this software
work?
A:
The information for system requirements and OS patches is contained in the
Sun Studio 11 Release Notes. You can safely ignore the instructions that deal with package install, as they are not applicable in this case.
Back to top
Q:
What level of support can I get for this tarball archive?
A:
Tarball archives are not Solaris packages and so you cannot apply patches to this image. In order to get full support, we recommend that you download the package version.
The tarball archives are supported by the Sun Developer Expert Assistance Program described there.
Back to top
Q:
How do I start the IDE and build and run a simple application?
A:
You start the Sun Studio IDE by using the sunstudio command.
Here is a simple procedure you can follow to start the IDE, create an application, build it, debug it and run the
application:
Login
Start the IDE by typing:
% sunstudio &
To Create a Application
- Click on File > New
- Select, from the New Wizard, the type of file(s) you want to create
- Choose C files or C++ Files
- Choose Empty C File (if you chose C files above)
- Follow the Wizard to create a new Name and Location for this program
- Type in your program code
- Save it using File > Save
To Create a Makefile
- Click on File > New
- Select, from the New Wizard, Makefiles and create a new Makefile
In the New Wizard, make sure you use the source file created in your application for your makefile
To Build an Executable:
- Within the IDE, navigate to the executable's makefile
- Select the makefile and choose Build > Make...
The Make Dialog box will open and display properties of the makefile
a. To remove intermediate files (like the object files), select the clean
target from the Targets combo box and click Make
b. To run the make command on a specific target, select the target or type
it into the Targets text box and click Make
The IDE will display make messages and compiler messages in the Output Window.
To Run the Executable:
- Within the IDE, navigate to the executable
- Choose Build > Execute
For more information, see the sunstudio(1) man page.
Back to top