Installing PTF updates on the PASE system

This section describes the steps to install PTFs for the XL C compiler on the PASE system.

Before you begin

Before installing the PTFs, you must have already installed the compilers on the PASE system using the steps in Installing on an IBM i PASE system.

Procedure

  1. Obtain the PTF package files to be installed.
  2. Decompress and then unpack the PTF package files. If you have downloaded the compressed TAR images to the /QOpenSys/ptf/ directory, you can use the following commands from a QP2TERM command line:
    cd /QOpenSys/ptf
    uncompress <filename.tar.Z>
    tar -xvf <filename.tar>
  3. Create a file containing a list of the PTF packages to be installed. To do so, use the following commands on a QP2TERM command line:
    cd /QOpenSys/ptf
    ls *.bff > ptflist.txt
  4. Check and update, if necessary, the nondefault installation (NDI) tool itself. The updated version of the NDI tool needs to be restored first in order to use the updated version to install the rest of the PTF package. To do so, use the following commands:
    cd /QOpenSys/home/user
    ls /QOpenSys/ptf/xlccmp.13.1.2.ndi_*
    restore -qf xlccmp.13.1.2.ndi_V.R.M.F.bff ./opt/IBM/xlc/13.1.2/bin/xlcndi
    Notes:
    • If the ls command returns an error message indicating the file does not exist, it means the NDI tool is not updated by the PTF package. Skip this command and continue with the next step in the instructions.
    • If the ls command returns a file name, make a note of this file name and use that file name in the restore command.
      restore -qf xlccmp.13.1.2.ndi_V.R.M.F.bff ./opt/IBM/xlc/13.1.2/bin/xlcndi

      For example, if the file name returned is xlccmp.13.1.2.ndi_13.1.2.1.bff, issue the following command:

      restore -qf xlccmp.13.1.2.ndi_13.1.2.1.bff ./opt/IBM/xlc/13.1.2/bin/xlcndi
  5. Run the installation script to install the PTFs. Enter the following command from the QP2TERM command line:
    /QIBM/ProdData/DeveloperTools/pase/bin/perl ./opt/IBM/xlc/13.1.2/bin/xlcndi \
    -d /QOpenSys/ptf -b /QOpenSys/xlc -u /QOpenSys/ptf/ptflist.txt

    The installation script creates a compressed TAR backup of the compiler files that exist before the PTF update. If you use the directories as shown in these instructions, this file is named /QOpensys/xlc.backup.tar.Z. If a problem occurs with the installation of the PTF update or with the PTF update itself, you can restore from this backup to uninstall the PTF update.



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