Setting the PATH environment variable to include the path to the compiler invocations

To use XL Fortran for Linux commands without typing the complete path, you can add the location of the compiler invocations to the PATH environment variable.

If you are using the Bourne, Korn, or BASH shell, use the following command:
export PATH=$PATH:installation_path/xlf/10.1/bin/
If you are using C shell, use the following command:
setenv PATH $PATH:installation_path/xlf/10.1/bin/
where installation_path is the location where you have installed the compiler packages (by default, this is /opt/ibmcmp/).
Note: To set this variable in the Bourne, Korn, or BASH shell so that it applies to all users, add the commands to the file /etc/profile. To set it for a specific user only, add the commands to the file .profile in the user's home directory. In the C shell, add the commands to the file /etc/csh.cshrc. To set it for a specific user only, add the commands to the file .cshrc in the user's home directory. The environment variable is set each time the user logs in.