AIX Open Source

 View Only
  • 1.  libcurl.a and libldap.a is not loadable

    Posted Thu June 03, 2021 06:09 AM
    Having problem with yum and git after update curl to 7.74
    it complaints libcurl.a and libldap.a is not loadable:

    jacob_s3_mercury@edc1vpdc1lpr106:/home/jacob_s3_mercury/jacob_s3_mercury #yum
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    Could not load module /opt/freeware/lib/libcurl.a(libcurl.so.4).
    Dependent module /usr/lib/libldap.a(libldap-2.4.so.2) could not be loaded.
    File /usr/lib/libldap.a is not an
    archive or the file could not be read properly.
    System error: Exec format error
    Could not load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
    Dependent module /opt/freeware/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.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

    Could someone help? I need to fix my yum real quick....

    ------------------------------
    Victor Liu
    ------------------------------


  • 2.  RE: libcurl.a and libldap.a is not loadable

    Posted Thu June 03, 2021 09:27 AM
    Hi Victor,

    What was the previous version of curl installed on system ?
    Can you please share output of "rpm -qa" command or let us know what version of openldap installed.
    Is there any other ldap installed on your system eg IBM Directory Server ?

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



  • 3.  RE: libcurl.a and libldap.a is not loadable

    Posted Sat June 05, 2021 06:42 PM
    old version of curl is 7.52, everything worked before I update to 7.74

    ------------------------------
    Victor Liu
    ------------------------------



  • 4.  RE: libcurl.a and libldap.a is not loadable

    Posted Wed June 09, 2021 10:13 AM
    Hi Victor,
    Is your problem fixed ? We still do not have enough data to look into. 
    How did you update curl ? Using yum ? 
    Latest libldap should be  in /opt/freeware/lib path and I am wondering why it is using /usr/lib path?
    Do you have some libldap in /usr/lib path ? 
    Can you please provide output of 
    # rpm -qa ​
    Also 
    # ls -l /usr/lib/libldap.a



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



  • 5.  RE: libcurl.a and libldap.a is not loadable

    Posted Fri June 11, 2021 09:49 AM
    Hi Sanket

    problem still there, here is the output:

    lrwxrwxrwx 1 root system 35 Sep 21 2020 /usr/lib/libldap.a -> /opt/IBM/ldap/V6.4/lib/libidsldap.a
    -rwxr-xr-x 1 root system 2292863 Dec 22 01:59 /opt/freeware/lib/libcurl.a
    popt-1.7-2.ppc
    zip-2.3-3.ppc
    jpmc-rosh-1.0-11.aix.ppc
    python-2.7.10-1.ppc
    pysqlite-1.1.7-2.ppc
    yum-metadata-parser-1.1.4-2.ppc
    python-urlgrabber-3.10.1-1.noarch
    python-tools-2.7.10-1.ppc
    libyaml-0.1.4-2.ppc
    python-boto-2.34.0-1.noarch
    python-configobj-5.0.5-1.noarch
    python-jsonpatch-1.8-1.noarch
    python-prettytable-0.7.2-1.noarch
    python-requests-2.4.3-1.noarch
    python-six-1.10.0-1.noarch
    python-argparse-1.2.1-1.noarch
    rsync-3.1.2-2.ppc
    bash-4.3.30-1.ppc
    python-paramiko-1.7.6-1.ppc
    python-pyasn1-0.2.3-1.noarch
    sshpass-1.06-2.ppc
    python-jinja2-2.9.6-1.noarch
    zlib-1.2.11-1.ppc
    python3-markupsafe-1.1.1-1.ppc
    python3-pyyaml-5.1.2-1.ppc
    libffi-3.2.1-3.ppc
    ncurses-6.2-1.ppc
    gettext-0.19.8.1-5.ppc
    libunistring-0.9.9-2.ppc
    expat-2.2.9-1.ppc
    python3-jmespath-0.9.4-1.noarch
    libgcc8-8.3.0-4.ppc
    libstdc++8-8.3.0-4.ppc
    gmp-6.1.2-1.ppc
    libmpc-1.1.0-1.ppc
    gcc8-8.3.0-4.ppc
    gcc-cpp-8-1.ppc
    xz-libs-5.2.5-1.ppc
    xz-devel-5.2.5-1.ppc
    libxml2-2.9.10-1.ppc
    python3-3.7.9-1.ppc
    libxml2-devel-2.9.10-1.ppc
    python3-cffi-1.13.2-1.ppc
    db-5.3.28-1.ppc
    p11-kit-0.23.16-2.ppc
    ca-certificates-2020.06.01-1.ppc
    openldap-2.4.56-2.ppc
    libnghttp2-1.41.0-1.ppc
    curl-7.74.0-1.ppc
    git-2.20.2-1.ppc
    AIX-rpm-7.2.4.1-17.ppc
    tcl-8.4.7-3.ppc
    unzip-5.51-1.ppc
    JPMCTivoli-4.1.1.24.142-6.0.ppc
    jpmc-powerbroker-agent-9.4.4-1.aix.ppc
    tk-8.4.7-3.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.19.3-1.ppc
    python-devel-2.7.10-1.ppc
    python-PyYAML-3.11-1.ppc
    python-cheetah-2.4.4-2.ppc
    python-jsonpointer-1.0-1.noarch
    python-oauth-1.0.1-1.noarch
    python-pyserial-2.7-1.ppc
    python-setuptools-0.9.8-2.noarch
    python-xml-0.8.4-1.ppc
    cloud-init-0.7.5-4.3.ppc
    wget-1.9.1-3.ppc
    bash-doc-4.3.30-1.ppc
    python-pycrypto-2.6.1-1.ppc
    python-babel-0.9.6-1.noarch
    python-keyczar-0.716-1.noarch
    python-markupsafe-1.0-1.ppc
    python-httplib2-0.9.2-1.noarch
    less-481-1.ppc
    python3-jinja2-2.10.3-1.noarch
    glib2-2.56.1-2.ppc
    info-6.6-2.ppc
    readline-8.0-2.ppc
    gdbm-1.18.1-1.ppc
    bzip2-1.0.8-2.ppc
    python3-six-1.13.0-1.noarch
    ansible-2.9.4-1.noarch
    jpmc-ldapssl-aix72-1.1-0.ppc
    libgcc-8-1.ppc
    libstdc++-8-1.ppc
    mpfr-4.0.2-2.ppc
    sed-4.8-1.ppc
    gcc8-cpp-8.3.0-4.ppc
    gcc-8-1.ppc
    pkg-config-0.29.2-2.ppc
    libiconv-1.16-1.ppc
    sqlite-3.32.3-1.ppc
    python3-devel-3.7.9-1.ppc
    python3-pycparser-2.19-1.noarch
    python3-cryptography-2.8-1.ppc
    libtasn1-4.16.0-1.ppc
    p11-kit-tools-0.23.16-2.ppc
    cyrus-sasl-2.1.26-3.ppc
    krb5-libs-1.18.3-1.ppc
    libssh2-1.9.0-1.ppc
    yum-3.4.3-8.noarch

    ------------------------------
    Victor Liu
    ------------------------------



  • 6.  RE: libcurl.a and libldap.a is not loadable

    IBM Champion
    Posted Fri June 04, 2021 02:13 AM
    Not sure if it helps for this case, but I have noticed that after updating rpm-packages (like sudo etc) and getting mysterious lib-errors; runnig /usr/sbin/updtvpkg has helped out.

    Br,
    tommi

    ------------------------------
    Tommi Sihvo, Lead Service Architect
    TietoEVRY, Compute Services
    email tommi.sihvo@tieto.com mobile +358 (0)40 5180 Finland
    ------------------------------



  • 7.  RE: libcurl.a and libldap.a is not loadable

    Posted Fri June 11, 2021 09:43 AM
    tried command but no luck

    ------------------------------
    Victor Liu
    ------------------------------



  • 8.  RE: libcurl.a and libldap.a is not loadable

    Posted Fri June 11, 2021 10:09 AM

    Do you have LIBPATH set to /usr/lib ? If so , then you need to unset it.
    And also I see your python rpm is very old (2.7.10). You need to update to the latest version 2.7.18 as there are some important fixes.



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