Required gtk Libraries for IBM Installation Manager 1.7.2 on AIX

By | March 9, 2015

IBMI was attempting to install the 1.7.2 version of the IBM Installation Manager last week on a newly-created LPAR running AIX 6.1 and ran into trouble. As usual. Here is what the error looked like:

# ./install
00:00.92 ERROR [main] org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory safeLogged
Could not load SWT library. Reasons:
/root/Desktop/InstallationManager/configuration/org.eclipse.osgi/
bundles/633/1/.cp/libswt-pi-gtk-4234.a (A file or directory in the path name does not exist.)
swt-pi-gtk (Not found in java.library.path)
/root/.swt/lib/aix/ppc/libswt-pi-gtk-4234.a (A file or directory in the path name does not exist.)
/root/.swt/lib/aix/ppc/libswt-pi-gtk.a (A file or directory in the path name does not exist.)
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/root/Desktop/InstallationManager/configuration/org.eclipse.osgi/
bundles/633/1/.cp/libswt-pi-gtk-4234.a (A file or directory in the path name does not exist.)
swt-pi-gtk (Not found in java.library.path)
/root/.swt/lib/aix/ppc/libswt-pi-gtk-4234.a (A file or directory in the path name does not exist.)
/root/.swt/lib/aix/ppc/libswt-pi-gtk.a (A file or directory in the path name does not exist.)

A quick Google search of “Could not load SWT library” took me to the IBM web site  with a solution to resolve the problem. I have included the cause and resolution below, which got my Installation Manager installation successfully completed:

Cause

Installation Manager is an Eclipse Rich Client Program application based on the open source project found at http://www.eclipse.org. Eclipse changed the window system requirement from motif to gtk on UNIX operating systems. For AIX, this Eclipse window system change requires the gtk libraries to be installed to support the GUI. For Installation Manager, the GUI is the wizard mode of operation.

You can use Installation Manager without the gtk libraries. For information on console mode, command-line mode, or silent mode; see the Installation Manager Information Center. Silent mode uses a response file and command-line mode is supported by all packages. For console mode, check your product documentation to verify that the product supports console mode.

Resolving the problem

To use the GUI, the gtk+ RPM and dependencies must be available on AIX.

Install this set of RPMs on AIX:

atk-1.12.3-2.aix5.2.ppc.rpm
cairo-1.8.8-1.aix5.2.ppc.rpm
expat-2.0.1-1.aix5.2.ppc.rpm
fontconfig-2.4.2-1.aix5.2.ppc.rpm
freetype2-2.3.9-1.aix5.2.ppc.rpm
gettext-0.10.40-6.aix5.1.ppc.rpm
glib2-2.12.4-2.aix5.2.ppc.rpm
gtk2-2.10.6-4.aix5.2.ppc.rpm
libjpeg-6b-6.aix5.1.ppc.rpm
libpng-1.2.32-2.aix5.2.ppc.rpm
libtiff-3.8.2-1.aix5.2.ppc.rpm
pango-1.14.5-4.aix5.2.ppc.rpm
pixman-0.12.0-3.aix5.2.ppc.rpm
xcursor-1.1.7-3.aix5.2.ppc.rpm
xft-2.1.6-5.aix5.1.ppc.rpm
xrender-0.9.1-3.aix5.2.ppc.rpm
zlib-1.2.3-3.aix5.1.ppc.rpm

The installed RPMs must be of the minimum versions listed above.

To install the RPM versions specified above take the following steps:

  1. Download the latest version of the gtk2_bundle_<version>.tar package containing all the RPMs and the install script to a new directory.
  2. Decompress the tar file. You can use the command
    tar -xvf gtk2_bundle_<version>.tar to decompress the file.
  3. Open the decompressed directory gtk2_bundle_<version> and run the install.sh script.
    The script will check if the required RPMs are installed at the compatible level. If they are not, the script will prompt to install the compatible versions.
  4. Verify the environment variable LIBPATH contains a path to the installed libraries.
    For example LIBPATH=/opt/freeware/lib/

Leave a Reply

Your email address will not be published. Required fields are marked *