Non-default installation procedure

To install XL Fortran to a non-default location, first use installp to install the xlfcmp.15.1.0.ndi fileset, then use the xlfndi Perl script included in that fileset to install the compiler.

About this task

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

Procedure

  1. First use the installp command to install the xlfcmp.15.1.0.ndi fileset. Run the command:
    installp -aYXgd install_images_location -e logfile xlfcmp.15.1.0.ndi 
    xlfcmp.15.1.0.license
    Read syntax diagramSkip visual syntax diagram
    >>- ---installp-- -aYg--+-----+--+-----+--+------------------------------+--+--------------+--xlfcmp.15.1.0.ndi--xlfcmp.15.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 xlfndi.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 xlfcmp.15.1.0.ndi \
        xlfcmp.15.1.0.license
    Note: This command automatically installs and accepts the license agreement fileset, xlfcmp.15.1.0.license, required to install xlfcmp.15.1.0.ndi.
  2. Install any available updates to the xlfcmp.15.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_Fortran_for_AIX

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

    lslpp -l xlfcmp.15.1.0.ndi

    To install a new version of the xlfcmp.15.1.0.ndi fileset, use the following command:

    installp -aYgd ptf_images_location -e logfile xlfcmp.15.1.0.ndi
  3. Install XL Fortran by entering the following command:
    Read syntax diagramSkip visual syntax diagram
    >>-perl--/opt/IBM/xlf/15.1.0/bin/xlfndi-- -d--source_path------->
    
    >--+--------------+--+-----------------+--+-------+------------->
       '- -e--logfile-'  '- -b--target_dir-'  '- -rte-'   
    
    >--+-----------+-----------------------------------------------><
       '- -version-'   
    
    
    perl /opt/IBM/xlf/15.1.0/bin/xlfndi -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 xlfndi.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 xlfndi 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.
    Note: The -eval option is deprecated and has no effect. The xlfndi Perl script automatically determines the type of installation that is happening.

    The following example uses the xlfndi Perl script to install all available compiler filesets in the /cdrom/usr/sys/inst.images source directory to the non-default location, /compiler/xlf/ and writes the installation log file to /tmp/xlf.ndi.inst.log.

    Example:

    perl /opt/IBM/xlf/15.1.0/bin/xlfndi -d /cdrom/usr/sys/inst.images 
    -b /compiler/xlf/ -e /tmp/xlf.ndi.inst.log 

Results

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

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