Using installp

You can install XL C directly from the command line using the AIX® command installp.

About this task

To install the compiler and write the installation output to a log file using the installp command, follow these steps:

Run the command:

installp -aXYgd install_images_location -e logfile fileset_names
Read syntax diagramSkip visual syntax diagram
>>- ---installp-- -aYg--+-----+--+-----+--+------------------------------+--+--------------+--fileset_names-><
                        '- -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.
-p
Performs a preview of the installation process by running the preinstallation checks. See previewing the installation.
-X
Attempts to expand the file system at the default location if there is insufficient space to complete the install.
-d install_images_location
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.
fileset_names
Specifies a list of names of the filesets in install_images_location that you want to install.
Note: The keyword all can be used to indicate that all filesets should be attempted during installation.

The following example installs all available compiler filesets in the /cdrom/usr/sys/inst.images source directory to the default locations, as specified in Filesets, and writes an installation log file to /tmp/install.log.

Example:

installp -aXYgd /cdrom/usr/sys/inst.images -e /tmp/install.log all
Notes:
  • If you use the keyword all as in this example, an error message might be generated. For example, you might encounter an error message indicating that either xlC.aix50.rte or xlC.aix61.rte has failed to be installed. In this case, you can ignore the message. The reason for the error message is that if you install the compiler onto a system running AIX 5.3, only xlC.aix50.rte is required, and xlC.aix61.rte automatically fails to be installed. Likewise, if you install the compiler onto a system running AIX 6.1, only xlC.aix61.rte is required, and xlC.aix50.rte fails to be installed. The following message is an example of the error message you might encounter.
    Requisite Failures
    ------------------
    SELECTED FILESETS: The following is a list of filesets that you asked to
    install. They cannot be installed until all of their requisite filesets
    are also installed. See subsequent lists for details of requisites.
    
    xlC.aix61.rte 11.1.0.0 # XL C/C++ Runtime for AIX 6.1
    
    MISSING REQUISITES: The following filesets are required by one or more
    of the selected filesets listed above. They are not currently installed
    and could not be found on the installation media.
    
    bos.rte 6.0.0.0 # Base Level Fileset
    bos.rte.libc 6.0.0.0 # Base Level Fileset
  • Similarly, any language specific filesets that are not supported by your system will produce an error message and fail to install. For example, if locale support is not present for Ja_JP, you will get a failure when attempting to install a Ja_JP specific language fileset for the compiler. These error messages are normal and should be ignored.