University of Wisconsin-Madison  My UW
Computing @ UW-Madison

Installing AIX
Tuning AIX
Patching, Fixes, APARs
Compilers
Tips & Tricks

TSM Clients

IBM pSeries Support
TechLib
IBM Redbooks
IBM Documentation Library

Back to DoIT

Installing compilers is easy. POST supports the VisualAge C++ 6.0 compilers and tools. They are available to campus customers via NFS mount.

If you are upgrading from IBM VisualAge C/C++ 5.0 then you need to remove the old software first. To do that, use SMIT and select any package beginning with memdbg, vac, vacpp, vatools, xlsmp, xlopt, or xlC. Then, when removing, DO NOT REMOVE DEPENDENT PACKAGES. Some packages will need to remain on the system for the machine to function, and all the rest will be uninstalled. An example of how SMIT would look with these options is:

SMIT, when instructed to remove all those packages in that manner, will tell you it failed to do so. That is normal. If it succeeded then 3/4 of your operating system would be missing, too!

Once that is done, or on a fresh machine, this is how to install the VisualAge C/C++ 6.0 compilers under AIX. You must be root to perform these steps:

  1. Ensure the following packages are installed:
    • bos.adt.include
    • bos.adt.lib
    • bos.adt.libm
    • bos.net.ncs
    • ifor_ls.compat
    • ifor_ls.base
    • bos.rte.libpthreads

    Use the following command to determine if these items have been installed:

    lslpp -h bos.adt.include bos.adt.lib bos.adt.libm \
    bos.net.ncs ifor_ls.compat ifor_ls.base bos.rte.libpthreads

  2. Use NFS to mount post.doit.wisc.edu:/aix/compilers/vacpp6

  3. Start SMIT, and install the following sets of packages, selecting, where possible, the versions of the libraries that suit your operating system level:
    • vac.C
    • vac.lic
    • vacpp.cmp
    • vacpp.lic
    • xlC.adt.include
    • xlopt.aixYY (where YY is the your OS version)
    • xlopt.lib
    • xlopt.rte
    • xlopt.tools
    • xlsmp.aixYY.rte
    • xlsmp.rte

  4. Install these packages. You may get some errors when the AIX package manager attempts to install libraries that should not be on your system. Do not be alarmed (but check the errors so that you won't be missing any components).

  5. Configure the license for the compilers by copying line 12 in /usr/vacpp/vacpp_n.lic and line 12 in /usr/vac/cforaix_n.lic to /var/ifor/nodelock.

  6. By default your path will not include /usr/vac/bin and /usr/vacpp/bin. To include the compilers in your path by default, either add them to your PATH environment variable or create symbolic links in /usr/bin for the compilers. A sample script to do this is here.

  7. Patch the compilers by patching your operating system. IBM includes critical compiler fixes in its patch sets for AIX.

  8. Test it. You can either try compiling some software or use our handy sample C++ program below. If you compile this test program, do so by issuing the command "xlC test.cc" and then run a.out.

    #include <iostream.h>

    void main() {

    cout << "Hey." << endl;

    }

 

 

 

Copyright © 2003 The Board of Regents of the University of Wisconsin System