Creating shortcuts to the XL C/C++ invocation commands

The compiler invocation commands are not automatically installed in /usr/bin/. To invoke the compiler without having to specify the full path, create a shortcut to the invocation commands.

To create a shortcut to the XL C/C++ invocation commands, do one of the following:

Either
  • Create symbolic links for the specific drivers from /opt/IBM/xlc/13.1.0/bin/ and /opt/IBM/xlC/13.1.0/bin/ to /usr/bin/.

    Example:

    ln -s /opt/IBM/xlC/13.1.0/bin/xlc /usr/bin/xlc
or
  • Add /opt/IBM/xlc/13.1.0/bin/ and /opt/IBM/xlC/13.1.0/bin/ to your PATH environment variable.

    Example:

    PATH=$PATH:/opt/IBM/xlC/13.1.0/bin/
    export PATH
Note: If XL C/C++ resides in a non-default location, the invocation commands are installed to /target_dir/opt/IBM/xlC/13.1.0/bin where target_dir is the target directory for installation specified by the -b option of the non-default installation script. You can create a shortcut to the invocation commands of a non-default installation by adding the location of the compiler invocations, target_dir/opt/IBM/xlC/13.1.0/bin/, to the PATH environment variable.

For example, if you installed XL C/C++ to the /compiler/xlcpp directory, you would run the commands:

PATH=$PATH:/compiler/xlcpp/opt/IBM/xlC/13.1.0/bin/
export PATH