Installing XL Fortran V10.1 to co-reside with earlier versions in the same location

The following procedure describes how to install XL Fortran V10.1 and update the runtime packages used by an existing version of XL Fortran in the same location. This procedure assumes the following:
  • You are installing XL Fortran V10.1 to the same location where XL Fortran V 9.1 is already installed (by default, /opt/ibmcmp/).
  • Your current working directory contains all XL Fortran V10.1 packages, and no other RPM packages.
  • The existing runtime component versions listed in Table 1 are installed in the same installation location (by default, /opt/ibmcmp/).
Table 1. XL Fortran SMP and runtime packages (for RHEL4U2 or SLES9 SP2 installations)
Existing XL Fortran V9.1 runtime packages New XL Fortran V10.1 runtime packages
xlsmp.msg.rte-1.5.0-0 xlsmp.msg.rte-1.6.0-0
xlsmp.rte-1.5.0-0 xlsmp.rte-1.6.0-0
xlsmp.lib-1.5.0-0 xlsmp.lib-1.6.0-0
xlf.msg.rte-9.1.0-0 xlf.msg.rte-10.1.0-0
xlf.rte-9.1.0-0 xlf.rte-10.1.0-0
To install XL Fortran V10.1 and update the XL Fortran V9.1 XL SMP and runtime packages:
  1. To avoid future dependency errors, remove the existing runtime packages by issuing the following commands:
    rpm -e xlf.msg.rte-9.1.0-0  --nodeps
    rpm -e xlf.rte-9.1.0-0  --nodeps
    rpm -e xlsmp.lib-1.5.0-0  --nodeps
    rpm -e xlsmp.rte-1.5.0-0  --nodeps
    rpm -e xlsmp.msg.rte-1.5.0-0  --nodeps
    Note: This example shows package names with no applied updates. The -0 fix level will be different if you have applied any updates.
  2. To replace the deleted runtime packages and to install XL Fortran V10.1, issue the following command:
    rpm -ivh *.rpm
  3. As a precaution, make a backup copy of any existing configuration file.
  4. Modify any existing XL Fortran V9.1 configuration file to use the new configuration path:
      # sed -e "s/xlsmp\/1\.5/xlsmp\/1\.6/g" < /etc/installation_path/xlf/9.1/xlf.cfg >
        /etc/installation_path/xlf/9.1/xlf.cfg.new
      # mv /etc/installation_path/xlf/9.1/xlf.cfg.new
        /etc/installation_path/xlf/9.1/xlf.cfg
    where installation_path is the location in which all XL Fortran packages are installed (by default, /opt/ibmcmp/).
    Note: The XL Fortran V9.1 path does not change.
  5. Generate the default XL Fortran V10.1 configuration file:
    # /installation_path/xlf/10.1/bin/xlf_configure -gcc /usr -gcc64 /usr
      -ibmcmp /installation_path/ /opt/ibmcmp/xlf/10.1/etc/xlf.base.cfg
      -o  /etc/installation_path/xlf/10.1/xlf.cfg
    where installation_path is the location in which all XL Fortran packages are installed (by default, /opt/ibmcmp/).