Creating symbolic links to the compiler invocations
To use the compiler without typing the complete path, you can create symbolic links in the /usr/bin/ directory for the specific invocations that are contained in the installation_path/xlC/13.1.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:
- gxlc
- gxlc++
- gxlC
- xlc
- xlc++
- xlC
- xlc_r
- xlc++_r
- xlC_r
Links to the following invocations are not recommended, either
because they delete user-defined or GCC invocations, or because they
are not compiler invocation commands.
- c89, c89_r, c99, c99_r, cc, cc_r
- cleanpdf, mergepdf, new_install, showpdf, xlc_configure
Enter the following command to create a symbolic link:
ln –s installation_path/xlC/13.1.0/bin/invocation /usr/bin/invocation
where:- installation_path is the location where you have installed the compiler packages. By default, this is /opt/ibm/.
- invocation is one of the compiler invocations (such as xlc) in installation_path/xlC/13.1.0/bin/.