IBM Support

Required GTK libraries for IBM Installation Manager on HP-UX Itanium

Troubleshooting


Problem

IBM Installation Manager requires GTK libraries to support the graphical user interface (GUI).

Symptom

Installation Manager reports errors occur when the gtk libraries are not installed:

# ./IBMIM
00:02.02 ERROR [main] org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory safeLogged
  Could not load SWT library. Reasons:
        /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/bundles/279/1/.cp/libswt-gtk-4234.so: Unable to find library 'libgcc_s.so.0'.
        no swt-gtk in java.library.path
        Can't load library: /.swt/lib/hpux/ia64_32/libswt-gtk-4234.so
        Can't load library: /.swt/lib/hpux/ia64_32/libswt-gtk.so
        /.swt/lib/hpux/ia64_32/libswt-gtk-4234.so: Unable to find library 'libgcc_s.so.0'.
  java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/bundles/279/1/.cp/libswt-gtk-4234.so: Unable to find library 'libgcc_s.so.0'.
        no swt-gtk in java.library.path
        Can't load library: /.swt/lib/hpux/ia64_32/libswt-gtk-4234.so
        Can't load library: /.swt/lib/hpux/ia64_32/libswt-gtk.so
        /.swt/lib/hpux/ia64_32/libswt-gtk-4234.so: Unable to find library 'libgcc_s.so.0'.

  java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
        /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/bundles/279/1/.cp/libswt-gtk-4234.so: Unable to find library 'libgcc_s.so.0'.
        no swt-gtk in java.library.path
        Can't load library: /.swt/lib/hpux/ia64_32/libswt-gtk-4234.so
        Can't load library: /.swt/lib/hpux/ia64_32/libswt-gtk.so
        /.swt/lib/hpux/ia64_32/libswt-gtk-4234.so: Unable to find library 'libgcc_s.so.0'.

    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
    at org.eclipse.swt.internal.C.<clinit>(C.java:21)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
    ...
The displayed failed to initialize.  See the log /opt/IBM/InstallationManager/eclipse/configuration/1361819447407.log for details.

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 HP-UX Itanium, 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 IBM 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+ package and dependencies must be available on HP-UX Itanium.

1. Install this set of packages on HP-UX Itanium.

  • gtk_26800_ia.depot
  • gcc-ia64-4.7.1.depot

If the packages are not installed or if the installed packages are older than the versions listed above, take the following steps:

1. Download the gtk_26800_ia.depot package.  The same gtk libraries are required for Mozilla Firefox, see https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJAVAFFTB for a link to the gtk libraries.  At the time of this writing, the link to use is the "GTK 2.6.8 Libraries downloads for HP-UX Itanium".

2. Download the gcc-ia64-4.7.1.depot.gz package and use gunzip to uncompress it. The package can be found at http://h21007.www2.hpe.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=2a08725cc2f02110725cc2f02110275d6e10RCRD

3. Uninstall any older versions of gcc and gtk.

4. Install the gtk_26800_ia.depot package.  For example, using the swinstall program:
    a. Run the command: swinstall -s gtk_26800_ia.depot
    b. Select for installation.
    c. Install.

5. Install the gcc-ia64-4.7.1.depot package. For example, using the swinstall program:

    a. Run the command: swinstall -s gcc-ia64-4.7.1.depot
    b. Select for installation.
    c. Install.



6. Find the directory where the gcc package was installed, then find the lib subdirectory path. For example, the path might be "/opt/hp-gcc-4.7.1/lib" or "/opt/hp-gcc-ia64-4.7.1/lib"

7. Set the LD_LIBRARY_PATH environment variable to the path found in the previous step. For example, run the command:
export LD_LIBRARY_PATH="/opt/hp-gcc-ia64-4.7.1/lib"

8. Start Installation Manager.

[{"Product":{"code":"SSDV2W","label":"IBM Installation Manager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Install","Platform":[{"code":"PF010","label":"HP-UX"}],"Version":"1.6.2;1.6.3;1.6.3.1;1.7;1.7.1;1.7.2;1.7.3;1.7.4;1.7.4.1;1.7.4.2;1.7.4.3;1.7.4.4;1.7.4.5;1.8;1.8.1;1.8.2;1.8.2.1;1.8.3;1.8.4;1.8.4.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
25 October 2021

UID

swg21634676