Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Issues with "yum repolist" command.

    Posted Mon March 14, 2022 11:57 AM
    When I tried to install yum package from yum_bundle_v5.tar and when it finished, the following messages appear when try to run "yum repolist"

    # yum repolist
    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" title="http://yum.baseurl.org/wiki/faq" href="http://yum.baseurl.org/wiki/Faq" rel="noopener noreferrer" target="_blank" tabindex="-1">http://yum.baseurl.org/wiki/Faq

    #

    Details of O.S.

    AIX: 7100-03-05-1524
    RPM Packages:
    # rpm -qa
    expect-5.42.1-3.ppc
    pysqlite-1.1.7-2.ppc
    bash-4.3-12.ppc
    popt-1.16-1.ppc
    readline-6.3-5.ppc
    pcre-8.35-1.ppc
    gdbm-1.8.3-5.ppc
    python-iniparse-0.4-1.noarch
    sqlite-3.15.2-1.ppc
    curl-7.52.1-1.ppc
    expat-2.1.0-1.ppc
    zlib-1.2.8-1.ppc
    info-5.2-1.ppc
    coreutils-64bit-8.5-2.ppc
    bzip2-1.0.6-1.ppc
    wget-1.16-1.ppc
    gettext-0.19.7-1.ppc
    python-pycurl-7.19.3-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    AIX-rpm-7.1.3.45-8.ppc
    tcl-8.4.7-3.ppc
    libgcc-4.8.3-1.ppc
    libiconv-1.14-2.ppc
    libstdc++-4.8.3-1.ppc
    logrotate-3.8.2-1.ppc
    libidn-1.29-1.ppc
    ca-certificates-2016.10.7-2.ppc
    python-2.7.10-1.ppc
    python-tools-2.7.10-1.ppc
    tk-8.4.7-3.ppc
    libffi-3.1-1.ppc
    glib2-2.38.2-1.ppc
    gmp-6.0.0a-1.ppc
    pkg-config-0.28-1.ppc
    openssl-1.0.1p-1.ppc
    db-4.8.24-3.ppc
    python-devel-2.7.10-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    yum-3.4.3-7.noarch

    Other error that appears is: 
    # oslevel -s
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag



    ------------------------------
    Erwin Pisco
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Issues with "yum repolist" command.

    Posted Mon March 14, 2022 01:14 PM
    Couple of things.
    1. You are using older version of yum_bundle always use https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/yum_bundle.tar which is latest.
    2. Is any LIBPATH set ?

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



  • 3.  RE: Issues with "yum repolist" command.

    Posted Mon March 14, 2022 03:39 PM
    Hi Rathi.

    LIBPATH is not set.

    ------------------------------
    Erwin Pisco
    ------------------------------



  • 4.  RE: Issues with "yum repolist" command.

    Posted Wed March 16, 2022 08:53 AM
    Edited by SANGAMESH MALLAYYA Wed March 16, 2022 08:52 AM
    As an workaround can you try running yum with this LIBPATH "LIBPATH=/opt/freeware/lib:/usr/lib yum repolist"
    It seems you also have openssl rpm which might create other issues.
    You can remove the openssl rpm package ?

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



  • 5.  RE: Issues with "yum repolist" command.

    Posted Mon March 14, 2022 03:44 PM
    SANKET RATHI

    To install the last version of yum_bundle.tar I need to uninstall old rpm packages or I can run "rpm -Uvh *.rpm"


    ------------------------------
    Erwin Pisco
    ------------------------------



  • 6.  RE: Issues with "yum repolist" command.

    Posted Wed March 16, 2022 01:53 AM
    I think you should be able to update using "rpm -Uvh *.rpm" 

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