Running the xlc_install utility for a new installation

The xlc_install utility is located in the root directory of the installation image.
Note: Because the xlc_install utility is written in Perl, you must ensure that Perl is installed on your system before you run the utility. See Verifying that the required GNU, Perl, and Java packages are installed.
When you run the xlc_install utility for a new installation, it does the following:
  • Checks for all prerequisite software packages
  • Uninstalls any previously installed XL C/C++ components
  • Installs all compiler packages into the default location
  • Automatically invokes the new_install utility, which installs the license file and generates the default 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 install IBM XL C/C++ Advanced Edition V8.0 for Linux:
  1. Assuming that the product CD is mounted at the /cdrom location in the system, issue the following commands:
      # cd /cdrom
      # ./xlc_install 
    For additional arguments that you can specify for xlc_install, see xlc_install options.

    If another instance of XL C/C++ for Linux is detected on your system, you are prompted to uninstall it.

  2. Confirm that you want to proceed with the uninstallation. If you choose not to uninstall the existing instance of the compiler, the installation process will end.

    If other versions of the XL SMP and IBM MASS packages are detected on your system, either alone or as part of an XL Fortran Advanced Edition V10.1 for Linux installation, you are prompted to uninstall them.

  3. Confirm that you want to proceed with uninstalling the existing XL SMP and IBM MASS packages. If you choose not to uninstall the previously installed components, the installation process will terminate.
    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 XL Fortran for Linux installation, you will need to run xlf_configure to reconfigure the XL Fortran compiler to point to the default location for these packages. For procedures, see "Running the xlf_configure utility directly" in the XL Fortran Advanced Edition V10.1 for Linux Installation Guide.

    You are presented with the licensing agreement and licensing information.

  4. Read the licensing agreement and licensing information. If you agree to the licensing terms, accept the licensing agreement and licensing information to continue installation.

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

  5. 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 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
    Note: Some command links 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. These include:
    • c89, c89_r, c99, c99_r, cc, and cc_r
    • cleanpdf, mergepdf, new_install, resetpdf, showpdf, vac_configure
If all packages are successfully installed:
  • A message is displayed confirming the successful installation.
  • The configuration file is generated. Its location is /etc/opt/ibmcmp/vac/8.0/vac.cfg. Any previously generated configuration file is renamed and saved in the same directory.
  • The installation log is moved to its permanent location: /opt/ibmcmp/vac/8.0/xlc_install.log.