AIX Open Source

  • 1.  New YUM Installation generate :Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).

    Posted Thu October 14, 2021 05:42 PM
    Hi folks
    I am trying to setup YUM Repo Client - I downloaded all IBM packages  and follow instructions from
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/README-yum
    Any assistance will be greatly appreciated
    Thanks
    Dharma

    Here are the errors
    root @wic: /ws/yum $rpm -Uvh *.rpm
    Preparing... ################################# [100%]
    package readline-6.1-2.ppc is already installed
    package sqlite-3.15.2-1.ppc is already installed
    package yum-metadata-parser-1.1.4-2.ppc is already installed
    package gdbm-1.8.3-5.ppc is already installed
    package db-4.8.24-3.ppc is already installed
    package python-2.7.10-1.ppc is already installed
    package pysqlite-1.1.7-2.ppc is already installed
    package python-iniparse-0.4-1.noarch is already installed
    package ca-certificates-2016.10.7-2.ppc is already installed
    package curl-7.52.1-1.ppc is already installed
    package python-pycurl-7.19.3-1.ppc is already installed
    package python-urlgrabber-3.10.1-1.noarch is already installed
    package yum-3.4.3-8.noarch is already installed
    package python-devel-2.7.10-1.ppc is already installed
    package python-tools-2.7.10-1.ppc is already installed
    root @wic: /ws/yum $yum list
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-022 Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).
    0509-150 Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
    0509-152 Member libiconv.so.2 is not found in archive
    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
    0509-150 Dependent module /usr/lib/libglib-2.0.a(libglib-2.0.so.0) 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


    root @wic: /ws/yum $ls -l /usr/lib/libglib-2.0.a
    lrwxrwxrwx 1 root system 36 Apr 16 2020 /usr/lib/libglib-2.0.a -> ../../opt/freeware/lib/libglib-2.0.a
    root @wichita1: /ws/yum $ls -l /usr/lib/libiconv.a
    -r--r--r-- 1 bin bin 788913 Aug 21 2017 /usr/lib/libiconv.a
    root @wichita1: /ws/yum $ls -l /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so
    -rwxr-xr-x 1 root system 184631 Feb 24 2017 /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so
    root @wichita1: /ws/yum $ls -l /usr/lib/libglib-2.0.a
    lrwxrwxrwx 1 root system 36 Apr 16 2020 /usr/lib/libglib-2.0.a -> ../../opt/freeware/lib/libglib-2.0.a
    root @wichita1: /ws/yum $ls -1
    ca-certificates-2016.10.7-2.aix6.1.ppc.rpm
    curl-7.52.1-1.aix6.1.ppc.rpm
    db-4.8.24-3.aix6.1.ppc.rpm
    gdbm-1.8.3-5.aix5.2.ppc.rpm
    glib2-2.56.1-3.aix6.1.ppc.rpm
    libffi-3.2.1-3.aix6.1.ppc.rpm
    pool
    pysqlite-1.1.7-2.aix6.1.ppc.rpm
    python-2.7.10-1.aix6.1.ppc.rpm
    python-devel-2.7.10-1.aix6.1.ppc.rpm
    python-iniparse-0.4-1.aix6.1.noarch.rpm
    python-pycurl-7.19.3-1.aix6.1.ppc.rpm
    python-tools-2.7.10-1.aix6.1.ppc.rpm
    python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
    readline-6.1-2.aix6.1.ppc.rpm
    sqlite-3.15.2-1.aix6.1.ppc.rpm
    yum-3.4.3-8.aix6.1.noarch.rpm
    yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm
    root @wic: /ws/yum $
    :

    ------------------------------
    Dharma Sanassy
    ------------------------------


  • 2.  RE: New YUM Installation generate :Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).

    Posted Fri October 22, 2021 11:35 AM
    Hi Dharma,

    Were there already some RPMs installed on your system before installing yum?
    Do you have LIBPATH set ? 
    Can you share the output of following commands ?
    $ rpm -qa 
    $ echo $LIBPATH
    $ lslpp -l | grep openssl





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



  • 3.  RE: New YUM Installation generate :Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).

    Posted 19 days ago
    Hi Sanket
    thanks for your assistance - 
    Here is state of LIBPATH - where I modified it to point to /usr/lib instead /usr/lib6a
    $echo $LIBPATH
    /opt/freeware/lib:/usr/lib:
    $openssl version
    OpenSSL 1.0.2t 10 Sep 2019
    lslpp -l | grep openssl
    openssl.base 1.0.2.2001 COMMITTED Open Secure Socket Layer
    openssl.license 1.0.2.2001 COMMITTED Open Secure Socket License
    openssl.man.en_US 1.0.2.2001 COMMITTED Open Secure Socket Layer
    openssl.base 1.0.2.2001 COMMITTED Open Secure Socket Layer

    At this point my rpm -qa looks like this
    root @wichita1: / $rpm -qa
    sudo-1.6.7p5-3.ppc
    unzip-5.51-1.ppc
    netcat-1.10-2.ppc
    ibm.sas.disk.SAV15K3-7414-1.noarch
    zlib-devel-1.2.3-3.ppc
    tar-1.14-2.ppc
    mpfr-3.1.4-1.ppc
    xz-libs-5.2.4-1.ppc
    libxml2-2.9.10-1.ppc
    python-2.7.10-1.ppc
    python-iniparse-0.4-1.noarch
    curl-7.52.1-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    python-devel-2.7.10-1.ppc
    AIX-rpm-7.1.4.1-32.ppc
    yum-plugin-downloadonly-1.1.31-2.noarch
    libgcc8-8.3.0-4.ppc
    libstdc++8-8.3.0-4.ppc
    libstdc++-8-1.ppc
    sqlite-3.35.5-1.ppc
    gmp-6.1.2-1.ppc
    libgomp8-8.3.0-4.ppc
    libgomp-8-1.ppc
    libtextstyle-0.20.2-1.ppc
    gettext-0.20.2-1.ppc
    p11-kit-0.23.22-1.ppc
    cups-libs-2.2.3-3.ppc
    bzip2-1.0.8-2.ppc
    openldap-2.4.58-1.ppc
    python3-3.7.10-2.ppc
    samba-client-4.14.4-2.ppc
    samba-winbind-4.14.4-2.ppc
    samba-libs-4.14.4-2.ppc
    rsync-3.1.2-2.ppc
    bison-1.875-3.ppc
    zip-2.3-3.ppc
    coreutils-5.2.1-2.ppc
    scrub-2.0-1.ppc
    flex-2.5.4a-6.ppc
    wget-1.9.1-1.ppc
    zlib-1.2.11-3.ppc
    libmpc-1.0.3-2.ppc
    info-6.7-2.ppc
    libunistring-0.9.10-1.ppc
    libiconv-1.16-3.ppc
    yum-metadata-parser-1.1.4-2.ppc
    db-4.8.24-3.ppc
    pysqlite-1.1.7-2.ppc
    ca-certificates-2016.10.7-2.ppc
    python-pycurl-7.19.3-1.ppc
    yum-3.4.3-8.noarch
    python-tools-2.7.10-1.ppc
    yum-utils-1.1.31-2.noarch
    yum-plugin-allowdowngrade-1.1.31-2.noarch
    libgcc-8-1.ppc
    readline-8.1-1.ppc
    ncurses-6.2-2.ppc
    libffi-3.2.1-3.ppc
    libtasn1-4.16.0-1.ppc
    bash-5.1.4-1.ppc
    nettle-3.6-1.ppc
    glib2-2.56.1-3.ppc
    popt-1.18-1.ppc
    gnutls-3.7.1-1.ppc
    gdbm-1.19-1.ppc
    cyrus-sasl-2.1.26-3.ppc
    expat-2.2.9-2.ppc
    samba-common-4.14.4-2.ppc
    samba-winbind-clients-4.14.4-2.ppc
    samba-devel-4.14.4-2.ppc
    samba-4.14.4-2.ppc


    So after LIBPATH point only to /usr/lib  - it is working but sometimes ago someone mentioned not to modify LIBOth
    ??? - Can you clarify this please





    ------------------------------
    Dharma Sanassy
    ------------------------------



  • 4.  RE: New YUM Installation generate :Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).

    Posted 18 days ago
    Hi,
    same problem here.
    AIX 7.2 TL5 SP2 with only AIX-rpm-7.2.5.1-10.ppc installed.
    Then installed files from yum_bundle_v6.tar (also tried yum_bundle_v5.tar with the same result) and getting the same error.

    root@system [/tmp/yum]>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/lib/libglib-2.0.a(libglib-2.0.so.0).
    Dependent module /usr/lib/libintl.a(libintl.so.1) could not be loaded.
    Member libintl.so.1 is not found in archive
    Could not load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
    Dependent module /usr/lib/libglib-2.0.a(libglib-2.0.so.0) 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

    Regards, Marc

    ------------------------------
    Marc Becker
    ------------------------------



  • 5.  RE: New YUM Installation generate :Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).

    Posted 18 days ago
    Hi Marc,
    In your case issue looks to be in libintl library. It does not have required module.
    Probably your libintl is old or has been overwritten by some other source.
    Can you please share output of following commands.

    # ls -l /usr/lib/libintl.a
    # ar -X32_64 tv /usr/lib/libintl.a
    # rpm -qa
    # echo $LIBPATH
    ​​

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



  • 6.  RE: New YUM Installation generate :Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).

    Posted 18 days ago
    Hi Sanket,

    as this was a brand new LPAR I have just reinstalled the system and everything is working now.
    Obviously something was wrong with the prior installation.
    Thank you.

    ------------------------------
    Marc Becker
    ------------------------------



  • 7.  RE: New YUM Installation generate :Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).

    Posted 18 days ago
    Hi Dharma,
    We should not set LIBPATH for AIX toolbox packages. It should be used without setting LIBPATH.
    There were some legacy issues with LIBPATH and we are keep improving and making sure packages are built to use right libraries.
    But if LIBPATH is set then it will confuses and can cause issues.
    Only for running IBM IM with gtk we needed to set LIBPATH. But in general you should not set LIBPATH to run YUM or to use any AIX toolbox packages.

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