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
Expand all | Collapse all

git upgrade for AIX 7.1

  • 1.  git upgrade for AIX 7.1

    Posted Thu October 11, 2018 03:24 AM

    Originally posted by: Fasi Mohiuddin


    Hi everyone,

    I am facing problem while trying to upgrade git package in IBM-AIX server.

    Currently package installed is "git version 2.8.1", while trying to upgrade to "git-2.18.0-1" throwing following error. Kindly advice.

     

    root@server:/home/fasih>#rpm -Uvh git-2.18.0-1.aix6.1.ppc.rpm

    cannot get shared lock on database
    rpmQuery: rpmdbOpen() failed
    cannot get shared lock on database
    rpmQuery: rpmdbOpen() failed
    Please update curl to 7.60.0 or later so that proper gcc(6.3.0) version will be installed.
                  curl-7.60.0 is built with gcc-6.3.0, hence the system needs to have gcc-6.3.0 or higher version.

    execution of git-2.18.0-1 script failed, exit status 1

    root@server:/home/fasih>#
    root@server:/home/fasih>#
    root@server:/home/fasih>#
    root@server:/home/fasih>#rpm -Uvh curl-7.6
    curl-7.60.0-1.aix5.1.ppc.rpm  curl-7.61.0-1.aix6.1.ppc.rpm
    root@server:/home/fasih>#rpm -Uvh curl-7.61.0-1.aix6.1.ppc.rpm
    package curl-7.61.0-1 is already installed
    root@server:/home/fasih>#
    root@server:/home/fasih>#
    root@server:/home/fasih>#
    root@server:/home/fasih>#curl --version
    exec(): 0509-036 Cannot load program curl because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib64/libcurl.a(libcurl.so.4).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto64.so) could not be loaded.
            0509-152   Member libcrypto64.so is not found in archive
            0509-022 Cannot load module curl_64.
            0509-150   Dependent module /opt/freeware/lib64/libcurl.a(libcurl.so.4) could not be loaded.
            0509-022 Cannot load module .

    root@server:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#git --version
    git version 2.8.1
    root@PEC-Preprod_M:/home/fasih>#
     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: git upgrade for AIX 7.1

    Posted Thu October 11, 2018 03:34 AM

    Originally posted by: AyappanP


    Remove the openssl rpm and try


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: git upgrade for AIX 7.1

    Posted Thu October 11, 2018 08:11 AM

    Originally posted by: Fasi Mohiuddin


    Hi Ayappan,

    Thanks for sharing information.

    I tried removing openssl, but still the same. The only change now is curl doesn't give error and now it's version is displayed.

     

    root@PEC-Preprod_M:/>#
    root@PEC-Preprod_M:/>#rpm -qi openssl
    package openssl is not installed
    root@PEC-Preprod_M:/>#
    root@PEC-Preprod_M:/home/fasih>#rpm -Uvh git-2.18.0-1.aix6.1.ppc.rpm
    cannot get shared lock on database
    rpmQuery: rpmdbOpen() failed
    cannot get shared lock on database
    rpmQuery: rpmdbOpen() failed
    Please update curl to 7.60.0 or later so that proper gcc(6.3.0) version will be installed.
                  curl-7.60.0 is built with gcc-6.3.0, hence the system needs to have gcc-6.3.0 or higher version.
    execution of git-2.18.0-1 script failed, exit status 1

    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#rpm -Uvh curl-7.61.0-1.aix6.1.ppc.rpm
    package curl-7.61.0-1 is already installed
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#curl --version
    curl 7.61.0 (powerpc-ibm-aix6.1.9.0) libcurl/7.61.0 OpenSSL/1.0.2o zlib/1.2.11 libssh2/1.8.0
    Release-Date: 2018-07-11
    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

    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#rpm --rebuilddb
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#/usr/sbin/updtvpkg
    Please wait...
    root@PEC-Preprod_M:/home/fasih>#

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 4.  Re: git upgrade for AIX 7.1

    Posted Thu October 11, 2018 08:30 AM

    Originally posted by: AyappanP


    Some problem with the pre-install script. 

    Run "rpm -Uvh curl-7.61.0-1.aix6.1.ppc.rpm --noscripts" 

    Just share the rpm version (rpm --version) and AIX level (oslevel -s)


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 5.  Re: git upgrade for AIX 7.1

    Posted Thu October 11, 2018 08:44 AM

    Originally posted by: Fasi Mohiuddin


    Following is the output:

    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#rpm --version
    RPM version 3.0.5
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#oslevel -s
    7100-04-02-1614
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#rpm -Uvh curl-7.61.0-1.aix6.1.ppc.rpm --noscripts
    package curl-7.61.0-1 is already installed
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#date
    Thu Oct 11 15:37:34 WAT 2018
    root@PEC-Preprod_M:/home/fasih>#
     

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 6.  Re: git upgrade for AIX 7.1

    Posted Thu October 11, 2018 09:05 AM

    Originally posted by: AyappanP


    Okay. I should have put git in place of curl.

    Run "rpm -Uvh git-2.18.0-1.aix6.1.ppc.rpm --noscripts"


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 7.  Re: git upgrade for AIX 7.1

    Posted Thu October 11, 2018 09:50 AM

    Originally posted by: Fasi Mohiuddin


    This one worked, thanks a lot for your kind support Smile.

    Can I install openssl now or will it conflict.

     

    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#rpm -Uvh git-2.18.0-1.aix6.1.ppc.rpm --noscripts
    git                         ##################################################
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#curl --version
    curl 7.61.0 (powerpc-ibm-aix6.1.9.0) libcurl/7.61.0 OpenSSL/1.0.2o zlib/1.2.11 libssh2/1.8.0
    Release-Date: 2018-07-11
    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
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#
    root@PEC-Preprod_M:/home/fasih>#git --version
    git version 2.18.0
    root@PEC-Preprod_M:/home/fasih>#
     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 8.  Re: git upgrade for AIX 7.1

    Posted Thu October 11, 2018 09:53 AM

    Originally posted by: AyappanP


    It will conflict


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 9.  Re: git upgrade for AIX 7.1

    Posted Thu October 11, 2018 09:56 AM

    Originally posted by: Fasi Mohiuddin


    So, can I install openssl now.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 10.  Re: git upgrade for AIX 7.1

    Posted Thu October 11, 2018 10:15 AM

    Originally posted by: Fasi Mohiuddin


    Ok got it Smile. Thanks a lot.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 11.  Re: git upgrade for AIX 7.1

    Posted Fri December 14, 2018 02:48 AM

    Originally posted by: CTSUnix


    Hi, I have been trying to install the same version git in aix 7.1 but I am getting dependency error for python and zlib. most likely there is a chance to get other set of dependencies of python and zlib. So is there a way to bypass this..?. 

     

    #git --version
    git version 2.8.1
    #rpm -Uvh git-2.18.0-1.aix6.1.ppc.rpm
    error: failed dependencies:
            python >= 2.7.12 is needed by git-2.18.0-1
            zlib >= 1.2.11 is needed by git-2.18.0-1

     

    #oslevel
    7.1.0.0

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 12.  Re: git upgrade for AIX 7.1

    Posted Fri December 14, 2018 04:02 AM

    Originally posted by: AyappanP


    Use yum to upgrade it. 


    #AIX-Open-Source-Software
    #AIXOpenSource