Hi Sanket,
I just hit the issue described in this post, how can I test the fix you are providing?
exec(): 0509-036 Cannot load program python3 because of the following errors:
0509-130 Symbol resolution failed for /opt/freeware/lib64/libpython3.9.a[libpython3.9.so] because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 284) is not exported from
dependent module /usr/lib/libintl.a[libintl.so.8].
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 285) is not exported from
dependent module /usr/lib/libintl.a[libintl.so.8].
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
------------------------------
LUIS ABDEL AGUILAR JURADO
------------------------------
Original Message:
Sent: Wed July 19, 2023 12:21 PM
From: SANKET RATHI
Subject: Python Installation
Good to know your issue resolved.
But I wouldn't put /opt/freeware/lib, /usr/lib and /lib in my LIBPATH.
/usr/lib is anyway default lib path and adding it end will not achieve anything only it will override if someone wants to use some other LIBPATH in their binary. Also adding /opt/freeware/lib before /usr/lib will use libraries from /opt/freeware/lib where some application wants to use it from /usr/lib
So I would suggest if you set your LIBPATH like following and see if it works in all cases.
export LIBPATH=/sf/sqllib/lib64:/sf/sqllib/lib64/gskit
Original Message:
Sent: 7/19/2023 12:03:00 PM
From: Shane Grizzard
Subject: RE: Python Installation
Sanket,
Thank you for your response! There was indeed a LIBPATH set, but as you said it was calling /usr/lib rather than /opt/freeware/lib. This has fixed my issue.
-> echo $LIBPATH
/sf/sqllib/lib64:/sf/sqllib/lib64/gskit:/usr/lib:/lib
-> export LIBPATH=/sf/sqllib/lib64:/sf/sqllib/lib64/gskit:/opt/freeware/lib:/usr/lib:/lib
-> python3 -m pip list
Package Version
------------------ ---------
certifi 2022.9.24
charset-normalizer 2.1.1
distlib 0.3.6
Thank you VERY much for helping with this!
Shane
------------------------------
Shane Grizzard
Original Message:
Sent: Tue July 18, 2023 10:58 PM
From: SANKET RATHI
Subject: Python Installation
Do you have any LIBPATH set?
Also did you install all the dependencies?
Looks like /usr/lib/libintl.a is getting used instead of /opt/freeware/lib/libintl.a
Original Message:
Sent: 7/18/2023 10:00:00 AM
From: Gurvinder Singh
Subject: Python Installation
Hi,
After successful installation on python3.9 on AIX71-05-08, I am getting below error.
exec(): 0509-036 Cannot load program /usr/bin/py because of the following errors:
0509-130 Symbol resolution failed for /opt/freeware/lib64/libpython3.9.a[libpython3.9.so] because:
0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 284) is not exported from
dependent module /usr/lib/libintl.a[libintl.so.8].
0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 285) is not exported from
dependent module /usr/lib/libintl.a[libintl.so.8].
0509-026 System error: Error 0
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
Looking for solution to resolve this issue.
------------------------------
Gurvinder Singh
------------------------------