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.  curl and wget are working only for root but not for other ids

    Posted Thu August 27, 2020 11:00 AM
    [app61cnhx_new:root:/home/root:] curl --version
    curl 7.52.1 (powerpc-ibm-aix6.1.8.0) libcurl/7.61.0 OpenSSL/1.0.2r zlib/1.2.11 libssh2/1.8.0
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
    Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy
    [app61cnhx_new:root:/home/root:] exit
    $ curl --version
    Could not load program curl:
    Could not load module /usr/lib/libcurl.a(libcurl.so.4).
    Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.
    Member libcrypto.so is not found in archive
    Could not load module curl.
    Dependent module /usr/lib/libcurl.a(libcurl.so.4) could not be loaded.
    Could not load module .
    $

    ------------------------------
    Ayoob .
    ------------------------------

    #AIXOpenSource


  • 2.  RE: curl and wget are working only for root but not for other ids

    Posted Thu August 27, 2020 01:16 PM
    This curl version is old. Please update it to the recent versions.

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



  • 3.  RE: curl and wget are working only for root but not for other ids

    Posted Fri August 28, 2020 02:38 AM
    Do you have openssl rpm also installed on system ? 
    You can verify by
    # rpm -qa | grep​ openssl 

    We do not encourage to use openssl rpm with AIX toolbox packages.

    Also I think you are saying that it is working with root user but not with non-root user. 
    Can you check the LIBPATH for root and non-root user ? 
    # echo $LIBPATH

    If for non-root LIBPATH has /opt/freeware/lib path ser before that /usr/lib then there is problems. 
    If any one of the above thing is true then solution is
    Either remove openssl rpm or do not have /opt/freeware/lib path in LIBPATH.
    If LIBPATH has to be set for some reason then you should uninstall openssl rpm from system for curl to work. 


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



  • 4.  RE: curl and wget are working only for root but not for other ids

    Posted Wed December 16, 2020 10:42 AM
    [app61cnhx_new:root:/home/root:] rpm -qa|grep -i openssl
    openssl-1.0.2n-1.ppc
    [app61cnhx_new:root:/home/root:] echo $LIBPATH
    /usr/lib:/lib:/usr/bin:/opt/freeware/lib:/opt/freeware/lib64
    [app61cnhx_new:root:/home/root:]

    This is Websphere server and there is a chance openssl package might be using by the application. What should be done in this case?

    Curl status for  root :
    ==================
    [app61cnhx_new:root:/ML/curl:] curl --version
    curl 7.52.1 (powerpc-ibm-aix6.1.8.0) libcurl/7.61.0 OpenSSL/1.0.2r zlib/1.2.11 libssh2/1.8.0
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
    Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy
    [app61cnhx_new:root:/ML/curl:] exit


    Curl status for  normal user :
    =====================
    $ curl --version
    Could not load program curl:
    Could not load module /usr/lib/libcurl.a(libcurl.so.4).
    Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.
    Member libcrypto.so is not found in archive
    Could not load module curl.
    Dependent module /usr/lib/libcurl.a(libcurl.so.4) could not be loaded.
    Could not load module .

    ------------------------------
    Ayoob .
    ------------------------------



  • 5.  RE: curl and wget are working only for root but not for other ids

    Posted Thu December 17, 2020 01:51 AM

    As mentioned earlier, the curl you have is old. Update to recent version from Toolbox.



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