To install XL C/C++ to
a non-default location, first use installp to install the vacpp.ndi fileset,
then use the vacppndi Perl
script included in that fileset to install the compiler.
About this task
Follow these steps to install XL C/C++ to
an alternate location:
- First use the installp command
to install the vacpp.ndi fileset. Run the command:
installp -aYgd install_images_location -e logfile vacpp.ndi vacpp.licAgreement

>>- ---installp-- -aYg--+-----+--+-----+--+------------------------------+--+--------------+--vacpp.ndi--vacpp.licAgreement-><
'- -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 vacppndi.log will be
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 insufficient space to complete the install.
Example:
installp -aYgd /cdrom/usr/sys/inst.images -e /tmp/install.log vacpp.ndi \
vacpp.licAgreement
Note: This
command automatically installs and accepts the license agreement fileset, vacpp.licAgreement, required to install vacpp.ndi.
- Install any available updates to the vacpp.ndi fileset.
You can download the latest compiler updates from the support Web
site: http://www.ibm.com/software/awdtools/xlcpp/aix/support/
To check the version number
of the vacpp.ndi fileset
currently installed on your system, use the following command:
lslpp -l vacpp.ndi
To
install a new version of the vacpp.ndi fileset,
use the following command:
installp -aYgd ptf_images_location -e logfile vacpp.ndi
- Install XL C/C++ by
entering the following command:

>>-perl--/usr/vacpp/bin/vacppndi-- -d--source_path-------------->
>--+--------------+--+-----------------+--+-------+------------->
'- -e--logfile-' '- -b--target_dir-' '- -rte-'
>--+--------+--+-----------+-----------------------------------><
'- -eval-' '- -version-'
perl /usr/vacpp/bin/vacppndi -d source_path [-e logfile] [-b target_dir] [-rte]
[-eval] [-version]
where:
- -d source_path
- Specifies the directory where the filesets are located. This path
may 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 vacppndi.log is stored
in your working directory.
- -b target_dir
- Specifies the location where the filesets should be copied and
expanded. By default, the files are copied to the vacppndi 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 component is installed.
- -eval
- Specifies that the installation is for the evaluation version
of XL C/C++.
- -version
- Displays the version of the non-default installation tool.
The following example uses the vacppndi Perl
script to install all available compiler filesets in the /cdrom/usr/sys/inst.images source
directory to the non-default location, /compiler/xlcpp/ and writes the installation
log file to /tmp/xlcpp.ndi.inst.log.
Example:
perl /usr/vacpp/bin/vacppndi -d /cdrom/usr/sys/inst.images -b /compiler/xlcpp/
-e /tmp/xlcpp.ndi.inst.log
Results
IBM
XL C/C++ for AIX is installed into the chosen
location.