Enabling the man pages

Man pages are provided for the compiler invocation commands and other utilities that are supplied with the compiler.

The IBM® XL C/C++ for Linux®, V11.1 man pages support the following locales:

However, before you can read the compiler-supplied man pages, you must add the full directory path to the MANPATH environment variable. The command that accomplishes this depends on the Linux shell you are using.

To set the MANPATH environment variable using the Bourne, Korn, or BASH shell, use the following command:
export MANPATH=installation_path/vacpp/11.1/man/LANG:$MANPATH

where LANG is any of the language locales listed above.

To set the MANPATH environment variable using the C shell, use the following command:
setenv MANPATH installation_path/vacpp/11.1/man/LANG:$MANPATH
where installation_path is the location where you have installed the XL C/C++ packages (by default, this is /opt/ibmcmp/) and where LANG is any of the language locales listed above.
Note: To set this variable in the Bourne, Korn, or BASH shell so that it applies to all users, add the commands to the file /etc/profile. To set it for a specific user only, add the commands to the file .profile in the user's home directory. To set this variable in the C shell, add the commands to the file /etc/csh.cshrc. To set it for a specific user only, add the commands to the file .cshrc in the user's home directory. The environment variable is set each time the user logs in.

To test whether the manual pages have been successfully installed, open one or more of the manual pages, as described in Viewing the manual pages.