IBM Support

Installing C/C++ compiler and runtime PTFs on AIX

Troubleshooting


Problem

How to install an XL C/C++, C for AIX, or VisualAge C++ compiler or runtime PTF on AIX.

Resolving The Problem

The recommended method of installing PTFs is using the SMIT utility. You must be logged in as root or have the superuser authority. Follow the instructions below to install a PTF:

  1. Download the desired PTF package - for example vacpp.70.aix50.may2005.ptf.tar.Z. See the Related URL section below for a link to the latest C and C++ compiler updates.
  2. Uncompress and untar the downloaded package into an empty directory:
    1. To uncompress the file use the command uncompress <filename>.tar.Z
    2. To untar the resulting file use the command tar -xvf <filename>.tar
  3. Generate a .toc file in the directory - use the command inutoc <PTF directory>
  4. Use the command smitty install_all to go the appropriate installation screen in SMIT.
  5. Install the PTF filesets:
    1. For INPUT device / directory for software specify the path of the directory where PTF filesets are located.
    2. On the next screen modify the installation options to suit your needs. Usually, it suffices to accept the default options.
      INPUT device / directory for software              <PTF dir>
      SOFTWARE to install                                [all]
      PREVIEW only? (install operation will NOT occur)    no
      COMMIT software updates?                            yes
      SAVE replaced files?                                no
      AUTOMATICALLY install requisite software?           yes
      EXTEND file systems if space needed?                yes
      OVERWRITE same or newer versions?                   no
      VERIFY install and check file sizes?                no
      DETAILED output?                                    no
      Process multiple volumes?                           yes
      ACCEPT new license agreements?                      no
      Preview new LICENSE agreements?                     no


    The installation log will be stored to file $HOME/smit.log.
    Note: Reboot is not needed.

    [{"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Install\/Setup\/Configuration","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Product":{"code":"SSTJ5T","label":"XL C Enterprise Edition for AIX"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Install\/Setup\/Configuration\/Documentation","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

    Document Information

    Modified date:
    12 October 2022

    UID

    swg21215669