Creating shortcuts to the IBM Open 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 verify the current setting, you can use the echo command:
echo -e "\n $PATH"The PATH variable specifies the directory search path for the executable files of the compiler.
To create a shortcut to the IBM® Open XL C/C++ invocation commands, do one of the following:
- Create symbolic links for the specific drivers from
/opt/IBM/openxlC/17.1.4/bin/to /usr/bin/.Example:
ln -s /opt/IBM/openxlC/17.1.4/bin/ibm-clang /usr/bin/ibm-clang - Add /opt/IBM/openxlC/17.1.4/bin/ to your PATH environment variable.
Example:
PATH=$PATH:/opt/IBM/openxlC/17.1.4/bin/ export PATH
Note: If IBM Open XL C/C++ resides in a
nondefault location, the invocation commands are installed to
/target_dir/opt/IBM/openxlC/17.1.4/bin where target_dir is the target directory for installation specified by the
-b option of the nondefault installation script. You can create a shortcut to the
invocation commands of a nondefault installation by adding the location of the compiler invocations,
target_dir/opt/IBM/openxlC/17.1.4/bin/, to the PATH environment variable.For example, if you installed IBM Open XL C/C++ to the /compiler/xlcpp directory, you would run the commands:
PATH=$PATH:/compiler/xlcpp/opt/IBM/openxlC/17.1.4/bin/
export PATHTip:
For an overview of the installation process, see Installation
workflow diagram.