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®, V11.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, V11.1 if all the following conditions have been met:
  • The base version of IBM XL C/C++ for Linux, V11.1 is already successfully installed in the /opt/ibmcmp/ directory.
  • The update package has been uncompressed and unpacked on the system.
When you run the xlc_install utility to apply an update, it does the following:
  • Checks for all prerequisite software packages
  • Uninstalls IBM XL C/C++ for Linux, V11.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, V11.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, dec2010 indicates a shipment date in December of 2010.)
  2. Issue the following command:
      ./xlc_install -U 
    For additional arguments that you can specify for xlc_install, see xlc_install options.

    You are prompted to uninstall any previously installed IBM XL C/C++ for Linux, V11.1 packages.

  3. Confirm that you want to proceed with uninstalling the outdated packages.

    You are prompted to uninstall any IBM SMP and MASS packages that were previously installed with IBM XL C/C++ for Linux .

  4. Confirm that you want to proceed with uninstalling the existing IBM SMP and MASS packages.
    Note: xlc_install will uninstall these packages from their existing location and reinstall them to the default location, /opt/ibmcmp/. Therefore, if they were previously installed in a non-default location as part of an IBM XL Fortran installation, you will need to 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, V13.1 Installation Guide.

    You are presented with the licensing agreement and licensing information.

  5. Accept the licensing agreement and licensing information.

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

  6. Optionally, create the symbolic links.
    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/vac/11.1/etc/ vac.cfg to replicate those changes in the newly generated configuration file.