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

 View Only
  • 1.  Reg : yum command throwing module error on AIX7.2TL5

    Posted Fri July 30, 2021 09:17 AM
    Hello All,

    I have installed the yum rpm packages along with its dependencies, but when
    I ran the command throwing the below error.

    [ ampsv019ecc1q :root:/home/homeldap/in000nea:] yum
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    Could not load module /usr/opt/rpm/lib/librpm.so.
    Dependent module /opt/freeware/lib/liblua.a(liblua-5.3.so) could
    not be loaded.
    Member liblua-5.3.so is not found in archive
    Could not load
    module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
    Dependent module /usr/opt/rpm/lib/librpm.so could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq

    Any suggestion or solution will be great ful.

    [ ampsv019ecc1q :root:/home/homeldap/in000nea:]

    Thanks for understanding
    Regards
    Rudhramoorthy M
    UniX/LinuX Administrator


  • 2.  RE: Reg : yum command throwing module error on AIX7.2TL5

    Posted Fri July 30, 2021 09:54 AM
    Edited by SANKET RATHI Fri July 30, 2021 09:54 AM
    Hi,

    From the error message it looks like liblua is not the one expected by yum.
    Could you please share some more information. 
    What is the level of AIX ? 
    Please provide output of following commands
    $ ls -l /opt/freeware/lib/liblua.a
    $ lslpp -l rpm.rte
    $ rpm -qa ​| grep lua
    $ ar -X32_64 t /opt/freeware/lib/liblua.a

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: Reg : yum command throwing module error on AIX7.2TL5

    Posted Fri July 30, 2021 10:07 AM
    Hello SANKET RATHI ,

    From the error message it looks like liblua is not the one expected by yum.
    Could you please share some more information.
    What is the level of AIX ?
    Please provide output of following commands
    $ ls -l /opt/freeware/lib/liblua.a
    $ lslpp -l rpm.rte
    $ rpm -qa ​| grep lua
    $ ar -X32_64 t /opt/freeware/lib/liblua.a


    Please find the output:

    $ ls -l /opt/freeware/lib/liblua.a
    [ ampsv019ecc1q :root:/home/root:] ls -l /opt/freeware/lib/liblua.a
    -rwxr-xr-x 1 root system 913739 Jul 8
    2017 /opt/freeware/lib/liblua.a
    [ ampsv019ecc1q :root:/home/root:]


    $ lslpp -l rpm.rte

    [ ampsv019ecc1q :root:/home/root:] lslpp -l |grep -i rpm.rte
    rpm.rte 4.15.1.1 COMMITTED RPM Package Manager
    rpm.rte 4.15.1.1 COMMITTED RPM Package Manager
    [ ampsv019ecc1q :root:/home/root:]

    $ rpm -qa ​| grep lua

    [ ampsv019ecc1q :root:/home/root:] rpm -qa |grep lua
    lua-5.1.5-1.ppc
    [ ampsv019ecc1q :root:/home/root:]



    $ ar -X32_64 t /opt/freeware/lib/liblua.a

    [ ampsv019ecc1q :root:/home/root:] ar -X32_64 t /opt/freeware/lib/liblua.a
    liblua-5.1.so
    liblua-5.1.so
    [ ampsv019ecc1q :root:/home/root:]

    Thanks for understanding
    Regards
    Rudhramoorthy M
    UniX/LinuX Administrator




  • 4.  RE: Reg : yum command throwing module error on AIX7.2TL5

    Posted Fri July 30, 2021 10:50 AM
    The lua rpm package is old and it does not contain the shared object needed for yum to work.
    I am not sure how you ended up in this situation. Though the lua library is delivered by rpm.rte package as well but looks like lua rpm path is preferred.
    As a first try just remove lua.rpm package then it will start using lua delivered by rpm.rte but if that does not work because of some environment then
    You can install latest lua.rpm manually from AIX toolbox (as yum is not working right now). 
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/lua/lua-5.4.1-1.aix6.1.ppc.rpm

    Here are things you should try
    1. Uninstall lua.rpm package and then try to run yum (mostly it should work)
    2. If first step does not work then install latest lua.rpm (link given above) manually.

    Hope this should resolve your issue.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 5.  RE: Reg : yum command throwing module error on AIX7.2TL5

    Posted Fri July 30, 2021 11:11 AM
    Hello,

    I have tried to un-install the packages, but its throwing the dependencies
    error.

    [ ampsv019ecc1q :root:/home/root:] rpm -e lua-5.1.5-1.ppc
    error: Failed dependencies:
    lua <= 5.1.5 is needed by (installed) rpm-4.9.1.3-3.ppc
    [ ampsv019ecc1q :root:/home/root:]

    When i try upgrade to the latest version, that also throwing error.

    [ ampsv019ecc1q :root:/home/homeldap/in000nea:] rpm -Uvh
    lua-5.4.1-1.aix6.1.ppc.rpm
    error: Failed dependencies:
    libgcc >= 8.3.0 is needed by lua-5.4.1-1.ppc
    lua <= 5.1.5 is needed by (installed) rpm-4.9.1.3-3.ppc
    [ ampsv019ecc1q :root:/home/homeldap/in000nea:]

    Thanks for understanding
    Regards
    Rudhramoorthy M
    UniX/LinuX Administrator




  • 6.  RE: Reg : yum command throwing module error on AIX7.2TL5

    Posted Fri July 30, 2021 11:29 AM
    Looks like you are running quite an old environment from AIX toolbox.  Not sure why did you install rpm.rpm package. 
    Can you provide output of following command ? Also what is the version of AIX ?

    $ rpm -qa

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 7.  RE: Reg : yum command throwing module error on AIX7.2TL5

    Posted Fri July 30, 2021 11:37 AM
    Hello,

    Current OS version: 7200-05-02-2114

    Even I also don't have the idea, this is very old system, previous
    colleague installed this rpm package

    Please find the rpm -qa output.

    [ ampsv019ecc1q :root:/home/root:] rpm -qa
    readline-6.2-4.ppc
    libgcc-4.8.5-1.ppc
    libstdc++-4.8.5-1.ppc
    nspr-4.9.5-1.ppc
    file-libs-5.12-2.ppc
    file-5.12-2.ppc
    wget-1.17.1-1.ppc
    unzip-6.0-3.ppc
    bash-4.3.30-1.ppc
    gmp-5.1.3-2.ppc
    gzip-1.6-2.ppc
    popt-1.16-3.ppc
    rsync-3.1.2-1.ppc
    ca-certificates-2016.10.7-2.ppc
    pcre-8.33-1.ppc
    gdbm-1.8.3-5.ppc
    sqlite-3.15.2-1.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.19.3-1.ppc
    yum-3.4.3-7.noarch
    AIX-rpm-7.2.5.1-19.ppc
    gettext-0.17-1.ppc
    info-4.13a-2.ppc
    lpar2rrd-agent-4.95-0.ppc
    patch-2.7.1-1.ppc
    vnc-3.3.3r2-6.ppc
    which-2.20-1.ppc
    libffi-3.0.12-1.ppc
    glib2-2.48.0-1.ppc
    nss-3.13.2-1.ppc
    lua-5.1.5-1.ppc
    rpm-4.9.1.3-3.ppc
    bzip2-1.0.6-2.ppc
    db-4.8.24-3.ppc
    zip-3.0-2.ppc
    coreutils-8.25-1.ppc
    expat-2.2.0-1.ppc
    less-481-1.ppc
    zlib-1.2.8-1.ppc
    pdfbox-2.0.8-1.ppc
    curl-7.54.1-2.ppc
    python-2.7.10-1.ppc
    netcat-1.10-2.ppc
    SG-loginfox-cf-aix-8.3.8.12855-1.aix7.2.noarch
    pysqlite-1.1.7-2.ppc
    yum-metadata-parser-1.1.4-2.ppc
    python-urlgrabber-3.10.1-1.noarch
    [ ampsv019ecc1q :root:/home/root:]

    Thanks for understanding
    Regards
    Rudhramoorthy M
    UniX/LinuX Administrator




  • 8.  RE: Reg : yum command throwing module error on AIX7.2TL5

    Posted Mon August 02, 2021 02:52 AM
    Let me know the output of "rpm -ql rpm".
    To check if any other packages apart lua are having dependency rpm-4.9.1.3-3 you can run "rpm -e rpm"

    ------------------------------
    SANGAMESH
    ------------------------------