Setting up the environment for the invocation commands

If you used the xlc_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:

Setting the PATH environment variable to include the path to the XL C/C++ for Blue Gene invocations

To use XL C/C++ 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/vacpp/bg/8.0/bin/

If you are using C shell, use the following command:

setenv PATH $PATH:installation_path/vacpp/bg/8.0/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/vacpp/bg/8.0/bin/ directory.

If you have not already done so when you ran xlc_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 C/C++ 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/vacpp/bg/8.0/bin/invocation /usr/bin/invocation

where:

Basic example: Creating a symbolic link to the blrts_xlc compiler invocation

This example assumes that the entire XL C/C++ V8.0 for Blue Gene is installed in the default location /opt/ibmcmp/.

ln -s /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc /usr/bin/blrts_xlc