AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Error while installing TWS on AIX server.

    Posted Mon March 04, 2024 09:25 AM

    While installing TWS upgraded version, getting below error.

    00:00.63 ERROR [main] com.ibm.cic.agent.internal.ui.AgentUI reportStatus
      Could not load SWT library. Reasons:
            /usr/common/TWS/agent.installer.aix.gtk.ppc_1.9.2007.20240131_1836/configuration/org.eclipse.osgi/783/0/.cp/libswt-pi-gtk-4630.a (      0509-022 Cannot load module /usr/common/TWS/agent.installer.aix.gtk.ppc_1.9.2007.20240131_1836/configuration/org.eclipse.osgi/783/0/.cp/liblibswt-pi-gtk-4630.a.so.
            0509-026 System error: A file or directory in the path name does not exist.)
            swt-pi-gtk (Not found in java.library.path)
            /roothome/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a (       0509-022 Cannot load module /roothome/.swt/lib/aix/ppc/liblibswt-pi-gtk-4630.a.so.
            0509-026 System error: A file or directory in the path name does not exist.)
            /roothome/.swt/lib/aix/ppc/libswt-pi-gtk.a (    0509-022 Cannot load module /roothome/.swt/lib/aix/ppc/liblibswt-pi-gtk.a.so.
            0509-026 System error: A file or directory in the path name does not exist.)
      java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
            /usr/common/TWS/agent.installer.aix.gtk.ppc_1.9.2007.20240131_1836/configuration/org.eclipse.osgi/783/0/.cp/libswt-pi-gtk-4630.a (      0509-022 Cannot load module /usr/common/TWS/agent.installer.aix.gtk.ppc_1.9.2007.20240131_1836/configuration/org.eclipse.osgi/783/0/.cp/liblibswt-pi-gtk-4630.a.so.
            0509-026 System error: A file or directory in the path name does not exist.)
            swt-pi-gtk (Not found in java.library.path)
            /roothome/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a (       0509-022 Cannot load module /roothome/.swt/lib/aix/ppc/liblibswt-pi-gtk-4630.a.so.
            0509-026 System error: A file or directory in the path name does not exist.)
            /roothome/.swt/lib/aix/ppc/libswt-pi-gtk.a (    0509-022 Cannot load module /roothome/.swt/lib/aix/ppc/liblibswt-pi-gtk.a.so.
            0509-026 System error: A file or directory in the path name does not exist.)

     

        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:26)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)

    Please suggest



    ------------------------------
    Jaspreet Chadda
    ------------------------------


  • 2.  RE: Error while installing TWS on AIX server.

    Posted Tue March 05, 2024 03:21 AM

    Jaspreet,

    if you have TWS, you probably have a support contract. My first suggestion is to open a support case at IBM ;-)

    My second suggestion is to check files which are referenced in the error message:

    /usr/common/TWS/agent.installer.aix.gtk.ppc_1.9.2007.20240131_1836/configuration/org.eclipse.osgi/783/0/.cp/libswt-pi-gtk-4630.a

    /usr/common/TWS/agent.installer.aix.gtk.ppc_1.9.2007.20240131_1836/configuration/org.eclipse.osgi/783/0/.cp/liblibswt-pi-gtk-4630.a.so

    /roothome/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a

    /roothome/.swt/lib/aix/ppc/liblibswt-pi-gtk.a.so

    If they don't exist, I think you reinstall your software.

    It is too TWS-specific case and I think only IBM support can advise you something here. Or you can post into a TWS community, but I don't know which one it is.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 3.  RE: Error while installing TWS on AIX server.

    Posted Tue March 05, 2024 04:08 AM
    Edited by José Pina Coelho Tue March 05, 2024 04:33 AM

    That's a common issue with the IBM installer (Eclipse-based) on unix systems.

    Workarounds from the past ten years:

    • Install an RPM that provides the GTK libraries
    • Run the installer in console mode
    • Stitch together a Frankenstein JRE+swt lib


    What you should do:

    • Open a case to get an official answer

    https://www.ibm.com/support/pages/required-gtk-libraries-ibm-installation-manager-aix



  • 4.  RE: Error while installing TWS on AIX server.

    Posted Tue March 05, 2024 12:52 PM

    Hi,

    Thanks for the responses.

    • libswt-pi-gtk.a 
    • liblibswt-pi-gtk.a.so
    • libswt-pi-gtk-4630.a
    • liblibswt-pi-gtk-4630.a.so

      Do we know which gtk package will contain these.
      As per open-source link, there are 5 gtk packages,
      gtk2-devel-docs 2.24.30 License RPM SRPM 'Developer documentation for GTK+'
      gtk2-devel 2.24.30 License RPM SRPM 'Development files for GTK+'
      gtk2-immodule-xim 2.24.30 License RPM SRPM 'XIM support for GTK+'
      gtk2-immodules 2.24.30 License RPM SRPM 'Input methods for GTK+'
      gtk2 2.24.30 License RPM SRPM 'The GIMP ToolKit (GTK+), a library for creating GUIs for X'


    ------------------------------
    Jaspreet Chadda
    ------------------------------



  • 5.  RE: Error while installing TWS on AIX server.

    Posted Fri March 15, 2024 09:09 AM

    Hi,

    Thanks for the responses.

    • libswt-pi-gtk.a 
    • liblibswt-pi-gtk.a.so
    • libswt-pi-gtk-4630.a
    • liblibswt-pi-gtk-4630.a.so

      Do we know which gtk package will contain these.
      As per open-source link, there are 5 gtk packages,
      gtk2-devel-docs 2.24.30 License RPM SRPM 'Developer documentation for GTK+'
      gtk2-devel 2.24.30 License RPM SRPM 'Development files for GTK+'
      gtk2-immodule-xim 2.24.30 License RPM SRPM 'XIM support for GTK+'
      gtk2-immodules 2.24.30 License RPM SRPM 'Input methods for GTK+'
      gtk2 2.24.30 License RPM SRPM 'The GIMP ToolKit (GTK+), a library for creating GUIs for X'


    ------------------------------
    Jaspreet Chadda
    ------------------------------