Installing XL C/C++ to a nondefault location (Ubuntu)

Use this procedure if you want to allow each version to use the runtime environment that was shipped with it. This option is recommended if you want to phase a migration to IBM® XL C/C++ for Linux, V13.1.4.

About this task

To maintain multiple versions of IBM XL C/C++ for Linux in separate locations on the same system, you will need to install IBM XL C/C++ for Linux, V13.1.4 to a separate location from all other versions of IBM XL C/C++ for Linux. Use this procedure if you want to install all compiler packages to a single nondefault location.

Procedure

  1. Create a chroot directory by issuing the following commands:
       mkdir </path/to/chroot_dir>
       cd </path/to>
       debootstrap  --arch ppc64el trusty chroot_dir \
       http://ports.ubuntu.com/ubuntu-ports

    where </path/to> is a directory of your choice. </path/to/chroot_dir> is assumed to be the root directory of chroot.

    For detailed information about chroot, see the system man page for chroot/debootstrap or the online manual at https://help.ubuntu.com/community/BasicChroot.

  2. Install the prerequisites and compiler packages by issuing the following commands:
       chroot </path/to/chroot_dir> apt-get install gcc g++ perl
       dpkg --root </path/to/chroot_dir> -iG /cdrom/images/littleEndian/ubuntu/*.deb

Results

The compiler is installed in the /opt/ibm/ directory under chroot. To use the compiler under chroot, issue the following chroot command to enter the root directory of chroot:
   chroot </path/to/chroot_dir>


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