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

yum fails after idsldap filesets are updated

  • 1.  yum fails after idsldap filesets are updated

    Posted Fri August 07, 2020 02:13 AM
    Edited by Dennis Mathews Fri August 07, 2020 03:43 AM
    EDIT: This post is a duplicate. Please ignore.


    YUM and other aix toolbox rpms are broken after idsldap lpp filesets are updated. 

    root@x:/root: yum repolist 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 /lib/libcurl.a(libcurl.so.4). 0509-150 Dependent module /lib/libldap.a(libldap-2.4.so.2) could not be loaded. 0509-153 File /lib/libldap.a is not an archive or
    the file could not be read properly.
    0509-026 System error: Cannot run a file that does not have a valid format. 0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so. 0509-150 Dependent module /lib/libcurl.a(libcurl.so.4) 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.17 (default, Feb 24 2020, 10:57:43) [GCC 8.3.0] If you cannot solve this problem yourself, please go to
    the yum faq at:http://yum.baseurl.org/wiki/Faq


    root@au2106api0003:/root: ls /opt/freeware/lib/|egrep 'curl|ldap'
    libcurl.a
    libldap-2.4.a
    libldap-2.4.so.2
    libldap.a
    libldap_r-2.4.a
    libldap_r-2.4.so.2
    libldap_r.a

    root@x:/root: ls /usr/lib|grep ldap
    idsldap_plugin_ibm_gsskrb_64.a idsldap_plugin_ibm_gsskrb.a idsldap_plugin_sasl_digest-md5_64.a idsldap_plugin_sasl_digest-md5.a ldap_plugin_ibm_gsskrb_64.a ldap_plugin_ibm_gsskrb.a ldap_plugin_sasl_digest-md5_64.a ldap_plugin_sasl_digest-md5.a
    libgsk8ldap_64.so
    libgsk8ldap.so
    libibmldap64.a
    libibmldap.a
    libibmldapstatic64.a
    libibmldapstatic.a
    libidsldap64.a libidsldap.a libidsldapstatic64.a libidsldapstatic.a
    libldap64.a
    libldap.a
    libldapiconv64.a
    libldapiconv.a

    root@x:/root: lslpp -cl idsldap* #Fileset:Level:PTF Id:State:Type:Description:EFIX Locked /usr/lib/objrepos:idsldap.clt32bit61.rte:6.1.0.57::COMMITTED:I:Directory Server - 32 bit Client: /usr/lib/objrepos:idsldap.clt32bit64.rte:6.4.0.15::COMMITTED:I:Directory Server - 32 bit Client:
    /usr/lib/objrepos:idsldap.clt64bit64.rte:6.4.0.15::COMMITTED:I:Directory Server - 64 bit Client:
    /usr/lib/objrepos:idsldap.clt_max_crypto32bit61.rte:6.1.0.57::COMMITTED:I:Directory Server - 32 bit Client (SSL):
    /usr/lib/objrepos:idsldap.clt_max_crypto32bit64.rte:6.4.0.15::COMMITTED:I:Directory Server - 32 bit Client (SSL):
    /usr/lib/objrepos:idsldap.clt_max_crypto64bit64.rte:6.4.0.15::COMMITTED:I:Directory Server - 64 bit Client (SSL):
    /usr/lib/objrepos:idsldap.cltbase61.adt:6.1.0.57::COMMITTED:I:Directory Server - Base Client:
    /usr/lib/objrepos:idsldap.cltbase61.rte:6.1.0.57::COMMITTED:I:Directory Server - Base Client:
    /usr/lib/objrepos:idsldap.cltbase64.adt:6.4.0.15::COMMITTED:I:Directory Server - Base Client: /usr/lib/objrepos:idsldap.cltbase64.rte:6.4.0.15::COMMITTED:I:Directory Server - Base Client: /usr/lib/objrepos:idsldap.license64.rte:6.4.0.15::COMMITTED:I:Directory Server - License: /etc/objrepos:idsldap.clt32bit61.rte:6.1.0.57::COMMITTED:I:Directory Server - 32 bit Client:
    /etc/objrepos:idsldap.clt32bit64.rte:6.4.0.15::COMMITTED:I:Directory Server - 32 bit Client:
    /etc/objrepos:idsldap.clt64bit64.rte:6.4.0.15::COMMITTED:I:Directory Server - 64 bit Client:
    /etc/objrepos:idsldap.cltbase61.rte:6.1.0.57::COMMITTED:I:Directory Server - Base Client:
    /etc/objrepos:idsldap.cltbase64.rte:6.4.0.15::COMMITTED:I:Directory Server - Base Client:


    Since the AIX idsldap filesets are udpated, yum only works if I set LIBPATH=/opt/freeware/lib. Same goes for curl.
    Aren't the AIX toolbox software supposed to search /opt/freeware/lib first ?


    ------------------------------
    Dennis Mathews
    ------------------------------
    #AIXOpenSource