Updating a nondefault installation using xlCndi
If the IBM® Open XL C/C++ compiler has been installed to a nondefault directory, you must use xlCndi to install fix packs.
About this task
Note: The
xlCndi tool forces you to
install the fix pack openxlCcmp.17.1.4.ndi fileset before
using the tool to install the fix pack to a nondefault location.Procedure
-
Install the openxlCcmp.17.1.4.ndi fileset included in
the fix pack.
This fileset must be installed first so that the xlCndi script inside it can be used to correctly install the remaining filesets.
To determine the version number of the openxlCcmp.17.1.4.ndi fileset currently installed on your system, run the command:
lslpp -l openxlCcmp.17.1.4.ndiTo install a new version of the openxlCcmp.17.1.4.ndi fileset, run the command:
installp -aXgd fix_pack_images_location -e logfile openxlCcmp.17.1.4.ndi -
Create a text file listing the fix pack filesets you want to install.
This text file must contain the name of a single fix pack file on each line. You can use the ls command to do this:
ls source_path > fix_pack_names_fileExample
ls /compiler/update/*.bff > /home/user/update.listupdate.list contains all the updated fileset names, one for each line as follows:openxlCcmp.17.1.4.bff -
Use the perl command to run the xlCndi script:
where:perl /opt/IBM/openxlC/17.1.4/bin/xlCndi -d source_path -u fix_pack_names_file [-e logfile] -b [target_dir]- -d source_path
- Specifies the directory where the filesets are located. This path might also be a mounted CD-ROM drive.
- -u fix_pack_names_file
- Specifies the text file containing the names of fix pack filesets you want to install.
- -e logfile
- Specifies the name and location of the installation log file. By default, the installation log file xlCndi.log is stored in your working directory.
- -b target_dir
- Specifies the directory where the compiler you are updating is installed.
- -rte
- Specifies that only the runtime component is installed.
- -version
- Displays the version of the nondefault installation tool.Note: The installation script creates a compressed TAR backup of the compiler files that exist before the fix pack update. If a problem occurs with the installation of the fix pack update or with the fix pack update itself, you can restore from this backup file target_dir.tar.Z to uninstall the fix pack update.
The following example uses the xlCndi Perl script to install all available fix pack filesets in the /compiler/update/ source directory to the nondefault location, /compiler/openxlcpp/ and writes the installation log file to /tmp/xlcpp.ndi.inst.log.
Example:
perl /opt/IBM/openxlC/17.1.4/bin/xlCndi -d /compiler/update/ -u /compiler/update/ptflist -b /compiler/openxlcpp/ -e /tmp/xlcpp.ndi.inst.log
