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


#Operatingsystems
#Opensource
#AIX
#AIX Open Source
 View Only
  • 1.  Python packages installation error on AIX 7.2

    Posted 2 days ago

    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
    ------------------------------


  • 2.  RE: Python packages installation error on AIX 7.2

    Posted 2 days ago

    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
    ------------------------------



  • 3.  RE: Python packages installation error on AIX 7.2

    Posted 2 days ago

    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
    ------------------------------



  • 4.  RE: Python packages installation error on AIX 7.2

    Posted 2 days ago

    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
    ------------------------------



  • 5.  RE: Python packages installation error on AIX 7.2

    Posted 2 days ago

    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
    ------------------------------



  • 6.  RE: Python packages installation error on AIX 7.2

    Posted 2 days ago

    Hi Aditya,

    We copied the libintl.a file from another server and tried but we get some error. please assist to fix it

    root@:/ # ls -ld /usr/opt/rpm/lib/libintl.a
    -r-xr-xr-x    1 root     system       452008 Jun 28 2022  /usr/opt/rpm/lib/libintl.a
    root@:/ #
    root@:/ # export LIBPATH=/opt/freeware/lib

    root@:/ # /opt/freeware/bin/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-130 Symbol resolution failed for /opt/freeware/lib/libsolv.a(libsolv.so.1) because:
            0509-136   Symbol _GLOBAL__AIXI_libbz2_so (number 62) is not exported from
                       dependent module /usr/opt/rpm/lib/libbz2.a(libbz2.so.1).
            0509-136   Symbol _GLOBAL__AIXD_libbz2_so (number 63) is not exported from
                       dependent module /usr/opt/rpm/lib/libbz2.a(libbz2.so.1).
            0509-022 Cannot load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
            0509-026 System error: Cannot run a file that does not have a valid format.
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.

    Regards,

    Ramkumar



    ------------------------------
    Ram Kumar
    ------------------------------



  • 7.  RE: Python packages installation error on AIX 7.2

    Posted yesterday

    Hi Ram,

         Your system got messed up with the rpm dependency library and AIX toolbox libraries.

         I would suggest to cleanup the installed packages and make the setup again.
         Please follow the below link for the reference.

         https://community.ibm.com/community/user/blogs/jan-harris1/2022/05/25/destroyrpms


    Thanks, 



    ------------------------------
    Parth Patel
    ------------------------------