Non-default installation procedure

To install XL C to a non-default location, first use installp to install the xlccmp.13.1.0.ndi fileset, then use the xlcndi Perl script included in that fileset to install the compiler.

About this task

Follow these steps to install XL C to an alternate location:

Procedure

  1. First use the installp command to install the xlccmp.13.1.0.ndi fileset. Run the command:
    installp -aYXgd install_images_location -e logfile xlccmp.13.1.0.ndi 
    xlccmp.13.1.0.license
    Read syntax diagramSkip visual syntax diagram
    >>- ---installp-- -aYg--+-----+--+-----+--+------------------------------+--+--------------+--xlccmp.13.1.0.ndi--xlccmp.13.1.0.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 install.

    Example:

    installp -aYgd /cdrom/usr/sys/inst.images -e /tmp/install.log xlccmp.13.1.0.ndi \
        xlccmp.13.1.0.license
    Note: This command automatically installs and accepts the license agreement fileset, xlccmp.13.1.0.license, required to install xlccmp.13.1.0.ndi.
  2. Install any available updates to the xlccmp.13.1.0.ndi fileset. You can download the latest compiler updates from the support website: http://www.ibm.com/support/entry/portal/overview/software/rational/xl_c_for_aix

    To check the version number of the xlccmp.13.1.0.ndi fileset currently installed on your system, use the following command:

    lslpp -l xlccmp.13.1.0.ndi

    To install a new version of the xlccmp.13.1.0.ndi fileset, use the following command:

    installp -aYgd ptf_images_location -e logfile xlccmp.13.1.0.ndi
  3. Install XL C by entering the following command:
    Read syntax diagramSkip visual syntax diagram
    >>-perl--/opt/IBM/xlc/13.1.0/bin/xlcndi-- -d--source_path------->
    
    >--+--------------+--+-----------------+--+-------+------------->
       '- -e--logfile-'  '- -b--target_dir-'  '- -rte-'   
    
    >--+-----------+-----------------------------------------------><
       '- -version-'   
    
    
    perl /opt/IBM/xlc/13.1.0/bin/xlcndi -d source_path [-e logfile] [-b target_dir] 
    [-rte][-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 xlcndi.log is stored in your working directory.
    -b target_dir
    Specifies the location where the filesets to be 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 non-default installation tool.

    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 non-default location, /compiler/xlc/ and writes the installation log file to /tmp/xlc.ndi.inst.log.

    Example:

    perl /opt/IBM/xlc/13.1.0/bin/xlcndi -d /cdrom/usr/sys/inst.images 
    -b /compiler/xlc/ -e /tmp/xlc.ndi.inst.log 

Results

IBM XL C for AIX is installed into the chosen location.

The xlcndi Perl script returns 0 if the installation is successful, or 1 if the installation fails.