Installing XL C/C++ to the same location as an earlier version (for advanced users)

Use this procedure if you want to install multiple versions of the compiler in the same location, while forcing all versions to use the most recent runtime environment. This option is recommended if you want to continue using the different versions of IBM XL C/C++ for Linux over the long term.

About this task

Multiple versions of IBM XL C/C++ for Linux can co-reside in the same location as long as the most recently released version does not attempt to use any previous versions of the runtime packages.

This procedure assumes the following:

Table 1. XL C/C++ SMP and runtime packages
Existing XL C/C++ V10.1 runtime packages New XL C/C++ V11.1 runtime packages
xlsmp.msg.rte-1.8.0-$F xlsmp.msg.rte-2.1.0.0-$B
xlsmp.rte-1.8.0-$F xlsmp.rte-2.1.0.0-$B
xlsmp.lib-1.8.0-$F xlsmp.lib-2.1.0.0-$B
vacpp.rte-10.1.0-$F vacpp.rte-11.1.0.0-$B
Note: $F is the PTF number of the package currently installed on your system. $B is the build number of the package currently installed on your system.
To install IBM XL C/C++ for Linux, V11.1, and update the IBM XL C/C++ for Linux , V10.1 XL SMP and runtime packages:
  1. Remove the existing runtime packages by issuing the following commands to avoid future dependency errors:
    rpm -e vacpp.rte-10.1.0-0  --nodeps
    rpm -e xlsmp.lib-1.8.0.0  --nodeps
    rpm -e xlsmp.rte-1.8.0.0  --nodeps
    rpm -e xlsmp.msg.rte-1.8.0.0  --nodeps
    Note: This example shows package names with no applied updates.
  2. To replace the deleted runtime packages and to install IBM XL C/C++ for Linux, V11.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 IBM XL C/C++ for Linux , V10.1 configuration file to use the new configuration path:
    sed -e "s/xlsmp\/1\.8/xlsmp\/2\.1/g" 
    < /etc/opt/ibmcmp/vac/10.1/vac.cfg >
    /etc/opt/ibmcmp/vac/10.1/vac.cfg.new
    mv /etc/opt/ibmcmp/vac/10.1/vac.cfg.new
    /etc/opt/ibmcmp/vac/10.1/vac.cfg
    Note: The IBM XL C/C++ for Linux , V10.1 path does not change.
  5. Generate the default IBM XL C/C++ for Linux, V11.1 configuration file:
     installation_path/vacpp/11.1/bin/vac_configure -gcc /usr -gcc64 /usr
      -ibmcmp installation_path/ /opt/ibmcmp/vac/11.1/etc/vac.base.cfg
      -o  installation_path/vac/11.1/etc/vac.cfg.$OSRelease.gcc$gccVersion.
    where installation_path is the location in which all IBM XL C/C++ for Linux, V11.1 packages are installed (by default, /opt/ibmcmp/). $OSRelease is the level of the Operating System, and $gccVersion is the GCC version installed on the system. For example vac.cfg.sles11.gcc432, or vac.cfg.rhel5.5.gcc412..