Setting Up the Compiler
Systems & Access :: Learning to Use :: Sun Computing Resource
To set up the Sun compilers, you should source setup.csh or setup.sh, depending on the shell you are using
source /usr/spac/sparcompilers/default/setup.csh
or
source /usr/spac/sparcompilers/default/setup.sh
To set up the MPI compiler, you should source setup.csh or setup.sh, depending on the shell you are using
source /usr/usc/mpich/default/setup.csh
or
source /usr/usc/mpich/default/setup.sh
Various types of MPI compilers can be found under the /usr/usc/mpich/ directory. The appropriate setup.csh or setup.sh needs to be sourced every time you login to set up the environment variables and the path variable.