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
- PerlThe 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
(www.ibm.com/partnerworld/wps/servlet/ContentHandler/pw_com_porting_tools_index).
- CPAN Perl Ports (Binary Distributions) Web site
(www.cpan.org/ports/#os400) - A Perl Port binary distribution for PASE for i.
- 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
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.
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