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.  yum doesn't work after migration from AIX 7.1 to 7.2 - second problem

    Posted Mon October 17, 2022 09:30 AM
    Hello,

    recently I posted a similar question. Now we have another problem on other LPARs, with a different error message.

    We did an AIX migration from AIX 7.1 to 7200-05-04-2220, which worked fine.

    Unfortunately yum now doesn't work anymore:


    $ yum update
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    rtld: 0712-001 Symbol _GLOBAL__AIXI_libbz2_so was referenced
    from module /opt/freeware/lib/python2.7/lib-dynload/bz2.so(), but a runtime definition
    of the symbol was not found.
    rtld: 0712-001 Symbol _GLOBAL__AIXD_libbz2_so was referenced
    from module /opt/freeware/lib/python2.7/lib-dynload/bz2.so(), but a runtime definition
    of the symbol was not found.

    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.18 (default, May 31 2021, 11:28:01)
    [GCC 8.3.0]

    ...
    ...


    I did an updtvpkg before and updated sqlite to sqlite-3.37.2-1.ppc via rpm which was the suggestion for the first problem.

    So see the versions of libs, which might be relevant:

    $ rpm -qa|grep lib
    libconfuse-3.2.2-2.ppc
    libffi-3.2.1-3.ppc
    libgcc-8.3.0-1.ppc
    libstdc++-8.3.0-1.ppc
    libiconv-1.16-1.ppc
    xz-libs-5.2.5-1.ppc
    libgomp-8.3.0-1.ppc
    libtextstyle-0.20.2-1.ppc
    glib2-2.56.1-3.ppc
    krb5-libs-1.18.3-1.ppc
    libtasn1-4.16.0-1.ppc
    ganglia-lib-3.7.2-2.ppc
    libssh2-1.9.0-1.ppc
    libnghttp2-1.41.0-1.ppc
    zlib-1.2.11-2.ppc
    libmpc-1.1.0-1.ppc
    libunistring-0.9.10-1.ppc
    libxml2-2.9.11-1.ppc

    Some more versions:

    $ rpm -qa|grep yum
    yum-3.4.3-8.noarch
    yum-metadata-parser-1.1.4-2.ppc

    $ rpm -qa|grep -i python
    python-iniparse-0.4-1.noarch
    python-urlgrabber-3.10.1-1.noarch
    python-pycurl-7.43.0-1.ppc
    python-tools-2.7.18-3.ppc
    python-devel-2.7.18-3.ppc
    python3-3.7.11-1.ppc
    python-2.7.18-3.ppc
    $


    Any hints?

    Thanks in advance!

    Kind regards

    ------------------------------
    Hans-Peter G.
    ------------------------------

    #AIXOpenSource


  • 2.  RE: yum doesn't work after migration from AIX 7.1 to 7.2 - second problem

    Posted Mon October 17, 2022 10:36 AM
    Hi Hans, 

    As discussed in other thread here also same thing happened. In this case rpm.rte has overwritten bzip2 library. 
    AIX bzip2 and AIX toolbox bzip2 libraries are different and hence you are seeing the issue. 
    To overcome this please install bzip2 rpm package manually from AIX toolbox. 
    We will see how can we stop these issues of migration by making changes in our packaging or discuss if rpm.rte changes are needed.
    But for time being installing manually the affected package is the solution.

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



  • 3.  RE: yum doesn't work after migration from AIX 7.1 to 7.2 - second problem

    Posted Tue October 18, 2022 05:54 AM
    Hi Sanket,

    thanks for your quick response.

    I didn't know of different versions of packages (bzip2 in this case).

    As you suggested I reinstalled bzip2 from AIX toolbox (with rpm --force). After that yum works again.

    Thanks again!

    ------------------------------
    Hans-Peter G.
    ------------------------------



  • 4.  RE: yum doesn't work after migration from AIX 7.1 to 7.2 - second problem

    Posted Thu October 20, 2022 05:44 AM
    You are welcome.

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