You can install COBOL for AIX directly from the command line using the AIX® command installp.
Remember: - If you use the keyword all, as in the example
below, installp produces an error message indicating
that either xlC.aix50.rte or xlC.aix61.rte failed to install. This
is normal, and you can ignore the error message. If you install the
compiler onto a system running AIX V5.3, only xlC.aix50.rte is required, and xlC.aix61.rte automatically
fails to install. Likewise, if you install the compiler onto a system
running AIX V6.1 or AIX V7.1, only xlC.aix61.rte
is required, and xlC.aix50.rte fails to install.
- Similarly, any language specific filesets that are not supported
by your system produces an error message and fails to install. For
example, if local support is not present for Ja_JP, install fails
when it attempts to install a Ja_JP specific language fileset for
the compiler. These error messages are normal and can be ignored.
To install the compiler and write the installation output to a
log file, run this installp command:
installp -aXYgd install_images_location -e logfile all
>>- ---installp-- -aYg--+-----+--+-----+--+-----+--+------------------------------+--+--------------+--all-><
'- -p-' '- -X-' '- -E-' '- -d--install_images_location-' '- -e--logfile-'
- -aYg
- Specifies that all the latest and prerequisite installable filesets
available in the install_images_location directory are applied
and committed, and that the required software license agreement is
accepted.
- -p
- Performs a preview of the installation process by running the
preinstallation checks. See Using installp.
- -X
- Attempts to expand the file system at the installation location
if there is insufficient space to complete the install.
- -E
- Displays software license agreements. This flag is only valid
with the -a or -l flags. If the -E flag is specified
with the -a flag, a new section is displayed showing the pending
license agreements associated with the selected filesets. If the -E flag is specified with the -l flag, output is displayed
showing the license agreements associated with all filesets on the
media.
- -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.
- all
- Indicates that all the filesets in install_images_location should be attempted during installation.
Important: Although
you can choose to install the filesets that you need, it is recommended
that you install all the filesets. Otherwise you might encounter errors.
The following example installs all available compiler filesets
in the /cdrom/usr/sys/inst.images source directory
to the locations 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