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 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. To install PTFs for the XL C compiler on i PASE, follow these steps:
  1. Obtain the PTF package files to be installed.
  2. Uncompress and then untar 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 non-default 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.0.ndi.*
    restore -qf xlccmp.13.1.0.ndi.V.R.M.F.bff ./opt/IBM/xlc/13.1.0/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 does return a file name, make a note of this file name and use that file name in the restore command. For example, if the file name returned is xlccmp.13.1.0.ndi.0000.0006.bff, then replace the xlccmp.13.1.0.ndi.V.R.M.F.bff file name shown in the restore command with the actual name returned results in the following restore command:
      restore -qf xlccmp.13.1.0.ndi.V.R.M.F.bff ./opt/IBM/xlc/13.1.0/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.0/bin/xlcndi \
    	/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 is encountered with the installation of the PTF update or with the PTF update itself, you can restore from this backup to uninstall the PTF update.