AIX Open Source

 View Only
  • 1.  CURL Installation Error

    Posted Wed July 21, 2021 12:45 PM
    We are trying to install the curl package on the AIX. Its throwing the below error. Please advise? 

    root [tmp] /tmp: rpm -ivh "curl-7.76.1-1.aix6.1.ppc (2).rpm"
    error: failed dependencies:
    ca-certificates >= 2020.06.01 is needed by curl-7.76.1-1
    krb5-libs >= 1.18.3 is needed by curl-7.76.1-1
    libcom_err.a(libcom_err.so) is needed by curl-7.76.1-1
    libcom_err.so is needed by curl-7.76.1-1
    libcrypto.a(libcrypto.so.1.0.2) is needed by curl-7.76.1-1
    libgcc >= 8.3.0 is needed by curl-7.76.1-1
    libgssapi_krb5.a(libgssapi_krb5.so) is needed by curl-7.76.1-1
    libgssapi_krb5.so is needed by curl-7.76.1-1
    libk5crypto.a(libk5crypto.so) is needed by curl-7.76.1-1
    libk5crypto.so is needed by curl-7.76.1-1
    libkrb5.a(libkrb5.so) is needed by curl-7.76.1-1
    libkrb5.so is needed by curl-7.76.1-1
    liblber.a(liblber-2.4.so.2) is needed by curl-7.76.1-1
    libldap.a(libldap-2.4.so.2) is needed by curl-7.76.1-1
    libnghttp2 >= 1.41.0 is needed by curl-7.76.1-1
    libssh2 >= 1.9.0 is needed by curl-7.76.1-1
    libssh2.a(libssh2.so.1) is needed by curl-7.76.1-1
    libssl.a(libssl.so.1.0.2) is needed by curl-7.76.1-1
    openldap >= 2.4.56-2 is needed by curl-7.76.1-1
    zlib >= 1.2.11 is needed by curl-7.76.1-1

    ------------------------------
    sewa singh
    ------------------------------


  • 2.  RE: CURL Installation Error

    Posted Fri July 23, 2021 04:09 AM
    You will have to install the dependencies to install curl. It is similar to any other rpm based system.
    The best way to resolve dependencies it to use yum or dnf.

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



  • 3.  RE: CURL Installation Error

    Posted Wed July 28, 2021 01:08 PM
    Hi. in which place link can I find all lib ---. ppc.rpm dependencies  and  to be able to download to install .. How do I know which version corresponds to which ...
    now curl not work ,  i have the following:

    (guss/maniobra/curl)>lslpp -L |grep curl
    curl 7.72.0-2 C R A utility for getting files
    libcurl 7.72.0-2 C R A library for getting files
    libcurl-devel 7.72.0-2 C R Files needed for building
    applications with libcurl
    (guss/maniobra/curl)>rpm -qa |grep curl
    libcurl-7.72.0-2.ppc
    libcurl-devel-7.72.0-2.ppc
    curl-7.72.0-2.ppc
    (guss/maniobra/curl)>which curl
    /opt/freeware/bin/curl

    (guss/opt/freeware/lib64)>/opt/freeware/bin/curl -V
    exec(): 0509-036 Cannot load program /opt/freeware/bin/curl because of the following errors:
    0509-150 Dependent module /opt/freeware/lib64/libldap.a(libldap-2.4.so.2) could not be loaded.
    0509-153 File /opt/freeware/lib64/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.

    (guss/opt/freeware/lib64)>ldd /opt/freeware/lib64/libldap.a
    /opt/freeware/lib64/libldap.a needs:
    /opt/freeware/lib64/libgcc_s.a(shr.o)
    /opt/freeware/lib64/liblber.a(liblber-2.4.so.2)
    /opt/freeware/lib/libsasl2.a
    dump: /opt/freeware/lib/libsasl2.a: 0654-108 file is not valid in the current object file mode.
    Use the -X option to specify the desired object mode.
    /usr/lib/libs.a(shr_64.o)
    /usr/lib/libssl.a(libssl.so.1.0.2)
    /usr/lib/libcrypto.a(libcrypto.so.1.0.2)
    /usr/lib/libc.a(shr_64.o)
    /unix
    /usr/lib/libcrypt.a(shr_64.o)
    /usr/lib/libcrypto.a(libcrypto64.so.1.0.0)
    (guss/opt/freeware/lib64)>
    (guss/opt/freeware/lib64)>ldd /opt/freeware/bin/curl
    /opt/freeware/bin/curl needs:
    /usr/lib/libc.a(shr_64.o)
    /usr/lib/libpthreads.a(shr_xpg5_64.o)
    /opt/freeware/lib/libcurl.a(libcurl.so.4)
    /opt/freeware/lib/libssh2.a(libssh2.so.1)
    /opt/freeware/lib64/libldap.a(libldap-2.4.so.2)
    ar: 0707-108 File /opt/freeware/lib64/libldap.a is not an archive file.
    dump: /tmp/tmpdir9437322/extract/libldap-2.4.so.2: 0654-106 Cannot open the specified file.
    /opt/freeware/lib64/liblber.a(liblber-2.4.so.2)
    /unix
    /usr/lib/libcrypt.a(shr_64.o)
    /opt/freeware/lib64/libgcc_s.a(shr.o)
    /usr/lib/libcrypto.a(libcrypto.so.1.0.2)
    /usr/lib/libssl.a(libssl.so.1.0.2)
    /opt/freeware/lib/libz.a(libz.so.1)
    /usr/lib/libcrypto.a(libcrypto64.so.1.0.0)

    thanks for your support and help
    Antonio




    ------------------------------
    GUSS De ANTEL
    ------------------------------



  • 4.  RE: CURL Installation Error

    Posted Thu July 29, 2021 12:31 PM
    Hi, 
    I am not sure from where did you first install curl and other oss. If you have installed it from AIX toolbox then all the libraries and dependencies are available there.
    Here is the link for AIX toolbox 
    https://www.ibm.com/support/pages/aix-toolbox-linux-applications-downloads-alpha

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