We copied the libintl.a file from another server and tried but we get some error. please assist to fix it
Original Message:
Sent: Tue September 02, 2025 06:59 AM
From: Aditya Kamath
Subject: Python packages installation error on AIX 7.2
Hi Ram,
ImportError: 0509-022 Cannot load module /usr/opt/rpm/lib/librpm.a(librpm.so.9).
0509-150 Dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8) could not be loaded.
0509-022 Cannot load module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-026 System error: A file or directory in the path name does not exist.
Tentatively, can you copy from another LPAR this file /usr/opt/rpm/lib/libintl.a.
It looks like this file is removed.
And then export LIBPATH=/opt/freeware/lib and try??
------------------------------
Aditya Kamath
Original Message:
Sent: Tue September 02, 2025 05:44 AM
From: Ram Kumar
Subject: Python packages installation error on AIX 7.2
Hi Adithya,
We removed the link and copied the libintl.a file from another working server. Then we exported LIBPATH and tried dnf update but still we get error. please assist
root@:/ # dump -Tov -X64 /opt/freeware/lib/libintl.a | grep _GLOBAL__AIXI_libintl_so
[68] 0x20001230 .data EXP DS Ldef [noIMid] _GLOBAL__AIXI_libintl_so
root@:/ # export LIBPATH=/opt/freeware/lib
root@:/ # dnf update
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
import dnf.base
File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: 0509-022 Cannot load module /usr/opt/rpm/lib/librpm.a(librpm.so.9).
0509-150 Dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8) could not be loaded.
0509-022 Cannot load module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
0509-150 Dependent module /usr/opt/rpm/lib/librpm.a(librpm.so.9) could not be loaded.
root@:/ #
Regards,
Ramkumar
------------------------------
Ram Kumar
Original Message:
Sent: Tue September 02, 2025 05:22 AM
From: Ram Kumar
Subject: Python packages installation error on AIX 7.2
Hi Adithya,
We dont get the output for the dump command. please assist next steps
root@:/ # ls -l /opt/freeware/lib/libintl.a
lrwxrwxrwx 1 root system 26 Aug 26 12:19 /opt/freeware/lib/libintl.a -> /usr/opt/rpm/lib/libintl.a
root@:/ # dump -Tov -X64 /opt/freeware/lib/libintl.a | grep _GLOBAL__AIXI_libintl_so
root@:/ #
Regards,
Ramkumar
------------------------------
Ram Kumar
Original Message:
Sent: Tue September 02, 2025 01:43 AM
From: Aditya Kamath
Subject: Python packages installation error on AIX 7.2
Hi Ram,
You see the symbol _GLOBAL__AIXD_libintl_so is not exported from /usr/opt/rpm/lib/libintl.a(libintl.so.8).
It is exported from /opt/freeware/lib/libintl.a.
Do you have ls -l /opt/freeware/lib/libintl.a
-rw-r--r-- 1 root system 411692 Oct 20 2022 /opt/freeware/lib/libintl.a
If you have check if that symbol exists.
# dump -Tov -X64 /opt/freeware/lib/libintl.a | grep _GLOBAL__AIXI_libintl_so
[68] 0x20001230 .data EXP DS Ldef [noIMid] _GLOBAL__AIXI_libintl_so
You should see the above output. If you see the above output then
export LIBPATH=/opt/freeware/lib
Then do dnf update
After this you will no longer need to set LIBPATH, and dnf should work.
------------------------------
Aditya Kamath
Original Message:
Sent: Mon September 01, 2025 11:22 PM
From: Ram Kumar
Subject: Python packages installation error on AIX 7.2
Hi Team,
We get the below error after aix toolbox installation for python on AIX 7.2.
We tried unset the libpath but still we get the same error. please assist to fix it
root@:/ # unset LIBPATH
root@:/ # dnf update
exec(): 0509-036 Cannot load program /opt/freeware/libexec/python3.9_32 because of the following errors:
0509-130 Symbol resolution failed for /opt/freeware/lib/libpython3.9.a(libpython3.9.so) because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 283) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 284) is not exported from
dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
root@:/ # echo $LIBPATH
Regards,
Ramkumar
------------------------------
Ram Kumar
------------------------------