Nondefault installation procedure
To install XL C/C++ to a nondefault location, first use installp to install the xlCcmp.13.1.3.ndi fileset, and then use the xlCndi Perl script included in that fileset to install the compiler.
Procedure
- Run the installp command
to install the xlCcmp.13.1.3.ndi fileset
as follows:
installp -aYXgd install_images_location -e logfile xlCcmp.13.1.3.ndi xlCcmp.13.1.3.license
>>- ---installp-- -aYg--+-----+--+-----+--+-------------------------------+--+--------------+--xlCcmp.13.1.3.ndi--xlCcmp.13.1.3.license->< '- -p-' '- -X-' '- -d--install_images_location -' '- -e--logfile-'
- -aYg
- Specifies that all the latest installable filesets available in the install_images_location directory are applied and that the required software license agreement is accepted.
- -d install_images_location
- Specifies the directory where the filesets are located. This path might also be a mounted CD-ROM drive.
- -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.
- -p
- Performs a preview of the installation process by running the preinstallation checks. See Previewing the installation and license agreements.
- -X
- Attempts to expand the file system at the default location if there is not enough space to complete the installation.
Example:
installp -aYgd /cdrom/usr/sys/inst.images -e /tmp/install.log xlCcmp.13.1.3.ndi \ xlCcmp.13.1.3.license
Note: This command automatically installs and accepts the license agreement fileset, xlCcmp.13.1.3.license, required to install xlCcmp.13.1.3.ndi. - Install any available updates to the xlCcmp.13.1.3.ndi fileset.
You can download the latest compiler updates from the support website: http://www.ibm.com/support/entry/portal/product/rational/xl_c/c++_for_aix
To check the version number of the xlCcmp.13.1.3.ndi fileset currently installed on your system, use the following command:
lslpp -l xlCcmp.13.1.3.ndi
To install a new version of the xlCcmp.13.1.3.ndi fileset, use the following command:
installp -aYgd ptf_images_location -e logfile xlCcmp.13.1.3.ndi
- Install XL C/C++ by
entering the following command:
>>-perl--/opt/IBM/xlC/13.1.3/bin/xlCndi-- -d--source_path-------> >--+--------------+--+-----------------+--+-------+-------------> '- -e--logfile-' '- -b--target_dir-' '- -rte-' >--+-----------+----------------------------------------------->< '- -version-'
where:perl /opt/IBM/xlC/13.1.3/bin/xlCndi -d source_path [-e logfile] [-b target_dir] [-rte][-version]
- -d source_path
- Specifies the directory where the filesets are located. This path can also be a mounted CD-ROM drive.
- -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 target location where the filesets are copied and expanded. By default, the files are copied to the xlCndi directory in your working directory. If the directory exists already, you will receive an error message and the installation will stop.
- -rte
- Specifies that only the runtime components should be installed.
- -version
- Displays the version of the nondefault installation tool.
Note: The -eval option is deprecated and has no effect. The xlCndi Perl script automatically determines the type of installation that is happening.The following example uses the xlCndi Perl script to install all available compiler filesets in the /cdrom/usr/sys/inst.images source directory to the nondefault location, /compiler/xlcpp/, and writes the installation log file xlcpp.ndi.inst.log to /tmp.
Example:
perl /opt/IBM/xlC/13.1.3/bin/xlCndi -d /cdrom/usr/sys/inst.images -b /compiler/xlcpp/ -e /tmp/xlcpp.ndi.inst.log
Results
The xlCndi Perl script returns 0 if the installation is successful, or 1 if the installation fails.
- Installing on an IBM i PASE system
To install XL C/C++ on an IBM i PASE system, you must follow the nondefault installation method because the AIX SMIT and installp utilities are not supported.