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.  Upgrade CURL on AIX 6.1

    Posted Wed July 06, 2022 02:08 AM
    I would like to install latest CURL on AIX 6.1 server. Tried few download from IBM ftp site, getting issue on many dependencies , tried to resolve them getting further dependencies issues. Please help provide complete instructions to resolve this issue.

    current installed curl: curl 7.19.0
    required at least above 7.56. 

    tried:
    <c-r2-carbon-accordion c-r2viewcasedetail_r2viewcasedetail="" c-r2carbonaccordion_r2carbonaccordion-host="">
      <c-r2-carbon-accordion-item c-r2viewcasedetail_r2viewcasedetail="" c-r2carbonaccordionitem_r2carbonaccordionitem-host="">
    • <lightning-formatted-text c-r2viewcasedetail_r2viewcasedetail="">Retrieving ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/curl/curl-devel-7.72.0-1.aix6.1.ppc.rpm
      error: failed dependencies:
      curl = 7.72.0 is needed by curl-devel-7.72.0-1
      libssh2-devel >= 1.8.0-3 is needed by curl-devel-7.72.0-1</lightning-formatted-text>
    • </c-r2-carbon-accordion-item>
    </c-r2-carbon-accordion>
    also downloaded 7.72.0 manually from the URL unable install via smitty install , getting failed error 

    Thank you.

    ------------------------------
    muhammad akram
    ------------------------------


  • 2.  RE: Upgrade CURL on AIX 6.1

    Posted Wed July 06, 2022 02:31 AM
    You need to configure yum in your AIX 6.1 machine. 
    https://developer.ibm.com/articles/configure-yum-on-aix/

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



  • 3.  RE: Upgrade CURL on AIX 6.1

    Posted Thu July 07, 2022 02:22 PM
    Thank you Ayappan,

    I downloaded and tried to run the yum.sh, it gives error. i do have 1GB space in /tmp. 
    ./yum.sh
    Please make sure /tmp has 149MB of free space to download rpm.rte & yum_bundle.tar files,
    and space required for extracting the rpm packages.

    Please advise. 
    Thank you.

    ------------------------------
    muhammad akram
    ------------------------------



  • 4.  RE: Upgrade CURL on AIX 6.1

    Posted Fri July 08, 2022 03:14 AM
    Below is the code from yum.sh 

    typeset -i total_req=`echo "(45+54+50)" | bc`
    tmp_free=`df -m /tmp | sed -e /Filesystem/d | awk '{print $3}'`
    if [[ $tmp_free -le $total_req ]]
    then
    echo "Please make sure /tmp has 149MB of free space to download rpm.rte & yum_bundle.tar files,"
    echo "and space required for extracting the rpm packages."
    exit 1
    fi

    It could be possible that the presence of /opt/freeware/bin/df will make the above logic wrong. 
    You can try this
    PATH=/usr/bin:$PATH ./yum.sh

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



  • 5.  RE: Upgrade CURL on AIX 6.1

    Posted Fri July 08, 2022 08:44 AM
    Thank you again. I tried as per your instructions, here is the result:

    #PATH=/usr/bin:$PATH ./yum.sh
    Attempting download of rpm.rte & yum_bundle.tar ...
    ./yum.sh[72]: expect: not found.
    mv: 0653-401 Cannot rename rpm.rte.4.13.0.11 to rpm.rte:
    A file or directory in the path name does not exist.
    Failed to download rpm.rte

    Please advise. 
    Thanks. 


    ​​

    ------------------------------
    muhammad akram
    ------------------------------



  • 6.  RE: Upgrade CURL on AIX 6.1

    Posted Fri July 08, 2022 09:29 AM
    expect is a requirement for running yum.sh. 
    expect comes by default in AIX as a lpp package. Probably it is uninstalled here. Please check it out.

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