Isn't IBMIM supposed to be completely independent of the toolbox ? (I may be out of date: my last battle with IBMIM was on a 6.1)
Original Message:
Sent: Thu November 16, 2023 01:11 AM
From: Ayappan P
Subject: Could not load SWT library
Java is notorious for setting /usr/lib in the LIBPATH. Ideally no toolbox packages requires setting LIBPATH for their working.
So in this case, while running IBMIM only you can set the LIBPATH , i.e, LIBPATH=/opt/freeware/lib:/opt/freeware/lib64:/usr/lib ./IBMIM. Before that, you can update libgcc first.
------------------------------
Ayappan P
Original Message:
Sent: Wed November 15, 2023 02:11 PM
From: Erich Wolz
Subject: Could not load SWT library
[root@hl1axwww:/] >ls -l /opt/freeware/lib/libintl.a
-rw-r--r-- 1 root system 411692 Oct 20 2022 /opt/freeware/lib/libintl.a
[root@hl1axwww:/] >ar -tv /opt/freeware/lib/libintl.a
rwxr-xr-x 203/1 74754 Oct 20 05:39 2022 libintl.so.8
rwxr-xr-x 203/1 114582 Oct 20 05:45 2022 libintl.so.1
[root@hl1axwww:/] >echo $LIBPATH
[root@hl1axwww:/] >
With no LIBPATH set:
[root@hl1axwww:/] >cd /opt/IBM/InstallationManager/eclipse
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >./IBMIM
00:00.50 ERROR [main] com.ibm.cic.agent.internal.ui.AgentUI reportStatus
Could not load SWT library. Reasons:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a ( 0509-130 Symbol resolution failed for /opt/freeware/lib/libharfbuzz.a(libharfbuzz.so.0) because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 22) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 23) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-022 Cannot load module /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a.
0)
swt-pi-gtk (Not found in java.library.path)
/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a ( 0509-130 Symbol resolution failed for /opt/freeware/lib/libharfbuzz.a(libharfbuzz.so.0) because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 22) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 23) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-022 Cannot load module /.swt/lib/aix/ppc/libswt-pi-gtk-4630.a.
0509-026 System error: Cannot run a file that does not have a)
/.swt/lib/aix/ppc/libswt-pi-gtk.a ( 0509-022 Cannot load module /.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:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a ( 0509-130 Symbol resolution failed for /opt/freeware/lib/libharfbuzz.a(libharfbuzz.so.0) because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 22) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 23) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-022 Cannot load module /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a.
0)
swt-pi-gtk (Not found in java.library.path)
/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a ( 0509-130 Symbol resolution failed for /opt/freeware/lib/libharfbuzz.a(libharfbuzz.so.0) because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 22) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 23) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-022 Cannot load module /.swt/lib/aix/ppc/libswt-pi-gtk-4630.a.
0509-026 System error: Cannot run a file that does not have a)
/.swt/lib/aix/ppc/libswt-pi-gtk.a ( 0509-022 Cannot load module /.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)
...
The displayed failed to initialize. See the log /opt/IBM/InstallationManager/eclipse/configuration/1700074860923.log for details.
With LIBPATH set:
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >export LIBPATH=/usr/lib:/opt/freeware/lib64
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >./IBMIM
00:00.49 ERROR [main] com.ibm.cic.agent.internal.ui.AgentUI reportStatus
Could not load SWT library. Reasons:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a ( 0509-022 Cannot load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
0509-150 Dependent module /opt/freeware/lib64/libgcc_s.a(shr.o) could not be loaded.
0509-103 The module has an invalid magic number.
0509-022 Cannot load module /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a.
0509-150 Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
swt-pi-gtk (Not found in java.library.path)
/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a ( 0509-022 Cannot load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
0509-150 Dependent module /opt/freeware/lib64/libgcc_s.a(shr.o) could not be loaded.
0509-103 The module has an invalid magic number.
0509-022 Cannot load module /.swt/lib/aix/ppc/libswt-pi-gtk-4630.a.
0509-150 Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
/.swt/lib/aix/ppc/libswt-pi-gtk.a ( 0509-022 Cannot load module /.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:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a ( 0509-022 Cannot load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
0509-150 Dependent module /opt/freeware/lib64/libgcc_s.a(shr.o) could not be loaded.
0509-103 The module has an invalid magic number.
0509-022 Cannot load module /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a.
0509-150 Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
swt-pi-gtk (Not found in java.library.path)
/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a ( 0509-022 Cannot load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
0509-150 Dependent module /opt/freeware/lib64/libgcc_s.a(shr.o) could not be loaded.
0509-103 The module has an invalid magic number.
0509-022 Cannot load module /.swt/lib/aix/ppc/libswt-pi-gtk-4630.a.
0509-150 Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
/.swt/lib/aix/ppc/libswt-pi-gtk.a ( 0509-022 Cannot load module /.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)
...
The displayed failed to initialize. See the log /opt/IBM/InstallationManager/eclipse/configuration/1700074962292.log for details.
With the LIBPATH order switched:
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >export LIBPATH=/opt/freeware/lib64:/usr/lib
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >./IBMIM
00:00.46 ERROR [main] com.ibm.cic.agent.internal.ui.AgentUI reportStatus
Could not load SWT library. Reasons:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a ( 0509-022 Cannot load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
0509-150 Dependent module /opt/freeware/lib64/libgcc_s.a(shr.o) could not be loaded.
0509-103 The module has an invalid magic number.
0509-022 Cannot load module /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a.
0509-150 Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
swt-pi-gtk (Not found in java.library.path)
/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a ( 0509-022 Cannot load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
0509-150 Dependent module /opt/freeware/lib64/libgcc_s.a(shr.o) could not be loaded.
0509-103 The module has an invalid magic number.
0509-022 Cannot load module /.swt/lib/aix/ppc/libswt-pi-gtk-4630.a.
0509-150 Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
/.swt/lib/aix/ppc/libswt-pi-gtk.a ( 0509-022 Cannot load module /.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:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a ( 0509-022 Cannot load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
0509-150 Dependent module /opt/freeware/lib64/libgcc_s.a(shr.o) could not be loaded.
0509-103 The module has an invalid magic number.
0509-022 Cannot load module /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a.
0509-150 Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
swt-pi-gtk (Not found in java.library.path)
/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a ( 0509-022 Cannot load module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
0509-150 Dependent module /opt/freeware/lib64/libgcc_s.a(shr.o) could not be loaded.
0509-103 The module has an invalid magic number.
0509-022 Cannot load module /.swt/lib/aix/ppc/libswt-pi-gtk-4630.a.
0509-150 Dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.)
/.swt/lib/aix/ppc/libswt-pi-gtk.a ( 0509-022 Cannot load module /.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)
...
The displayed failed to initialize. See the log /opt/IBM/InstallationManager/eclipse/configuration/1700075022814.log for details.
Trying to update libgcc:
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >rpm -qa | grep gcc
libgcc8-8.3.0-6.ppc
libgcc10-10.3.0-6.ppc
libgcc-10-2.ppc
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >dnf update libgcc
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 32, in <module>
import dnf.base
File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: 0509-022 Cannot load module /opt/freeware/libdnfdeps/libstdc++.a(libstdc++.so.6).
0509-150 Dependent module /opt/freeware/lib64/libgcc_s.a(shr.o) could not be loaded.
0509-103 The module has an invalid magic number.
0509-022 Cannot load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
0509-150 Dependent module /opt/freeware/libdnfdeps/libstdc++.a(libstdc++.so.6) could not be loaded.
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >
------------------------------
Erich Wolz
Original Message:
Sent: Wed November 15, 2023 02:32 AM
From: RESHMA KUMAR
Subject: Could not load SWT library
Could you please share the output of the following commands?
ls -l /opt/freeware/lib/libintl.a
echo $LIBPATH
------------------------------
RESHMA KUMAR
Original Message:
Sent: Tue November 14, 2023 07:17 PM
From: Erich Wolz
Subject: Could not load SWT library
Some add'l info:
[root@hl1axwww:/] >rpm -qa | grep gtk
gtk2-2.24.30-3waixX11.ppc
[root@hl1axwww:/] >dnf update gtk2
Last metadata expiration check: 1 day, 4:47:57 ago on Mon Nov 13 13:28:27 CST 2023.
Dependencies resolved.
Nothing to do.
Complete!
------------------------------
Erich Wolz
Original Message:
Sent: Tue November 14, 2023 03:02 PM
From: Erich Wolz
Subject: Could not load SWT library
I am trying to run Installation Manager to update another LPP, and am getting the following messages:
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >./IBMIM
00:00.46 ERROR [main] com.ibm.cic.agent.internal.ui.AgentUI reportStatus
Could not load SWT library. Reasons:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a ( 0509-130 Symbol resolution failed for /opt/freeware/lib/libharfbuzz.a(libharfbuzz.so.0) because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 22) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 23) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-022 Cannot load module /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a.
0)
swt-pi-gtk (Not found in java.library.path)
/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a ( 0509-130 Symbol resolution failed for /opt/freeware/lib/libharfbuzz.a(libharfbuzz.so.0) because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 22) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 23) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-022 Cannot load module /.swt/lib/aix/ppc/libswt-pi-gtk-4630.a.
0509-026 System error: Cannot run a file that does not have a)
/.swt/lib/aix/ppc/libswt-pi-gtk.a ( 0509-022 Cannot load module /.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:
/opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a ( 0509-130 Symbol resolution failed for /opt/freeware/lib/libharfbuzz.a(libharfbuzz.so.0) because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 22) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 23) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-022 Cannot load module /opt/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/773/0/.cp/libswt-pi-gtk-4630.a.
0)
swt-pi-gtk (Not found in java.library.path)
/.swt/lib/aix/ppc/libswt-pi-gtk-4630.a ( 0509-130 Symbol resolution failed for /opt/freeware/lib/libharfbuzz.a(libharfbuzz.so.0) because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 22) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 23) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-022 Cannot load module /.swt/lib/aix/ppc/libswt-pi-gtk-4630.a.
0509-026 System error: Cannot run a file that does not have a)
/.swt/lib/aix/ppc/libswt-pi-gtk.a ( 0509-022 Cannot load module /.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)
...
The displayed failed to initialize. See the log /opt/IBM/InstallationManager/eclipse/configuration/1699990881648.log for details.
Sadly, the log file is not particularly helpful:
[root@hl1axwww:/opt/IBM/InstallationManager/eclipse] >cat /opt/IBM/InstallationManager/eclipse/configuration/1699990881648.log
cat: 0652-050 Cannot open /opt/IBM/InstallationManager/eclipse/configuration/1699990881648.log.
The "Symbol not exported" messages are usually an indication that I need to update one or more packages (in this case, the one that provides libintl.a) ... but I'm not sure what package provides this file:
rpm -q --whatprovides /usr/opt/rpm/lib/libintl.a
file /usr/opt/rpm/lib/libintl.a is not owned by any package
Any ideas?
------------------------------
Erich Wolz
------------------------------