AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Curl error

    Posted Fri July 01, 2022 09:24 AM
    Hi Team,

    I am getting error after curl installation. Could you please check and let me know if I am missing something. OS version is 7.1

    root@server:/# curl -version
    exec(): 0509-036 Cannot load program curl because of the following errors:
    0509-022 Cannot load module /opt/freeware/lib64/libldap.a(libldap-2.4.so.2).
    0509-150 Dependent module /opt/freeware/lib64/libsasl2.a could not be loaded.
    0509-022 Cannot load module /opt/freeware/lib64/libsasl2.a.
    0509-026 System error: A file or directory in the path name does not exist.
    0509-022 Cannot load module curl_64.
    0509-150 Dependent module /opt/freeware/lib64/libldap.a(libldap-2.4.so.2) could not be loaded.
    0509-022 Cannot load module .
    root@server:/# which curl
    /usr/bin/curl

    Regards
    Manoj


    ------------------------------
    Manoj Kumar
    ------------------------------


  • 2.  RE: Curl error

    Posted Fri July 01, 2022 10:47 AM
    Hi Manoj,

    It seems your libssh2 is broken and missing the required library.
    You can verify this with "rpm -V libssh2" and may need to reinstall libssh2.

    Also, looks like you have older curl version installed as we don't have /usr/bin/curl in latest updates.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: Curl error

    Posted Fri July 01, 2022 12:01 PM
    Thanks Sangamesh. We have run the command but nothing is coming here. We have installed the given curl version.

    root@sasmna300t:/# rpm -V libssh2
    root@sasmna300t:/#
    root@sasmna300t:/# rpm -qa|grep -i curl
    curl-7.64.0-1.ppc


    Regards
    Manoj

    ------------------------------
    Manoj Kumar
    ------------------------------



  • 4.  RE: Curl error

    Posted Fri July 01, 2022 12:29 PM
    Hi Manoj,

    Sorry, i overlooked the error.
    It's because of missing cyrus-sasl library.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 5.  RE: Curl error

    Posted Tue July 05, 2022 10:21 AM
    Hello Sangamesh,

    I have installed cyrus-sasl package as well as their dependency db. But still getting same message.

    root@sasmna300t:/# rpm -qa|grep -i cyrus
    cyrus-sasl-2.1.28-1.ppc
    root@sasmna300t:/# rpm -qa|grep -i db
    db-5.3.28-1.ppc
    root@sasmna300t:/# curl
    exec(): 0509-036 Cannot load program curl because of the following errors:
    0509-022 Cannot load module /opt/freeware/lib64/libldap.a(libldap-2.4.so.2).
    0509-150 Dependent module /opt/freeware/lib64/libsasl2.a could not be loaded.
    0509-022 Cannot load module /opt/freeware/lib64/libsasl2.a.
    0509-026 System error: Cannot run a file that does not have a valid format.
    0509-022 Cannot load module curl_64.
    0509-150 Dependent module /opt/freeware/lib64/libldap.a(libldap-2.4.so.2) could not be loaded.
    0509-022 Cannot load module .



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 6.  RE: Curl error

    Posted Tue July 05, 2022 12:32 PM
    Update the openldap rpm in the machine.

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



  • 7.  RE: Curl error

    Posted Fri July 08, 2022 07:22 AM
    Thanks Ayappan/Sangamesh. 

    We have installed curl on AIX server. We have ask app team to validate.

    Regards
    Manoj

    ------------------------------
    Manoj Kumar
    ------------------------------