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 command broken after to latest popt code

    Posted Tue September 29, 2020 04:50 PM
    ​​I just attempted to yum update installed RPMs on another AIX 7.2 server and ran into a problem with the yum command (and rpm command) no longer working due to removal of libpopt.so.0 from the latest popt RPM (popt-1.18-1.ppc).   Here is the tail end of the yum command showing all the packages that were updated as well as the subsequent attempt to run "yum update" again to verify all the code is at the latest level:
     
    Dependency Installed:
      jbigkit-libs.ppc 0:2.1-1      krb5-libs.ppc 0:1.16.1-4           libnghttp2.ppc 0:1.41.0-1     
      libpaper.ppc 0:1.1.24-2       libtiff.ppc 0:4.1.0-1              libunistring.ppc 0:0.9.9-2    
      libwebp.ppc 0:1.0.2-1         libxml2.ppc 0:2.9.9-1              lz4.ppc 0:1.9.2-1             
      p11-kit.ppc 0:0.23.16-1       p11-kit-tools.ppc 0:0.23.16-1      xz-libs.ppc 0:5.2.5-1         

    Updated:
      bash.ppc 0:5.0.18-1            bzip2.ppc 0:1.0.8-2         ca-certificates.ppc 0:2020.06.01-1  
      coreutils.ppc 0:8.32-1         curl.ppc 0:7.71.1-1         db.ppc 0:6.2.38-2                   
      expat.ppc 0:2.2.9-2            file.ppc 0:5.38-1           file-libs.ppc 0:5.38-1              
      findutils.ppc 0:4.6.0-2        gcc.ppc 0:8.3.0-2           gcc-cpp.ppc 0:8.3.0-2               
      gettext.ppc 0:0.19.8.1-5       ghostscript.ppc 0:9.50-1    gzip.ppc 0:1.10-1                   
      info.ppc 0:6.6-2               libconfuse.ppc 0:3.2.2-2    libgcc.ppc 0:8.3.0-2                
      libiconv.ppc 0:1.16-1          libjpeg.ppc 0:9d-1          libmpc.ppc 0:1.1.0-1                
      libssh2.ppc 0:1.9.0-1          libstdc++.ppc 0:8.3.0-2     mpfr.ppc 0:4.0.2-2                  
      ncurses.ppc 0:6.2-2            nspr.ppc 0:4.21-1           nss.ppc 0:3.45-1                    
      openldap.ppc 0:2.4.50-1        pcre.ppc 0:8.44-1           popt.ppc 0:1.18-1                   
      pysqlite.ppc 0:2.8.3-2         python.ppc 0:2.7.18-1       python-devel.ppc 0:2.7.18-1         
      python-tools.ppc 0:2.7.18-1    readline.ppc 0:8.0-2        rsync.ppc 0:3.2.3-1                 
      screen.ppc 0:4.7.0-1           sed.ppc 0:4.5-3             sqlite.ppc 0:3.32.3-1               
      zip.ppc 0:3.0-4              

    Complete!
    #  unset LIBPATH;yum update
    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/site-packages/rpm/_rpm.so.
            0509-150   Dependent module libpopt.so could not be loaded.
            0509-022 Cannot load module libpopt.so.
            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/site-packages/rpm/_rpm.so.
            0509-150   Dependent module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.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.18 (default, May  4 2020, 03:46:51)
    [GCC 8.3.0]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq
     

    As I could not run "yum" or "rpm" to return to the previously installed version of popt (popt-1.16-3.ppc), I restored the following two files to get "yum" and "rpm" operating correctly again:
    lrwxrwxrwx    1 root     system           34 Sep 29 16:22 /opt/freeware/lib/libpopt.so -> /usr/opt/freeware/lib/libpopt.so.0
    -rwxr-xr-x    1 root     system       157515 Jul 08 2017  /usr/opt/freeware/lib/libpopt.so.0

    Like Samba that I previously posted about, it looks like another package needs to be rebuilt without requiring libpopt.so

    Thanks - 



    ------------------------------
    Mark Skinner
    ------------------------------

    #AIXOpenSource


  • 2.  RE: yum command broken after to latest popt code

    Posted Wed September 30, 2020 01:57 AM
    I guess the installed rpm.rte fileset level is below 4.13.0.4. 
    Suggest you to update it to 4.13.0.4 or above. This is very much needed and it is the way going forward.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: yum command broken after to latest popt code

    Posted Wed September 30, 2020 12:08 PM
    ​You are correct, the system was running AIX 7200-03-02-1846 code and had its rpm.rte fileset at the 4.13.0.3 level.

    I was able to update AIX to 7200-04-02-2028 which updated the rpm.rte fileset to the 4.13.0.11 level, at which point I was able to successfully run "yum" (and "rpm") without the libpopt.so file on the system.

    On another server still running AIX 7200-03-02-1846 I just updated bos.rte.install and rpm.rte, and then yum updated to the popt-1.18-1.ppc code, after which the yum and rpm commands continued to work just fine.

    Thanks -

    ------------------------------
    Mark Skinner
    ------------------------------