IBM XL C/C++ installation on IBM AIX 7.1

IBM® XL C/C++ is a high-performance optimizing compiler designed to use IBM POWER® processors and enable the development of parallel applications that use the multi-core and vector features of these processors. This tutorial helps readers with a basic technical background information about the XL C/C++ V11 installation on the IBM AIX® 7.1 operating system.

Pravin S More (pravinmo@in.ibm.com), Associate IT Specialist, IBM China

Pravin has been working as a UNIX® administrator for the past four years and has a strong background in Linux® and IBM AIX.



21 September 2012

Also available in Chinese

This tutorial describes the installation of XL C/C++ version 11.1 on the IBM AIX 7.1 operating system.

You can download XL C/C++ version 11.1 from the Passport Advantage (PPA) and Entitled Software Support (ESS) site.

Figure 1. Finding XL C/C++ on the IBM software download website
Finding XL C/C++ on the IBM software download website.

If you are not an IBM employee, you can find a trial or demo version.

However, this version is not supported for AIX 7.1. IBM released a fix for this problem, which can be downloaded from the IBM Fix Central website.

Figure 2. Searching for the IZ84777 fix
Fix Central search interface

Perform the following steps to complete the installation:

1. Log in to the server where you want to install XL C/C++, and download the following packages:

  • vacpp.11.1.0.0.GA.aix53TL7-61.ta
  • vacpp.111.aix53TL7-71.january.2012.ptf.tar.Z

Note: There is no operating system (OS)-specific prerequisite required for this installation except these two packages.

2. Extract the XL C/C++ package in a directory.

	#mkdir vacpp
	#mv  vacpp.11.1.0.0.GA.aix53TL7-61.tar vacpp
	#cd vacpp
	# tar -xvf vacpp.11.1.0.0.GA.aix53TL7-61.tar
	#cd vacpp/usr/sys/inst.images

3. Start the installation with smitty.

Figure 3. Starting smitty using the command line
Starting smitty using the command line

4. smitty installp

Figure 4. Installing the Software
Install software
Figure 5. Selecting the device or directory for the software
Select device or directory for the software

Note: Here we entered . because the installation files are in current directory. If this is not the case, you need to provide the path where the /usr/sys/inst.images directory is located.

Figure 6. Selecting the WPAR installation device
Selecting the WPAR installation device

5. Preview this installation first to check that the installation files are downloaded completely and that they are not corrupted.

Figure 7. OK indication for installation
Installation OK indication

6. It should display OK. Now, press Esc+3 or F3 to go back to the previous screen.

Figure 8. Preview only option set to no
Preview only option set to no

7. Make a note that we changed option for Preview only to no for installation.

Figure 9. Final screen
Final screen

8. Press Esc+0 or F10 to exit the SMITTY menu.

As we know that this installation is supported only in AIX 5.3 and 6.1, we need to apply a fix for our installation.

Go to the base directory where we have copied or downloaded vacpp.111.aix53TL7-71.january.2012.ptf.tar.Z and perform the following steps:

9. Extract XL C/C++ (fix pack) in a directory.

#mkdir vacpp-fix
#mv  vacpp.111.aix53TL7-71.january.2012.ptf.tar.Z vacpp-fix
#cd vacpp-fix
# uncompress  vacpp.111.aix53TL7-71.january.2012.ptf.tar.Z
# tar -xvf  vacpp.111.aix53TL7-71.january.2012.ptf.tar

10. Generate a .toc file in the directory by using the inutoc <PTF directory> command.

#inutoc /vacpp-fix

11. Start the installation using the smitty install_all command.

#smitty install_all
Figure 10. Final screen
Final screen

12. Use the directory in which the installable file is extracted. Use . if you are in the same directory. Otherwise, use the directory path.

Press Enter to apply the fix that we downloaded for AIX 7.1 support.

Figure 11. Final screen
Final screen

Note: Sometimes, this installation might fail due to the missing prerequisite for IBM debugger. But, not to panic as we already have installed IBM debugger in our base package installation.

After the completion of this installation, we need to export the path so that every build script is referring to xlc_r in /usr/vac/bin and not anywhere else.

	 #export PATH=/usr/vac/bin:/usr/vacpp/bin:$PATH

Now try to run your build.

Comments

developerWorks: Sign in

Required fields are indicated with an asterisk (*).


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Information in your profile (your name, country/region, and company name) is displayed to the public and will accompany any content you post, unless you opt to hide your company name. You may update your IBM account at any time.

All information submitted is secure.

Choose your display name



The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

Required fields are indicated with an asterisk (*).

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


All information submitted is secure.

Dig deeper into AIX and Unix on developerWorks


static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=AIX and UNIX
ArticleID=835265
ArticleTitle=IBM XL C/C++ installation on IBM AIX 7.1
publish-date=09212012