To install IBM® Open XL C/C++ for AIX® to a nondefault location on AIX system, first use installp to install the openxlCcmp.17.1.0.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 openxlCcmp.17.1.0.ndi fileset as follows:
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 extracted tarball media.
-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.
Note: This command automatically installs and accepts the license agreement fileset, openxlCcmp.17.1.0.license, required to install openxlCcmp.17.1.0.ndi.
Specifies the directory where the filesets are located. This path can also be extracted tarball media.
-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
/LOCATION_OF_EXTRACTED_TARBALL/usr/sys/inst.images source
directory to the nondefault location, /compiler/xlcpp/, and writes the
installation log file xlcpp.ndi.inst.log to
/tmp.
The xlCndi Perl script
returns 0 if the installation is successful, or 1 if the
installation fails.
IBM Open XL C/C++ for AIX is
installed into the chosen location.
The compiler invocation commands are installed to
/target_dir/opt/IBM/openxlC/17.1.0/bin/, where target_dir is the location of the compiler as set by the
-b flag during the nondefault installation.
The following
example uses the command to run the compiler, if IBM Open XL C/C++ is installed
to the /compiler/openxlcpp
directory: