Updating a basic installation using the xlc_install utility

The xlc_install utility is the recommended tool for updating a basic installation of IBM® XL C/C++ for Linux, V13.1. It is located in the root directory of the installation image.

About this task

You can use the xlc_install utility to update IBM XL C/C++ for Linux, V13.1 if all the following conditions have been met:
  • The base version of IBM XL C/C++ for Linux, V13.1 is already successfully installed in the /opt/ibm/ directory.
  • The update package has been uncompressed and unpacked on the system.
When you run the xlc_install utility to apply an update, it performs the following tasks:
  • Checks for all prerequisite software packages
  • Uninstalls IBM XL C/C++ for Linux, V13.1 packages
  • Installs updated compiler packages into the default location
  • Automatically invokes the new_install utility, which installs the license file, renames the old configuration file, and generates a new configuration file
  • Optionally creates symbolic links in /usr/bin/ to the compiler invocation commands
  • Generates an installation log in the /tmp/ directory
To run the xlc_install utility to apply an update for IBM XL C/C++ for Linux, V13.1:
  1. Change to the directory in which you have unpacked the update package:
      cd /home/root/update/xlC/mmmYYYY
    where mmmYYYY is the month and year of the update shipment date. (For example, dec2014 indicates a shipment date in December of 2014.)
  2. Install the update by issuing the following command:
      ./xlc_install -U 
    For additional arguments that you can specify for xlc_install, see xlc_install options.
  3. Confirm that you want to uninstall any previously installed IBM XL C/C++ for Linux, V13.1 packages.
  4. Confirm that you want to uninstall any IBM SMP and MASS packages that were previously installed with IBM XL C/C++ for Linux.
    Note: xlc_install uninstalls these packages from their existing location and reinstalls them to the default location, /opt/ibmcmp/. Therefore, if they were previously installed in a nondefault location as part of an IBM XL Fortran installation, you must run xlf_configure to reconfigure the IBM XL Fortran compiler to point to the default location for these packages. For procedures, see "Running the xlf_configure utility directly" in the IBM XL Fortran for Linux, V15.1 Installation Guide.
  5. Accept the license agreement and licensing information.
  6. Optionally, create the symbolic links for the compiler invocations in the /usr/bin/ directory.
    Note: 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 choose 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

  7. If you customized the previously generated configuration file, manually edit installation_path/xlC/13.1.0/etc/xlc.cfg.$OSRelease.gcc$gccVersion to replicate those changes in the newly generated configuration file.


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