Running the install utility for a new installation

The install utility is the recommended tool for installing XL C/C++. The utility is located in the root directory of the installation image.

Before you begin

Ensure that Perl is installed on your system before you run the installation. See Verifying that the required GNU and Perl packages are installed.

About this task

When you run the install utility for a new installation, the utility performs the following tasks:
  • Detects the current architecture (big endian or little endian)
  • Automatically invokes the xlc_install utility to install all compiler packages into the default location, /opt/ibm/, and configure the compiler

To run the install utility to install IBM® XL C/C++ for Linux, V13.1.6:

  1. If the product DVD is mounted on the /cdrom directory in the system, issue the following commands:
       cd /cdrom
       ./install    
    • If another instance of IBM XL C/C++ for Linux is detected on your system in the same installation directory, you are prompted to uninstall the C++ runtime package and SMP runtime package. Confirm that you want to proceed with the uninstallation. If you choose not to uninstall the existing C++ runtime package and SMP runtime package, the installation process will end.
    • If other versions of the IBM SMP and MASS packages are detected on your system either alone or as part of an installation of IBM XL Fortran for Linux, V15.1, you are prompted to uninstall them. Confirm that you want to proceed with uninstalling the existing IBM SMP and MASS packages. If you choose not to uninstall the previously installed components, the installation process will end.
  2. Read the license agreement and licensing information. If you agree to the licensing terms, accept the license agreement to continue installation.

    You are prompted to create symbolic links for the compiler invocations in the /usr/bin/ directory.

  3. Optional: Create the symbolic links.
    Tip: An alternative to this step is to add the path that contains the compiler invocations to the PATH environment variable. See Setting the PATH environment variable to include the path to the compiler invocations.

    If you chose to create symbolic links, the following links are created in the /usr/bin/ subdirectory:

    • gxlc
    • gxlc++
    • gxlC
    • xlc
    • xlc++
    • xlC
    • xlc_r
    • xlc++_r
    • xlC_r
    For more information about other specialized invocations that might be available, refer to IBM XL C/C++ for Linux, V13.1 Compiler Reference, "Invoking the compiler".
    Note: Symbolic links of these commands are not created in /usr/bin/, either because they might delete user-defined or GCC-related 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
If all packages are successfully installed:
  • The install script returns 0 and the following message is displayed confirming the successful installation:
    Installation and configuration successful
    Note: NLS is not supported for messages that are issued by the install utility.
  • The configuration file is generated. Its location is /opt/ibm/xlC/13.1.0/etc/xlc.cfg.$OSRelease.gcc$gccVersion. For example, /opt/ibm/xlC/13.1.0/etc/xlc.cfg.sles11.gcc432 or /opt/ibm/xlC/13.1.0/etc/xlc.cfg.rhel6.2.gcc446.


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us