1.3. Installing the compilers

The installation of the C for AIX Version 6.0 and VisualAge C++ for AIX Version 6.0 compilers is a very simple task. There are a number of steps that need to be performed to end up with correctly installed and working compilers.

1.3.1. Install compiler filesets

The first step in the installation process is to install the compiler product filesets onto the system. The filesets to be installed will vary, depending on the compiler product and the desired configuration.

Selecting the required filesets

The compiler products are either delivered on CD-ROM media, or downloaded from the official IBM Web site, and are accompanied by a license certificate for the number of licenses purchased. The CD-ROM media or download includes the compiler filesets along with a number of other filesets, some of which are optionally installable, and some of which are co-requisites of the compiler filesets and are installed automatically. Table 1-1 lists the main packages in the C for AIX Version 6.0 product, and Table 1-2 lists the main packages in the VisualAge C++ for AIX Version 6.0 product.

Table 1-1. C for AIX Version 6.0 packages
GroupDescription
IMNSearchSearch engine for HTML documentation
idebugDebugger with graphical user interface
memdbgMemory debugging toolkit
vacC for AIX compiler
xloptOptimization library and run time
xlsmpParallelization run-time component

Table 1-2. VisualAge C++ for AIX Version 6.0 packages
GroupDescription
IMNSearchSearch engine for HTML documentation
idebugDebugger with graphical user interface
memdbgMemory debugging toolkit
vacC for AIX compiler
vacppVisualAge C++ for AIX compiler[a]
vatoolsVisualAge® Tools Help
xlCC++ Application Development Toolkit
xloptOptimization library and run time
xlsmpParallelization run-time component

[a] The vacpp group contains installp packages for part of the C++ compiler only; it requires packages from the vac group.

Note

A single package can contain multiple filesets and a fileset can be included in only one package. For further information about AIX software packaging terminology, see Chapter 12, “Packaging your applications” on page 405.


In all cases, the target AIX system should already have the bos.adt.include fileset installed, which contains the system provided header files. The other filesets in the bos.adt package contain useful tools and utilities often used during application development, so it is a good idea to install the entire package. If your system does not have the filesets installed, you will need to locate your AIX installation media and install them prior to installing the compilers, since these filesets are AIX version specific and are not supplied with the compiler product.

When installing the C for AIX Version 6.0 product, installing the vac.C fileset will automatically install the minimum of additional required filesets. Installing the vacpp.cmp fileset will automatically include the minimum required filesets for VisualAge C++ for AIX. The additional filesets you may wish to install are the documentation filesets. Ensure that the vac.lic and vacpp.lic filesets are installed, as they contain the license files required when activating the compiler.

Regardless of the product or required configuration, the filesets can be installed using one of two methods, as discussed in the following sections.

Install using the Web-based System Manager

If your system has a graphical user interface, the filesets can be installed using the wsm command. The procedure is as follows:

1.
Log in as the root user.

2.
Insert the product CD-ROM media in the CD or DVD device.

3.
Start the software installation taskguide with the following command:

# wsm install

4.
From the Software drop-down menu, select New Software (Install/Update) -> Install Additional Software -> Advanced Method.

5.
In the Install Software dialog, select the CD-ROM device as the software source. Then, select to install the specific software available from the software source.

6.
Select the Browse button to generate a list of software on the media.

7.
Select the desired filesets from the dialog. Press and hold down the control key while dragging the mouse cursor to select one or more additional objects.

8.
Select the OK button once you have selected the desired filesets to return to the Software Install dialog.

9.
Select the OK button to start the install.

10.
Select the YES button to continue with the install. A pop-up window will appear and show the output of the installation process.

11.
Select the Close button once the installation has completed.

Install using SMIT

If your system does not have a graphical user interface, or you do not wish to use a Web-based System Manger, you can install the required filesets using the smit command as follows:

1.
Log in as the root user.

2.
Insert the product CD-ROM media in the CD or DVD device.

3.
Start the SMIT dialog with the following command:

# smit install_latest

4.
Press the F4 key to generate a list of possible input devices.

5.
Select the CD-ROM device.[3]

[3] A DVD-RAM or DVD-ROM device is also shown as CD-ROM device in the selection panel.

6.
Press the F4 key to generate a list of available filesets.

7.
Select the required filesets by highlighting them and then pressing the F7 key.

8.
Press the Enter key once the required filesets have been selected.

9.
Press the Enter key to start the install.

10.
Press the Enter key to continue the install.

11.
Press the F10 key to exit once the installation has completed.

Note

The compiler products cannot be used immediately after installation. Prior to invoking the compiler, a product licence must be enrolled with the License Use Management (LUM) system. See 1.4, “Activating the compilers” on page 23.


1.3.2. Retaining a previous version of the compiler

Before installing the compiler, it is recommended that you uninstall any previous version of C for AIX and VisualAge C++ for AIX compilers already installed. However, you can install the compilers in another directory, and retain the previous installation. This is done by using the supplied Perl scripts, vacndi and vacppndi.

Ensure the Perl run-time environment fileset, perl.rte, is installed on your system. Install the vac.ndi fileset from the C for AIX CD-ROM media, or the vacpp.ndi fileset from the VisualAge C++ for AIX CD-ROM media, or both. You can then use the /usr/vac/bin/vacndi and /usr/vacpp/bin/vacppndi scripts to install just the compiler, or the compiler with help documentation and samples, to a location of your choice. Do not move or rename the directory or any of its components after installation; you must reinstall to a new location if you want to change the installed directory.

To install C for AIX compiler with help documentation and samples, run:

# perl /usr/vac/bin/vacndi -d source_path -b target_directory
					

where source_path is where the C for AIX product filesets are located, and target_directory is the installation directory. If the -b option is omitted, the default installation directory is used (that is, /usr/vac).

To install C for AIX compiler only without help documentation and samples, run:

# perl /usr/vac/bin/vacndi -d source_path -b target_directory -m
					

To install the VisualAge C++ for AIX compiler product, simply replace /usr/vac/bin/vacndi in the above commands with /usr/vacpp/bin/vacppndi.

After installation, check the ./vacndi.log or ./vacppndi.log log file and make sure the installation is performed successfully. To remove the installation, delete the target_directory directory as specified in the installation step.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset