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 gives libcurl errors

    Posted Fri August 16, 2019 03:19 PM

    Originally posted by: AntonMarquez


    HI Team,

     

    I get the below error post yum installation.

     

    root@KDC-ecwasq1:/.root>yum repolist
    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 libssh2.a(libssh2.so.1) could not be loaded.
    Could not load module libssh2.a(libssh2.so.1).
    System error: No such file or directory
    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.15 (default, Sep 28 2018, 03:58:41)
    [GCC 6.3.0]

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


    root@KDC-ecwasq1:/.root>
     

     

    Can someone help ?

     

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: Yum gives libcurl errors

    Posted Mon August 19, 2019 02:36 AM

    Originally posted by: AyappanP


    Looks like libssh2 is not present on the system. And curl has dependency on it.

    # rpm -qR curl
    libssh2 >= 1.8.0-3
    ca-certificates >= 2016.10.7
    libgcc >= 6.3.0-1
    openldap >= 2.4.45-1
    libc.a(shr.o)
    libc.a(shr_64.o)
    libcrypto.a(libcrypto.so.1.0.2)
    libcurl.a(libcurl.so.4)
    libgcc_s.a(shr.o)
    liblber.a(liblber-2.4.so.2)
    libldap.a(libldap-2.4.so.2)
    libpthread.a(shr_xpg5.o)
    libpthreads.a(shr_xpg5.o)
    libpthreads.a(shr_xpg5_64.o)
    libs.a(shr.o)
    libssh2.a(libssh2.so.1)
    libssl.a(libssl.so.1.0.2)
    libz.a(libz.so.1)

     

    Check for the presence of libssh2 rpm . If not present , install it from Toolbox


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: Yum gives libcurl errors

    Posted Mon August 19, 2019 02:50 PM

    Originally posted by: AntonMarquez


    Hi Ayyappan, I installed libssh2 but still no luck

     

    root@KDC-ecwasq1:/tmp>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 libldap.a(libldap-2.4.so.2) could not be loaded.
    Could not load module libldap.a(libldap-2.4.so.2).
    System error: No such file or directory
    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.15 (default, Sep 28 2018, 03:58:41)
    [GCC 6.3.0]

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


    root@KDC-ecwasq1:/tmp>rpm -qR curl
    libssh2 >= 1.8.0-3
    ca-certificates >= 2016.10.7
    libgcc >= 6.3.0-1
    openldap >= 2.4.45-1
    libc.a(shr.o)
    libcrypto.a(libcrypto.so.1.0.0)
    libcurl.a(libcurl.so.4)
    libgcc_s.a(shr.o)
    liblber.a(liblber-2.4.so.2)
    libldap.a(libldap-2.4.so.2)
    libpthread.a(shr_xpg5.o)
    libpthreads.a(shr_xpg5.o)
    libs.a(shr.o)
    libssh2.a(libssh2.so.1)
    libssl.a(libssl.so.1.0.0)
    libz.a(libz.so.1)
    root@KDC-ecwasq1:/tmp>rpm -qa|grep -i libssh2
    libssh2-1.8.2-1.ppc
    root@KDC-ecwasq1:/tmp>
     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: Yum gives libcurl errors

    Posted Tue August 20, 2019 02:52 AM

    Originally posted by: AyappanP


    You should be having openldap rpm installed.

    Make sure you don't have any LIBPATH exported. 

     


    #AIX-Open-Source-Software
    #AIXOpenSource