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.  Problem with "updtvpkg"

    Posted Sat April 24, 2021 06:27 PM
    Hi,
    on one of our LPARs I tried to do a yum update. Prior to this, I usually do a "updtvpkg". But on this machine it failes:
    root> updtvpkg
    Please wait...exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
            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.
    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
            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.
    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
            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.
    exec(): 0509-036 Cannot load program /usr/bin/rpmbuild because of the following errors:
            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.
    
    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
            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.​
    And the "yum" command failed as well:
    root> yum
    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]​
    Anyone may help here?

    ------------------------------
    Janko
    Germany
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Problem with "updtvpkg"

    Posted Sun April 25, 2021 02:48 AM
    Edited by Janko Lengyel Sun April 25, 2021 05:07 AM
    For now I reinstalled "rpm.rte" via installp. Now "updtvpkg" is working again, but "yum" stills shows (another) error:
    root\> yum
    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 /opt/freeware/lib/libsqlite3.so.
            0509-136   Symbol _GLOBAL__AIXD_libsqlite3_so (number 220) is not exported from
                       dependent module /opt/freeware/lib/libsqlite3.so.
            0509-026 System error: Error 0
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.​

    The same I get, when I try to run "python".

    root> python
    exec(): 0509-036 Cannot load program python 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 /opt/freeware/lib/libsqlite3.so.
            0509-136   Symbol _GLOBAL__AIXD_libsqlite3_so (number 220) is not exported from
                       dependent module /opt/freeware/lib/libsqlite3.so.
            0509-026 System error: Error 0
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.

    As yum uses python, I think we have to repair python first.

    Any ideas to get it back working?

    ------------------------------
    Janko
    Germany
    ------------------------------



  • 3.  RE: Problem with "updtvpkg"

    Posted Sun April 25, 2021 05:19 AM
    Got yum and python back working by reinstalling sqlite & bzip2 with "rpm -Uhv --force".

    ------------------------------
    Janko
    Germany
    ------------------------------