Installing the AIX compilers from the installation media

PASE for i does not support the AIX® smit or installp utilities, which are typically used to install applications on systems running AIX. Installation of the XL C/C++ for AIX, XL C for AIX, or XL Fortran for AIX product is accomplished through a nondefault installation script that is included in the respective compiler's installation media.

In addition to the compiler installation media, you also need the following programs installed on your system to successfully install and use the compiler:

  • 5770-SS1 Option 33 - PASE for i
  • 5770-SS1 Option 13 - System Openness Includes, containing the compiler header files found in the /usr/include integrated file system directory
  • Perl
    The compiler installation scripts require Perl. Here are two ways to install Perl:
    • 5799-PTL - Tools for Developers for i5/OS PRPQ, which includes Perl and many other useful development tools. For additional information about Tools for Developers for i5/OS PRPQ, see the IBM Tools for Developers for IBM i Web site Link outside information center (www.ibm.com/partnerworld/wps/servlet/ContentHandler/pw_com_porting_tools_index).
    • CPAN Perl Ports (Binary Distributions) Web site Link outside information center (www.cpan.org/ports/#os400) - A Perl Port binary distribution for PASE for i.
To install the XL C/C++ for AIX, XL C for AIX, or XL Fortran for AIX product on IBM i, follow the steps documented in the related AIX compiler Knowledge Center.
  1. Select a version of the compiler to be updated.
    For XL C/C++ for AIX, go to the XL C/C++ for AIX IBM Knowledge CenterLink outside IBM i Knowledge Center and select a version of XL C/C++ for AIX compiler.
    Note: XL C/C++ for AIX 13.1.2 is the recommended minimum release.
    For XL C for AIX, go to the XL C for AIX IBM Knowledge CenterLink outside IBM i Knowledge Center and select a version of XL C for AIX compiler.
    Note: XL C for AIX 13.1.2 is the recommended minimum release.
    For XL Fortran for AIX, go to the XL Fortran for AIX IBM Knowledge CenterLink outside IBM i Knowledge Center and select a version of XL Fortran for AIX compiler.
    Note: XL Fortran for AIX 15.1.2 is the recommended minimum release.
  2. Click on the Basic Installation link.
  3. Click on the Advanced Installation link.
  4. Click on the Tasks for advanced installation link.
  5. Click on the Installing on an IBM i PASE System link and follow the instructions for installation from CD.
The compiler is now installed for use in PASE for i. Here are some example directory locations which will vary depending on the AIX compiler version installed:
  • The XL C/C++ for AIX version 13.1.2 compiler commands (for example, xlc) can be found in directory /QOpenSys/xlc/opt/IBM/xlc/13.1.2/bin.
  • The XL C for AIX version 13.1.2 compiler commands (for example, xlc) can be found in directory /QOpenSys/xlc/opt/IBM/xlc/13.1.2/bin.
  • The XL Fortran for AIX compiler commands (for example, xlf) can be found in directory /QOpenSys/xlf/opt/IBM/xlf/15.1.2/bin.
Note: You can add the directory that contains the compiler commands to the $PATH environment variable. The $PATH environment variable specifies the directories to be searched to find a command. For example, if you have installed XL C/C++ for AIX version 13.1.2, you can change the $PATH environment variable as follows to avoid specifying the command path when you use the compiler commands:
export $PATH=$PATH:/QOpenSys/xlc/opt/IBM/xlc/13.1.2/bin