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/11.1/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 some invocations are not recommended, either
because they delete user-defined or GCC invocations, or because they are not compiler invocation
commands. These include the following commands:
- c89, c89_r, c99, c99_r, cc, cc_r
- cleanpdf, mergepdf, new_install, resetpdf, showpdf, vac_configure
Use the following command to create a symbolic link:
ln –s installation_path/vacpp/11.1/bin/invocation /usr/bin/invocation
where:
- installation_path is the location where you
have installed the compiler packages (by default, this is /opt/ibmcmp/).
- invocation is one of the compiler invocations
(such as xlc)
in installation_path/vacpp/11.1/bin/.