If you used the xlf_install utility to install the compiler and you elected to create the symbolic links at that time, you have already set up the environment for the invocation commands. Do not perform the procedures in this section.
If you did not elect to create the symbolic links when you installed the compiler and want to be able to invoke the compiler without having to specify the full path, you must perform one of the following tasks:
To use XL Fortran for Blue Gene commands without typing the complete path, you can add the location of the compiler invocations to the PATH environment variable.
If you are using Bourne or Korn shell, use the following command:
export PATH=$PATH:installation_path/xlf/bg/10.1/bin/
If you are using C shell, use the following command:
setenv PATH $PATH:installation_path/xlf/bg/10.1/bin/
where installation_path is the location where you have installed the compiler packages (by default, this is /opt/ibmcmp/).
To use the compiler without typing the complete path, you can create symbolic links in the /usr/bin/ directory for the specific invocations contained in the installation_path/xlf/bg/10.1/bin/ directory.
If you have not already done so when you ran xlf_install, you can create the symbolic links for the following compiler invocations:
Links to some invocations are not recommended, either because they delete user-defined, XL Fortran for Linux, or GCC invocations, or because they are not compiler invocation commands. These include the following commands:
Use the following command to create a symbolic link:
ln -s installation_path/xlf/bg/10.1/bin/invocation /usr/bin/invocation
where:
This example assumes that the entire XL Fortran V10.1 for Blue Gene is installed in the default location /opt/ibmcmp/.
ln -s /opt/ibmcmp/xlf/bg/10.1/bin/blrts_xlf /usr/bin/blrts_xlf