Nondefault installation

To install IBM® Open XL Fortran for AIX® to a nondefault location on AIX system, first use installp to install the openxlfcmp.17.1.1.ndi fileset, and then use the xlfndi Perl script included in that fileset to install the compiler.

Procedure

  1. Run the installp command to install the openxlfcmp.17.1.1.ndi fileset as follows:
    installp -aYXgd install_images_location -e logfile openxlfcmp.17.1.1.ndi openxlfcmp.17.1.1.license
    Read syntax diagramSkip visual syntax diagram - installp -aYg -p -X -dinstall_images_location -elogfile openxlfcmp.17.1.1.ndi openxlfcmp.17.1.1.license
    Note: If you are installing the evaluation version, run the installp command as follows instead:
    installp -aYXgd install_images_location -e logfile openxlfcmp.17.1.1.ndi openxlfcmp.17.1.1.evaluation
    -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 extracted tarball media.
    -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 license agreements.
    -X
    Attempts to expand the file system at the default location if there is not enough space to complete the installation.
    Example for installing the full compiler version:
    installp -aYgd /LOCATION_OF_EXTRACTED_TARBALL/usr/sys/inst.images -e /tmp/install.log
     openxlfcmp.17.1.1.ndi openxlfcmp.17.1.1.license
    Note: This command automatically installs and accepts the license agreement fileset, openxlfcmp.17.1.1.license, required to install openxlfcmp.17.1.1.ndi.
    Example for installing the evaluation version:
    installp -aYgd /LOCATION_OF_EXTRACTED_TARBALL/usr/sys/inst.images -e /tmp/install.log
     openxlfcmp.17.1.1.ndi openxlfcmp.17.1.1.evaluation
  2. Install any available updates to the openxlfcmp.17.1.1.ndi fileset. You can download the latest compiler updates from the support website: https://www.ibm.com/mysupport/s/topic/0TO0z0000006v5WGAQ/xl-fortran?productId=01t0z000007g71hAAA

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

    lslpp -l openxlfcmp.17.1.1.ndi

    To install a new version of the openxlfcmp.17.1.1.ndi fileset, use the following command:

    installp -aYgd fix_pack_images_location -e logfile openxlfcmp.17.1.1.ndi
  3. Install IBM Open XL Fortran for AIX by entering the following command:
    Read syntax diagramSkip visual syntax diagram perl /opt/IBM/openxlf//bin/xlfndi -dsource_path -elogfile-btarget_dir-rte-version
    perl /opt/IBM/openxlf/17.1.1/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 can also be extracted tarball media.
    -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 target location where the filesets are 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 nondefault 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 /LOCATION_OF_EXTRACTED_TARBALL/usr/sys/inst.images source directory to the nondefault location, /compiler/xlf/, and writes the installation log file xlf.ndi.inst.log to /tmp.

    Example:

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

Results

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

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

The compiler invocation commands are installed to /target_dir/opt/IBM/openxlf/17.1.1/bin/, where target_dir is the location of the compiler as set by the -b flag during the nondefault installation.

The following example uses the command to run the compiler, if IBM Open XL Fortran is installed to the /compiler/openxlf directory:

/compiler/openxlf/opt/IBM/openxlf/17.1.1/bin/xlf hello.f -o hello_f