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


#Servers
#Opensource
 View Only
  • 1.  yum_bundle on aix 7.2

    Posted 06/23/21 10:37 AM
    I had no issues installing the bundle on a couple of fresh 7200-05-02 installs but a slightly older version of AIX that previously had a lot of RPM's from various sources installed is causing issues.

    aix 7200-04-02-2028
    rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
    AIX-rpm-7.2.4.1-12.ppc

    Removed ALL previously installed RPM's except AIX-rpm
    Ran updtvpkg
    $LIBAPTH is empty
    Downloaded latest yum_bundle.tar and installed in the following order with rpm -Uvh <package>
     
    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
    gettext-0.19.7-1.aix6.1.ppc.rpm
    glib2-2.14.6-2.aix5.2.ppc.rpm
    readline-6.1-2.aix6.1.ppc.rpm
    sqlite-3.15.2-1.aix6.1.ppc.rpm
    python-2.7.10-1.aix6.1.ppc.rpm
    pysqlite-1.1.7-2.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
    yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm
    yum-3.4.3-8.aix6.1.noarch.rpm

    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:ca-certificates-2016.10.7-2 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:curl-7.52.1-1 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:db-4.8.24-3 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:gdbm-1.8.3-5 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    ar: 0707-109 Member name libintl.so.1 does not exist.
    ar: 0707-109 Member name libintl.so.1 does not exist.
    /
    Updating / installing...
    1:gettext-0.19.7-1 ################################# [100%]
    /
    sh: gzip: not found.
    install-info: warning: no info dir entry in `/opt/freeware/info/gettext.info.gz'
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:glib2-2.14.6-2 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:readline-6.1-2 ################################# [100%]
    sh: gzip: not found.
    install-info: warning: no info dir entry in `//opt/freeware/share/info/history.info.gz'
    sh: gzip: not found.
    install-info: warning: no info dir entry in `//opt/freeware/share/info/readline.info.gz'
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:sqlite-3.15.2-1 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python-2.7.10-1 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:pysqlite-1.1.7-2 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python-devel-2.7.10-1 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python-iniparse-0.4-1 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python-pycurl-7.19.3-1 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python-tools-2.7.10-1 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python-urlgrabber-3.10.1-1 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:yum-metadata-parser-1.1.4-2 ################################# [100%]
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:yum-3.4.3-8 ################################# [100%]

    Ran updtvpkg again.

    system currently doesnt have access to IBM repo so just just running yum --version to test install out and I get the following:


    # yum --version
    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/libintl.a(libintl.so.1) could not be loaded.
    0509-152 Member libintl.so.1 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


    Ive tried setting LIBPATH to see if that helped and it changed things a bit but still having issues:

    export LIBPATH=/opt/freeware/lib:/usr/lib:/opt/freeware/lib/python2.7

    # yum --version
    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 /opt/freeware/lib/python2.7/lib-dynload/binascii.so.
    0509-150 Dependent module libz.a(libz.so.1) could not be loaded.
    0509-022 Cannot load module libz.a(libz.so.1).
    0509-026 System error: A file or directory in the path name does not exist.
    0509-022 Cannot load module /opt/freeware/lib/python2.7/lib-dynload/binascii.so.
    0509-150 Dependent module /opt/freeware/lib/python2.7/lib-dynload/binascii.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 suggestions greatly appreciated.

    ------------------------------
    Larry Hotchkiss
    ------------------------------

    #AIXOpenSource


  • 2.  RE: yum_bundle on aix 7.2

    Posted 06/23/21 10:41 AM
    Hi Larry, 

    Some of the older RPMs from different source use to overwrite the tools provided by rpm.rte and when you remove those RPMs those tools are also gone.
    Hence rpm command does not work properly. To overcome this install rpm.rte again run updtvpkg and then install yum.
    Steps
    1. Uninstall all rpms from different sources
    2. Install rpm.rte package 
    3. run updatvpkg
    4. Install yum bundle

    Let us know if you still face issues.

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



  • 3.  RE: yum_bundle on aix 7.2

    Posted 06/23/21 11:54 AM
    BINGO!

    That did it, thank you so much.

    # yum --version
    3.4.3
    Installed: yum-3.4.3-8.noarch at 2021-06-23 15:52
    Built : IBM AIX Toolbox <https://ibm.biz/AIXToolbox> at 2020-12-04 12:33
    Committed: Sangamesh Mallayya <<sangamesh.swamy@in.ibm.com> at 2020-11-30

    ------------------------------
    Larry Hotchkiss
    ------------------------------