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


#Operatingsystems
#Opensource
#AIX
#AIX Open Source
 View Only
  • 1.  yum doesn't work after migration from AIX 7.1 to 7.2

    Posted Thu September 29, 2022 06:25 AM
    Hello,

    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
    exec(): 0509-036 Cannot load program /opt/freeware/bin/python2 because of the following errors:
    0509-130 Symbol resolution failed for /opt/freeware/lib/libpython2.7.so because:
    0509-136 Symbol _GLOBAL__AIXI_libsqlite3_so (number 219) is not exported from
    dependent module /usr/opt/rpm/lib/libsqlite3.so.
    0509-136 Symbol _GLOBAL__AIXD_libsqlite3_so (number 220) is not exported from
    dependent module /usr/opt/rpm/lib/libsqlite3.so.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    $ yum --help
    exec(): 0509-036 Cannot load program /opt/freeware/bin/python2 because of the following errors:
    0509-130 Symbol resolution failed for /opt/freeware/lib/libpython2.7.so because:
    0509-136 Symbol _GLOBAL__AIXI_libsqlite3_so (number 219) is not exported from
    dependent module /usr/opt/rpm/lib/libsqlite3.so.
    0509-136 Symbol _GLOBAL__AIXD_libsqlite3_so (number 220) is not exported from
    dependent module /usr/opt/rpm/lib/libsqlite3.so.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.


    I did an updtvpkg before.

    Seems to be an issue with libsqlite and rpm.rte as I saw in another post.

    So see some installed versions which might be relevant:

    $ ls -l /opt/freeware/lib/libsqlite3.so
    lrwxrwxrwx 1 root system 30 Sep 28 15:22 /opt/freeware/lib/libsqlite3.so -> /usr/opt/rpm/lib/libsqlite3.so

    $ rpm -qf /opt/freeware/lib/libsqlite3.so
    sqlite-3.35.5-1.ppc

    $ lslpp -Lc rpm.rte
    #Package Name:Fileset:Level:State:PTF Id:Fix State:Type:Description:Destination Dir.:Uninstaller:Message Catalog:Message Set:Message Number:Parent:Automatic:EFIX Locked:Install Path:Build Date
    rpm.rte:rpm.rte:4.15.1.3: : :C: :RPM Package Manager: : : : : : :0:0:/:

    $ sum /opt/freeware/lib/libsqlite3.so
    07380 1184 /opt/freeware/lib/libsqlite3.so

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

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

    Installing the latest version of sqlite was an advice in the other post, but how to do this without a working yum? Via rpm?

    Any hints?

    Thanks in advance!

    Kind regards


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


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

    Posted Thu September 29, 2022 08:12 AM
    Hello,

    I assume you are using yum from AIX toolbox, in that case reinstall/replace your yum with dnf, will most likely fix your issue.

    1. Fetch tar file that contains everything neccessary to replace yum with dnf, link to the tar file is there -> dnf_bundle_aix_71_72.tar
    2. Extract the contents of the tar file to some directory
    3. Change directory to the directory where you've extracted the contents of the tar fle
    4. Run "./install_dnf.sh -y", which will "Update yum3 to yum4(softlink to DNF). Use this option if want to redirect all yum commands to dnf. Existing yum-3.4.3 will be updated to yum-4.x.x(dnf)"

    One other way to fix it is to use "ldd" command to figure out what shared library is missing etc.
    Below is example from AIX 7.2 which has dnf installed. N.B. use "dump -H" command on the ".a" shared libraries, ldd works only on ".so" shared libraries
    # ldd /opt/freeware/lib/libpython3.7m.so
    /opt/freeware/lib/libpython3.7m.so needs:
    /opt/freeware/lib/pthread/libgcc_s.a(shr.o)
    /usr/lib/libc.a(shr.o)
    /usr/lib/libpthreads.a(shr_xpg5.o)
    /usr/lib/libpthreads.a(shr_comm.o)
    /opt/freeware/lib/libintl.a(libintl.so.8)
    /unix
    /usr/lib/libcrypt.a(shr.o)
    /opt/freeware/lib/libiconv.a(libiconv.so.2)
    #
    

    I've found Rosetta Stone for Unix very useful tool, when trying to figure out how to do not so frequent tasks on different Unix and Unix-like operating systems.

    Kind regards,

    Esa



    ------------------------------
    Esa Kärkkäinen
    ------------------------------



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

    Posted Fri September 30, 2022 10:52 AM
    yum was based on python 2.0 - Python 2.0 is out of support.
    dnf is based on python 3.0

    ------------------------------
    minesh patel
    ------------------------------



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

    Posted Fri September 30, 2022 10:53 AM
    dnf is replacing yum - everything else is the same.

    ------------------------------
    minesh patel
    ------------------------------



  • 5.  RE: yum doesn't work after migration from AIX 7.1 to 7.2

    Posted Mon October 03, 2022 02:06 PM
    Hi Hans, 

    When you upgraded new AIX level rpm.rte also got updated and installed new sqlite.
    This has overwritten sqlite provided by AIX toolbox rpm package which was needed for python to work. 

    To resolve please install sqlite from AIX toolbox. Yes you can download sqlite.rpm from https://www.ibm.com/support/pages/aix-toolbox-open-source-software-downloads-alpha and install using rpm command. As other dependencies should be there so you should not run into dependency issue.

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



  • 6.  RE: yum doesn't work after migration from AIX 7.1 to 7.2

    Posted Thu October 06, 2022 09:50 AM
    Hello Sanket,

    thanks for your answer. This solved the issue on some of our LPARs and yum works again.

    On one LPAR there is now a different issue/message and I'll open another thread for this one.

    Thanks again!

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



  • 7.  RE: yum doesn't work after migration from AIX 7.1 to 7.2

    Posted Fri October 07, 2022 10:14 AM
    Hi Hans,

    Good to know your issue is resolved. Yes please let us know what is the other issue you are facing.

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