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++ 5.0 compilers and tools. They are available to campus customers via NFS mount.

Before doing this you need to email aix@post.doit.wisc.edu to receive license keys for the VisualAge compilers. If you do not do this then your compiler will complain and compile EXTREMELY slowly (it's intolerable -- don't try it).

Here's how to install the compilers under AIX in eight easy steps:

  1. Have the following packages installed. You can find them via NFS at post.doit.wisc.edu:/aix/xxx/inst.images (where xxx is 433 or 51). After installing these you will probably need to patch them, too. Follow the guidelines for patching found elsewhere on this site.

    • X11.compat.adt.Motif12
    • bos.adt.libm
    • X11.base.rte
    • bos.adt.include

  2. mount post.doit.wisc.edu:/aix/C /mnt

  3. Select the following major packages using SMIT. Do not install all the packages unless you know what you are doing! There is lots of extra stuff you don't need if all you want to do is compile SSH and some utilities, and you probably don't want to waste the disk space.

    • vac.C
    • vacpp.cmp
    • vacpp.lic
    • xlC.adt
    • xlC.aix43 (or xlC.aix50 -- depends on your OS major version number)
    • xlC.rte
    • xlsmp.rte

  4. Install these packages. They will have dependencies that will be automatically fulfilled if you leave the default SMIT options on.

  5. Once the software is installed, use SMIT to update the software from that same directory (/mnt). There are numerous patches to VisualAge C++ 5.0 and you want them. Just rerun SMIT and use update_all ("smitty update_all").

  6. Edit /var/ifor/nodelock and add the license keys. Did you get the license keys? No? Just email aix@post.doit.wisc.edu like it says in bold up top. :-) You can keep going here, but your compilers won't work as well as you'd like until you add those keys to /var/ifor/nodelock.

  7. Change to /usr/vac/bin. Run ./replaceCSET. That script will handle adding the right links to /usr/bin, etc. so you and your users can compile easily.

  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;

    }

  9. You're done.

 

 

 

 

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