AIX Open Source

 View Only
  • 1.  dnf command fails to run and to install rpm packages, what to check?

    Posted Thu May 11, 2023 05:54 AM

    I am trying to install libjpeg and libpng on AIX 7.2 TL5 using dnf and getting the same errors. The dnf command is no longer working.  Any suggestions on what to check and how to fix this issue?

    # /opt/freeware/bin/dnf install libjpeg
    Could not load program /opt/freeware/bin/python3_32:
    Dependent module /oracle/app/product/19.3.0/dbhome_1/lib/libexpat.a(libexpat.so.1) could not be loaded.
    Member libexpat.so.1 is not found in archive

    #/opt/freeware/bin/dnf install libpng
    Could not load program /opt/freeware/bin/python3_32:
    Dependent module /oracle/app/product/19.3.0/dbhome_1/lib/libexpat.a(libexpat.so.1) could not be loaded.
    Member libexpat.so.1 is not found in archive

    #/opt/freeware/bin/dnf repolist
    Could not load program /opt/freeware/bin/python3_32:
            Dependent module /oracle/app/product/19.3.0/dbhome_1/lib/libexpat.a(libexpat.so.1) could not be loaded.
            Member libexpat.so.1 is not found in archive




    ------------------------------
    Lisa Chepega
    ------------------------------


  • 2.  RE: dnf command fails to run and to install rpm packages, what to check?

    Posted Thu May 11, 2023 06:00 AM
    Edited by Ayappan P Thu May 11, 2023 06:00 AM

    It seems like you have LIBPATH exported to /oracle/app/product/19.3.0/dbhome_1/lib which has a libexpat.a file that doesn't seems to be an archive.
    Remember Toolbox dnf will work only with Toolbox packages. Setting system-wide LIBPATH will affect it's working. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: dnf command fails to run and to install rpm packages, what to check?

    Posted Tue May 16, 2023 12:18 PM

    I added /usr/lib, /usr/local/lib and /opt/freeware/lib to the LIBPATH, but received a new error as seen below.

    # echo $LIBPATH
    /usr/lib:/usr/local/lib:/opt/freeware/lib:/oracle/app/product/19.3.0/dbhome_1/lib32:/oracle/app/product/19.3.0/dbhome_1/lib:/fnsw/lib/shobj/tiv/lib

    #/opt/freeware/bin/dnf repolist
    Could not load program /opt/freeware/bin/python3_32:
    Symbol resolution failed for /opt/freeware/lib/libpython3.7m.so because:
            Symbol _GLOBAL__AIXI_libintl_so (number 6) is not exported from dependent
              module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
            Symbol _GLOBAL__AIXD_libintl_so (number 7) is not exported from dependent
              module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
    Examine .loader section symbols with the 'dump -Tv' command.



    ------------------------------
    Lisa Chepega
    ------------------------------