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

Install Git on AIX 7.1

  • 1.  Install Git on AIX 7.1

    Posted Tue October 08, 2019 09:19 PM

    Originally posted by: Kazutaka Tsuji


    Hi, I'm trying to install git on AIX 7.1, due to our geo constraint, we can not use YUM to install git.
    So I guess only way to install is by rpm manually.
    I got rpm packages from aix-toolbox-linux-applications-downloads

    I tried and then got errors as follows:

     # rpm -ihv git-2.20.1-1.aix6.1.ppc.rpm
     error: Failed dependencies:
             /opt/freeware/bin/perl is needed by git-2.20.1-1.ppc
             gettext >= 0.19.8.1 is needed by git-2.20.1-1.ppc
             libcrypto.a(libcrypto.so.1.0.2) is needed by git-2.20.1-1.ppc
             liblber.a(liblber-2.4.so.2) is needed by git-2.20.1-1.ppc
             libldap.a(libldap-2.4.so.2) is needed by git-2.20.1-1.ppc
             libssh2 >= 1.8.0-2 is needed by git-2.20.1-1.ppc
             libssh2.a(libssh2.so.1) is needed by git-2.20.1-1.ppc
             libssl.a(libssl.so.1.0.2) is needed by git-2.20.1-1.ppc
             openldap >= 2.4.45-3 is needed by git-2.20.1-1.ppc
             python >= 2.7.12 is needed by git-2.20.1-1.ppc
    

    How can I solve those?
    Actually it made more errors before and I updated some services to reduce errors though,
    these 10 dependancies error is hard to solve by myself.
    Please let me know if there is a way to solve this problem, Thanks!



  • 2.  Re: Install Git on AIX 7.1

    Posted Wed October 09, 2019 01:02 AM

    Originally posted by: Kazutaka Tsuji


    Just found same kind of question, so in advance I executed these command

     

    $  lslpp -l openssl.base
      Fileset                      Level  State      Description         
      ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
      openssl.base            1.0.2.1100  COMMITTED  Open Secure Socket Layer
    
    Path: /etc/objrepos
      openssl.base            1.0.2.1100  COMMITTED  Open Secure Socket Layer
    $ rpm -qa
    expect-5.42.1-3.ppc
    tk-8.4.7-3.ppc
    sqlite-3.15.2-1.ppc
    glib2-2.14.6-2.ppc
    gdbm-1.8.3-5.ppc
    python-2.7.10-1.ppc
    python-iniparse-0.4-1.noarch
    curl-7.52.1-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    python-devel-2.7.10-1.ppc
    libiconv-1.14-22.ppc
    libgcc-6.3.0-2.ppc
    less-487-1.ppc
    zlib-1.2.11-1.ppc
    tcl-8.4.7-3.ppc
    AIX-rpm-7.1.5.15-3.ppc
    xcursor-1.1.7-3.ppc
    readline-6.1-2.ppc
    gettext-0.19.7-1.ppc
    yum-metadata-parser-1.1.4-2.ppc
    db-4.8.24-3.ppc
    pysqlite-1.1.7-2.ppc
    ca-certificates-2016.10.7-2.ppc
    python-pycurl-7.19.3-1.ppc
    yum-3.4.3-5.noarch
    python-tools-2.7.10-1.ppc
    bash-5.0-1.ppc
    expat-2.2.6-1.ppc
    rsync-3.1.3-2.ppc
    

     



  • 3.  Re: Install Git on AIX 7.1

    Posted Wed October 09, 2019 01:47 AM

    Originally posted by: sangameshm


    Here is complete list of dependencies with the version details.

     

    package: git.ppc 2.20.1-1
      dependency: /bin/sh
       Unsatisfied dependency
      dependency: /opt/freeware/bin/perl
       provider: perl.ppc 1:5.28.1-1
      dependency: /usr/bin/bash
       provider: bash.ppc 5.0-1
      dependency: /usr/bin/env
       Unsatisfied dependency
      dependency: /usr/bin/perl
       Unsatisfied dependency
      dependency: /usr/bin/python
       provider: python.ppc 2.7.16-1
      dependency: bash
       provider: bash.ppc 5.0-1
      dependency: curl >= 7.60.0
       provider: curl.ppc 7.65.1-1
      dependency: expat >= 2.2.0
       provider: expat.ppc 2.2.6-1
      dependency: gettext >= 0.19.8.1
       provider: gettext.ppc 0.19.8.1-3
      dependency: less
       provider: less.ppc 487-1
      dependency: libc.a(shr.o)
       Unsatisfied dependency
      dependency: libc.a(shr_64.o)
       Unsatisfied dependency
      dependency: libcrypto.a(libcrypto.so.1.0.2)
       Unsatisfied dependency
      dependency: libcurl.a(libcurl.so.4)
       provider: curl.ppc 7.65.1-1
      dependency: libexpat.a(libexpat.so.1)
       provider: expat.ppc 2.2.6-1
      dependency: libiconv >= 1.14
       provider: libiconv.ppc 1.14-2
      dependency: libiconv.a(libiconv.so.2)
       provider: libiconv.ppc 1.14-2
      dependency: libintl.a(libintl.so.8)
       provider: gettext.ppc 0.19.8.1-3
      dependency: liblber.a(liblber-2.4.so.2)
       provider: openldap.ppc 2.4.46-2
      dependency: libldap.a(libldap-2.4.so.2)
       provider: openldap.ppc 2.4.46-2
      dependency: libpthreads.a(shr_xpg5.o)
       Unsatisfied dependency
      dependency: libpthreads.a(shr_xpg5_64.o)
       Unsatisfied dependency
      dependency: libssh2 >= 1.8.0-2
       provider: libssh2.ppc 1.8.2-1
      dependency: libssh2.a(libssh2.so.1)
       provider: libssh2.ppc 1.8.2-1
      dependency: libssl.a(libssl.so.1.0.2)
       Unsatisfied dependency
      dependency: libz.a(libz.so.1)
       provider: zlib.ppc 1.2.11-1
      dependency: openldap >= 2.4.45-3
       provider: openldap.ppc 2.4.46-2
      dependency: perl >= 5.8.8
       provider: perl.ppc 1:5.28.1-1
      dependency: python >= 2.7.12
       provider: python.ppc 2.7.16-1
      dependency: rsync
       provider: rsync.ppc 3.1.3-2
      dependency: zlib >= 1.2.11
       provider: zlib.ppc 1.2.11-1

     

    Thanks.

    Sangamesh



  • 4.  Re: Install Git on AIX 7.1

    Posted Wed October 09, 2019 03:48 AM

    Originally posted by: Kazutaka Tsuji


    Dear Sangamesh, Thanks for reply.

    I referred to this topic as well (Apparently, this question is same situation as me)

    https://www.ibm.com/developerworks/community/forums/html/topic?id=4d216f66-6689-48ff-857a-5dfb955132a4&ps=25

     

    Now, I updated latest OpenSSL

     

    # lslpp -l openssl.base    

      Fileset                      Level  State      Description         

      ----------------------------------------------------------------------------

    Path: /usr/lib/objrepos

      openssl.base            1.0.2.1801  COMMITTED  Open Secure Socket Layer

     

    Path: /etc/objrepos

      openssl.base            1.0.2.1801  COMMITTED  Open Secure Socket Layer

     

    my working directory has these rpm files, 

    # ls -l

    bash-5.0-1.aix6.1.ppc.rpm
    bzip2-1.0.6-3.aix6.1.ppc.rpm
    ca-certificates-2019.01.10-2.aix6.1.ppc.rpm
    cyrus-sasl-2.1.26-3.aix6.1.ppc.rpm
    db-6.2.32-2.aix6.1.ppc.rpm
    expat-2.2.6-1.aix6.1.ppc.rpm
    gdbm-1.18.1-1.aix6.1.ppc.rpm
    gettext-0.19.8.1-3.aix6.1.ppc.rpm
    git-2.20.1-1.aix6.1.ppc.rpm
    glib2-2.56.1-2.aix6.1.ppc.rpm
    info-6.4-1.aix6.1.ppc.rpm
    less-487-1.aix6.1.ppc.rpm
    libffi-3.2.1-3.aix6.1.ppc.rpm
    libgcc-6.3.0-2.aix7.1.ppc.rpm
    libgcrypt-1.8.2-1.aix6.1.ppc.rpm
    libssh2-1.8.2-1.aix6.1.ppc.rpm
    libstdcplusplus-6.3.0-2.aix7.1.ppc.rpm
    ncurses-6.1-2.aix6.1.ppc.rpm
    nspr-4.17-1.aix6.1.ppc.rpm
    nss-3.34.1-2.aix6.1.ppc.rpm
    openldap-2.4.46-2.aix6.1.ppc.rpm
    perl-5.28.1-1.aix6.1.ppc.rpm
    python-2.7.16-1.aix6.1.ppc.rpm
    python-devel-2.7.16-1.aix6.1.ppc.rpm
    python-tools-2.7.16-1.aix6.1.ppc.rpm
    readline-8.0-2.aix6.1.ppc.rpm
    rsync-3.1.3-2.aix6.1.ppc.rpm
    sqlite-3.28.0-1.aix6.1.ppc.rpm
    zlib-1.2.11-1.aix6.1.ppc.rpm

     

    and hit rpm -Uvh * and then got

    # rpm -Uvh *

    error: Failed dependencies:

            p11-kit-tools >= 0.23.16-1 is needed by ca-certificates-2019.01.10-2.ppc

            libcrypto.a(libcrypto.so.1.0.2) is needed by git-2.20.1-1.ppc

            libssl.a(libssl.so.1.0.2) is needed by git-2.20.1-1.ppc

            libgpg-error is needed by libgcrypt-1.8.2-1.ppc

            libgpg-error.a(libgpg-error.so.0) is needed by libgcrypt-1.8.2-1.ppc

            libcrypto.a(libcrypto.so.1.0.2) is needed by libssh2-1.8.2-1.ppc

            libcrypto.a(libcrypto.so.1.0.2) is needed by openldap-2.4.46-2.ppc

            libssl.a(libssl.so.1.0.2) is needed by openldap-2.4.46-2.ppc

     

    Those are only library files to be updated. How can I update those?



  • 5.  Re: Install Git on AIX 7.1

    Posted Wed October 09, 2019 04:29 AM

    Originally posted by: Kazutaka Tsuji


    Should I manually update libcrypto.so as 1.0.2?

    https://www.ibm.com/support/knowledgecenter/SSBNJ7_1.4.0/com.ibm.tnpm_1.4_kc.doc/install/ttnpm_installlibcrypto.html



  • 6.  Re: Install Git on AIX 7.1

    Posted Wed October 09, 2019 10:02 AM

    Originally posted by: sangameshm


    Did you run the "updtvpkg" command after installing openssl fileset ?

    You also need p11-kit-tools and libgpg-error rpm package in your directory.

     

    Thanks,

    Sangamesh



  • 7.  Re: Install Git on AIX 7.1

    Posted Wed October 09, 2019 10:43 PM

    Originally posted by: Kazutaka Tsuji


    Dear Sangamesh,

     

    Thanks, your answer has been made my problem moving forward...

    I think I'm getting very close!

     

    So I put these files on the directory, and hit updtvpkg and rpm -Uvh * command

    p11-kit-0.23.16-1.aix6.1.ppc.rpm

    p11-kit-tools-0.23.16-1.aix6.1.ppc.rpm

    libgpg-error-1.29-1.aix6.1.ppc.rpm 

     

    # rpm -Uvh *

    Preparing...                          ################################# [100%]

            package libgcc-6.3.0-2.ppc is already installed

            package zlib-1.2.11-1.ppc is already installed

            package expat-2.2.6-1.ppc is already installed

            package bash-5.0-1.ppc is already installed

            package rsync-3.1.3-2.ppc is already installed

            package less-487-1.ppc is already installed

    # rpm -ivh *

    error: Failed dependencies:

            python < 2.7.16-1 conflicts with python-devel-2.7.16-1.ppc

     

    My next question is how to solve the conflict above..?

     

    Currently, Python is installed as below

    # python --version

    Python 2.7.10



  • 8.  Re: Install Git on AIX 7.1

    Posted Fri October 11, 2019 01:29 PM

    Originally posted by: sangameshm


    Sorry for the delay.

    rpm doesn't have mechanism to skip the already installed packages from the list of rpm packages.

    To solve this, Pick the packages which aren't installed already and run "rpm -U <Selected packages>"

     

    Thanks,

    Sangamesh

     



  • 9.  Re: Install Git on AIX 7.1

    Posted Tue October 15, 2019 12:56 AM

    Originally posted by: Kazutaka Tsuji


    Dear Sangamesh,

     

    No problem, really appreciate your answer because no one knows how to solve this around me.

    I successfully updated Python to 2.7.16.

     

    SO, Finally I think I'm really getting close to solve this (Sorry for telling you this again though)

    Only one dependency error is occurred by installing git.

     

    # ls

    bash-5.0-1.aix6.1.ppc.rpm                    less-487-1.aix6.1.ppc.rpm                    p11-kit-0.23.16-1.aix6.1.ppc.rpm

    bzip2-1.0.6-3.aix6.1.ppc.rpm                 libffi-3.2.1-3.aix6.1.ppc.rpm                p11-kit-tools-0.23.16-1.aix6.1.ppc.rpm

    ca-certificates-2019.01.10-2.aix6.1.ppc.rpm  libgcc-6.3.0-2.aix7.1.ppc.rpm                perl-5.28.1-1.aix6.1.ppc.rpm

    cyrus-sasl-2.1.26-3.aix6.1.ppc.rpm           libgcrypt-1.8.2-1.aix6.1.ppc.rpm             python-2.7.16-1.aix6.1.ppc.rpm

    db-6.2.32-2.aix6.1.ppc.rpm                   libgpg-error-1.29-1.aix6.1.ppc.rpm           python-devel-2.7.16-1.aix6.1.ppc.rpm

    expat-2.2.6-1.aix6.1.ppc.rpm                 libssh2-1.8.2-1.aix6.1.ppc.rpm               python-tools-2.7.16-1.aix6.1.ppc.rpm

    gdbm-1.18.1-1.aix6.1.ppc.rpm                 libstdcplusplus-6.3.0-2.aix7.1.ppc.rpm       readline-8.0-2.aix6.1.ppc.rpm

    gettext-0.19.8.1-3.aix6.1.ppc.rpm            ncurses-6.1-2.aix6.1.ppc.rpm                 rsync-3.1.3-2.aix6.1.ppc.rpm

    git-2.20.1-1.aix6.1.ppc.rpm                  nspr-4.17-1.aix6.1.ppc.rpm                   sqlite-3.28.0-1.aix6.1.ppc.rpm

    glib2-2.56.1-2.aix6.1.ppc.rpm                nss-3.34.1-2.aix6.1.ppc.rpm                  zlib-1.2.11-1.aix6.1.ppc.rpm

    info-6.4-1.aix6.1.ppc.rpm                    openldap-2.4.46-2.aix6.1.ppc.rpm

    # rpm -Uvh --test git-2.20.1-1.aix6.1.ppc.rpm 

    error: Failed dependencies:

            /opt/freeware/bin/perl is needed by git-2.20.1-1.ppc

    # rpm -Uvh --test perl-5.28.1-1.aix6.1.ppc.rpm

    error: Failed dependencies:

            libgdbm.a(libgdbm.so.4) is needed by perl-1:5.28.1-1.ppc

     

    I think I need to install Perl though, this libgdbm.a thing, I don't know how to install/update it.
    Can you please advise me again? Thank you.

     



  • 10.  Re: Install Git on AIX 7.1

    Posted Tue October 15, 2019 05:45 AM

    Originally posted by: Kazutaka Tsuji


    OKAY, libgdbm.a dependency error is solved by installing gdbm-1.18.1-1.aix6.1.ppc.rpm

    then Perl was okay to be installed.

    Again, hit command for install Git, then error message said Curl was old. I updated Curl.

     

    # rpm -Uvh git-2.20.1-1.aix6.1.ppc.rpm

    Preparing...                          ################################# [100%]

    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.

    error: %prein(git-2.20.1-1.ppc) scriptlet failed, exit status 1

    error: git-2.20.1-1.ppc: install failed

     

    # curl --version

    curl 7.52.1 (powerpc-ibm-aix6.1.8.0) libcurl/7.52.1 OpenSSL/1.0.2r zlib/1.2.11

     

    # rpm -Uvh --test curl-7.65.1-1.aix6.1.ppc.rpm

    error: Failed dependencies:

            krb5-libs >= 1.16.1-2 is needed by curl-7.65.1-1.ppc

            libcom_err.a(libcom_err.so) is needed by curl-7.65.1-1.ppc

            libcom_err.so is needed by curl-7.65.1-1.ppc

            libgssapi_krb5.a(libgssapi_krb5.so) is needed by curl-7.65.1-1.ppc

            libgssapi_krb5.so is needed by curl-7.65.1-1.ppc

            libk5crypto.a(libk5crypto.so) is needed by curl-7.65.1-1.ppc

            libk5crypto.so is needed by curl-7.65.1-1.ppc

            libkrb5.a(libkrb5.so) is needed by curl-7.65.1-1.ppc

            libkrb5.so is needed by curl-7.65.1-1.ppc

     

    Those dependency error is solved by installing krb5-libs.

    # rpm -Uvh krb5-libs-1.16.1-2.aix6.1.ppc.rpm

    Preparing...                          ################################# [100%]

    Updating / installing...

       1:krb5-libs-1.16.1-2               ################################# [100%]

     

    # rpm -Uvh curl-7.65.1-1.aix6.1.ppc.rpm

    Preparing...                          ################################# [100%]

    Updating / installing...

       1:curl-7.65.1-1                    ################################# [ 50%]

    Cleaning up / removing...

       2:curl-7.52.1-1                    ################################# [100%]

     

    Then FINALLY git has been installed!

    # rpm -Uvh git-2.20.1-1.aix6.1.ppc.rpm             

    Preparing...                          ################################# [100%]

    Updating / installing...

       1:git-2.20.1-1                     ################################# [100%]

     

    However this error makes me confused again. I'll try to google this as well and find solution.

     

    # git --version

    Could not load program git:

            Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.

            Member libiconv.so.2 is not found in archive

     

    libiconv is already installed on my AIX

    # rpm -Uvh --test libiconv-1.14-2.aix6.1.ppc.rpm 

    Preparing...                          ################################# [100%]

            package libiconv-1.14-22.ppc (which is newer than libiconv-1.14-2.ppc) is already installed



  • 11.  Re: Install Git on AIX 7.1

    Posted Tue October 15, 2019 06:03 AM

    Originally posted by: AyappanP


    Seems like you have LIBPATH exported. Please unset it. 



  • 12.  Re: Install Git on AIX 7.1

    Posted Tue October 15, 2019 09:22 PM

    Originally posted by: Kazutaka Tsuji


    Dear AyappanP,

     

    it works. finally. appreciate it!

     

    # env | grep LIBPATH

    LIBPATH=/usr/lib:/opt/freeware/lib/

    # unset LIBPATH

    # env | grep LIBPATH

    # git

    usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]

               [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]

               [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]

               [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]

               <command> [<args>]

     

    These are common Git commands used in various situations:

     

    start a working area (see also: git help tutorial)

       clone      Clone a repository into a new directory

       init       Create an empty Git repository or reinitialize an existing one

     

    work on the current change (see also: git help everyday)

       add        Add file contents to the index

       mv         Move or rename a file, a directory, or a symlink

       reset      Reset current HEAD to the specified state

       rm         Remove files from the working tree and from the index

     

    examine the history and state (see also: git help revisions)

       bisect     Use binary search to find the commit that introduced a bug

       grep       Print lines matching a pattern

       log        Show commit logs

       show       Show various types of objects

       status     Show the working tree status

     

    grow, mark and tweak your common history

       branch     List, create, or delete branches

       checkout    Switch branches or restore working tree files

       commit     Record changes to the repository

       diff       Show changes between commits, commit and working tree, etc

       merge      Join two or more development histories together

       rebase     Reapply commits on top of another base tip

       tag        Create, list, delete or verify a tag object signed with GPG

     

    collaborate (see also: git help workflows)

       fetch      Download objects and refs from another repository

       pull       Fetch from and integrate with another repository or a local branch

       push       Update remote refs along with associated objects

     

    'git help -a' and 'git help -g' list available subcommands and some

    concept guides. See 'git help <command>' or 'git help <concept>'

    to read about a specific subcommand or concept.



  • 13.  Re: Install Git on AIX 7.1

    Posted Tue October 15, 2019 09:38 PM

    Originally posted by: Kazutaka Tsuji


    In addition, I was logged in as root user to install git. when I login as normal user to hit git command, the same error was occurred, so that I modified LIBPATH to where libiconv.a exists.

    libconv.a is located at /opt/freeware/lib in my environment, 

    Hit env | grep LIBPATH to check the current value and modify path variable by export LIBPATH=opt/freeware/lib

    then normal user can also hit git command successfully.

     

    I hope this thread helps someone!



  • 14.  Re: Install Git on AIX 7.1

    Posted Wed October 23, 2019 01:03 PM

    Originally posted by: sanket


    RPM dependencies is always an issue and yum is the best way to resolve.

    We understand that many times it is not possible to connect to AIX toolbox repository using YUM but one can create local YUM repo on AIX and Linux server.

    We have published a document how to create a local yum repo in your environment and keep it synched with AIX toolbox.

    https://developer.ibm.com/articles/configure-yum-on-aix/



  • 15.  Re: Install Git on AIX 7.1

    Posted Tue October 29, 2019 11:13 PM

    Originally posted by: Kazutaka Tsuji


    Dear sanket,
    Thanks so much for sharing / creating the document.

    This seems so helpful for everyone who needs to install something on AIX/Linux which is not connected to Internet.

    I will absolutely refer the document you shared next time I need to install something on AIX.



  • 16.  RE: Install Git on AIX 7.1

    Posted Thu September 01, 2022 04:29 PM
    Hello Kazutaka, I am trying to install git-2.35 on AIX 7.2. I am getting endless dependency failures and not sure how to install this package. I pulled many of the dependencies (so far 22 of them from https://www.ibm.com/support/pages/node/883796 )  and try to install the dependencies first. However, they are failing on with more dependencies that never ends. Can you please advise on how I can do this?

    ------------------------------
    Loganathan Varatharasa
    ------------------------------



  • 17.  RE: Install Git on AIX 7.1

    Posted Wed September 07, 2022 01:16 AM
    The best way to install RPMs and resolve dependencies is thru dnf.
    Please first install dnf on your system and then install the packages.
    There is a script on AIX toolbox package to install dnf. 
    This is how it works on any RPM based system.

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



  • 18.  RE: Install Git on AIX 7.1

    Posted Wed September 28, 2022 05:13 PM
    Well, I installed yum without issues as it should work on AIX7.2. Now with yum, I tried installing GIT. It listed all dependencies and prompted to accept the install. I selected Y. While installing, it failed saying curl version was at a lower level.  So, I tried 'yum update curl' that in-turn updated curl along with its dependencies. However, that seemed to have broke yum itself. Any yum subsequent yum commands would fail. I removed curl and its dependencies and yum rpm using rpm and re-installed yum. However, now I don't want to install GIT blindly using yum. Should I, perhaps, install a specific version?  

    Here are the steps that broke yum and the way I recovered. I put step numbers so that it is clear.  Any suggestion is appreciated. 

    =========================
    1. Initial GIT install using YUM failed with curl.

    # yum install git
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package git.ppc 0:2.35.1-1 will be installed
    --> Processing Dependency: git-core = 2.35.1-1 for package: git-2.35.1-1.ppc
    --> Processing Dependency: git-core-doc = 2.35.1-1 for package: git-2.35.1-1.ppc
    --> Processing Dependency: bash >= 5.0-2 for package: git-2.35.1-1.ppc
    --> Processing Dependency: gettext >= 0.19.8.1-5 for package: git-2.35.1-1.ppc
    --> Processing Dependency: less >= 551-1 for package: git-2.35.1-1.ppc
    --> Processing Dependency: libiconv >= 1.16-1 for package: git-2.35.1-1.ppc
    --> Processing Dependency: python3 >= 3.7.12-1 for package: git-2.35.1-1.ppc
    --> Processing Dependency: rsync >= 3.2.3-1 for package: git-2.35.1-1.ppc
    --> Processing Dependency: zlib >= 1.2.11-2 for package: git-2.35.1-1.ppc
    --> Processing Dependency: /opt/freeware/bin/bash for package: git-2.35.1-1.ppc
    --> Processing Dependency: /opt/freeware/bin/perl for package: git-2.35.1-1.ppc
    --> Processing Dependency: libiconv.a(libiconv.so.2) for package: git-2.35.1-1.ppc
    --> Running transaction check
    ---> Package bash.ppc 0:5.1.4-2 will be installed
    ---> Package gettext.ppc 0:0.19.7-1 will be updated
    ---> Package gettext.ppc 0:0.21-1 will be an update
    --> Processing Dependency: libtextstyle = 0.21-1 for package: gettext-0.21-1.ppc
    --> Processing Dependency: glib2 >= 2.56.1 for package: gettext-0.21-1.ppc
    --> Processing Dependency: libgcc >= 8.3.0 for package: gettext-0.21-1.ppc
    --> Processing Dependency: libgomp >= 8.3.0 for package: gettext-0.21-1.ppc
    --> Processing Dependency: libstdc++ >= 8.3.0 for package: gettext-0.21-1.ppc
    --> Processing Dependency: libunistring >= 0.9.9-2 for package: gettext-0.21-1.ppc
    --> Processing Dependency: libxml2 >= 2.9.9 for package: gettext-0.21-1.ppc
    --> Processing Dependency: ncurses >= 6.2 for package: gettext-0.21-1.ppc
    --> Processing Dependency: libgcc_s.a(shr.o) for package: gettext-0.21-1.ppc
    --> Processing Dependency: libgomp.a(libgomp.so.1) for package: gettext-0.21-1.ppc
    --> Processing Dependency: libncurses.a(libncurses.so.6) for package: gettext-0.21-1.ppc
    --> Processing Dependency: libstdc++.a(libstdc++.so.6) for package: gettext-0.21-1.ppc
    --> Processing Dependency: libtextstyle.a(libtextstyle.so.0) for package: gettext-0.21-1.ppc
    --> Processing Dependency: libunistring.a(libunistring.so.2) for package: gettext-0.21-1.ppc
    ---> Package git-core.ppc 0:2.35.1-1 will be installed
    --> Processing Dependency: expat >= 2.2.9-2 for package: git-core-2.35.1-1.ppc
    --> Processing Dependency: libexpat.a(libexpat.so.1) for package: git-core-2.35.1-1.ppc
    ---> Package git-core-doc.noarch 0:2.35.1-1 will be installed
    ---> Package less.ppc 0:598-1 will be installed
    ---> Package libiconv.ppc 0:1.17-1 will be installed
    ---> Package perl.ppc 1:5.34.1-1 will be installed
    --> Processing Dependency: db >= 5.3.28 for package: 1:perl-5.34.1-1.ppc
    --> Processing Dependency: gdbm >= 1.19 for package: 1:perl-5.34.1-1.ppc
    --> Processing Dependency: libdb.a(libdb-5.3.so) for package: 1:perl-5.34.1-1.ppc
    --> Processing Dependency: libgdbm.a(libgdbm.so.6) for package: 1:perl-5.34.1-1.ppc
    ---> Package python3.ppc 0:3.7.12-1 will be installed
    --> Processing Dependency: readline >= 8.0-2 for package: python3-3.7.12-1.ppc
    --> Processing Dependency: xz-libs >= 5.2.4 for package: python3-3.7.12-1.ppc
    --> Processing Dependency: libffi >= 3.2.1 for package: python3-3.7.12-1.ppc
    --> Processing Dependency: sqlite >= 3.32.1 for package: python3-3.7.12-1.ppc
    --> Processing Dependency: bzip2 >= 1.0.8 for package: python3-3.7.12-1.ppc
    --> Processing Dependency: liblzma.a(liblzma.so.5) for package: python3-3.7.12-1.ppc
    --> Processing Dependency: libffi.a(libffi.so.6) for package: python3-3.7.12-1.ppc
    ---> Package rsync.ppc 0:3.2.3-1 will be installed
    --> Processing Dependency: lz4 >= 1.9.2 for package: rsync-3.2.3-1.ppc
    --> Processing Dependency: liblz4.a(liblz4.so.1) for package: rsync-3.2.3-1.ppc
    ---> Package zlib.ppc 0:1.2.12-1 will be installed
    --> Running transaction check
    ---> Package bzip2.ppc 0:1.0.8-2 will be installed
    ---> Package db.ppc 0:4.8.24-3 will be updated
    ---> Package db.ppc 1:5.3.28-1 will be an update
    ---> Package expat.ppc 0:2.4.6-1 will be installed
    ---> Package gdbm.ppc 0:1.8.3-5 will be updated
    ---> Package gdbm.ppc 0:1.23-1 will be an update
    ---> Package glib2.ppc 0:2.14.6-2 will be updated
    ---> Package glib2.ppc 0:2.56.1-3 will be an update
    ---> Package libffi.ppc 0:3.4.2-1 will be installed
    ---> Package libgcc.ppc 1:8-1 will be installed
    ---> Package libgcc8.ppc 0:8.3.0-6 will be installed
    ---> Package libgomp.ppc 1:8-1 will be installed
    ---> Package libgomp8.ppc 0:8.3.0-6 will be installed
    ---> Package libstdc++.ppc 1:8-1 will be installed
    ---> Package libstdc++8.ppc 0:8.3.0-6 will be installed
    ---> Package libtextstyle.ppc 0:0.21-1 will be installed
    ---> Package libunistring.ppc 0:0.9.10-1 will be installed
    --> Processing Dependency: info for package: libunistring-0.9.10-1.ppc
    ---> Package libxml2.ppc 0:2.9.14-1 will be installed
    ---> Package lz4.ppc 0:1.9.3-1 will be installed
    ---> Package ncurses.ppc 0:6.3-1 will be installed
    ---> Package readline.ppc 0:6.1-2 will be updated
    ---> Package readline.ppc 0:8.1-1 will be an update
    ---> Package sqlite.ppc 0:3.15.2-1 will be updated
    ---> Package sqlite.ppc 0:3.37.2-1 will be an update
    ---> Package xz-libs.ppc 0:5.2.5-1 will be installed
    --> Running transaction check
    ---> Package info.ppc 0:6.7-1 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ========================================================================================================================================================================================================
    Package Arch Version Repository Size
    ========================================================================================================================================================================================================
    Installing:
    git ppc 2.35.1-1 AIX_Toolbox 3.5 M
    Installing for dependencies:
    bash ppc 5.1.4-2 AIX_Toolbox 2.8 M
    bzip2 ppc 1.0.8-2 AIX_Toolbox 238 k
    expat ppc 2.4.6-1 AIX_Toolbox 987 k
    git-core ppc 2.35.1-1 AIX_Toolbox 19 M
    git-core-doc noarch 2.35.1-1 AIX_Toolbox_noarch 3.8 M
    info ppc 6.7-1 AIX_Toolbox 699 k
    less ppc 598-1 AIX_Toolbox 336 k
    libffi ppc 3.4.2-1 AIX_Toolbox 73 k
    libgcc ppc 1:8-1 AIX_Toolbox_72 14 k
    libgcc8 ppc 8.3.0-6 AIX_Toolbox_72 974 k
    libgomp ppc 1:8-1 AIX_Toolbox_72 14 k
    libgomp8 ppc 8.3.0-6 AIX_Toolbox_72 1.4 M
    libiconv ppc 1.17-1 AIX_Toolbox 1.6 M
    libstdc++ ppc 1:8-1 AIX_Toolbox_72 14 k
    libstdc++8 ppc 8.3.0-6 AIX_Toolbox_72 12 M
    libtextstyle ppc 0.21-1 AIX_Toolbox 1.1 M
    libunistring ppc 0.9.10-1 AIX_Toolbox 1.5 M
    libxml2 ppc 2.9.14-1 AIX_Toolbox 5.3 M
    lz4 ppc 1.9.3-1 AIX_Toolbox 390 k
    ncurses ppc 6.3-1 AIX_Toolbox 3.6 M
    perl ppc 1:5.34.1-1 AIX_Toolbox 29 M
    python3 ppc 3.7.12-1 AIX_Toolbox 39 M
    rsync ppc 3.2.3-1 AIX_Toolbox 870 k
    xz-libs ppc 5.2.5-1 AIX_Toolbox 540 k
    zlib ppc 1.2.12-1 AIX_Toolbox 345 k
    Updating for dependencies:
    db ppc 1:5.3.28-1 AIX_Toolbox 17 M
    gdbm ppc 1.23-1 AIX_Toolbox 283 k
    gettext ppc 0.21-1 AIX_Toolbox 14 M
    glib2 ppc 2.56.1-3 AIX_Toolbox 16 M
    readline ppc 8.1-1 AIX_Toolbox 2.5 M
    sqlite ppc 3.37.2-1 AIX_Toolbox 9.0 M

    Transaction Summary
    ========================================================================================================================================================================================================
    Install 26 Packages
    Upgrade 6 Packages

    Total size: 187 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running Transaction Check
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : libgcc8-8.3.0-6.ppc 1/38
    Installing : 1:libgcc-8-1.ppc 2/38
    Installing : zlib-1.2.12-1.ppc 3/38
    Installing : libstdc++8-8.3.0-6.ppc 4/38
    Installing : 1:libstdc++-8-1.ppc 5/38
    Installing : ncurses-6.3-1.ppc 6/38
    Installing : libffi-3.4.2-1.ppc 7/38
    Installing : expat-2.4.6-1.ppc 8/38
    Installing : xz-libs-5.2.5-1.ppc 9/38
    Installing : libgomp8-8.3.0-6.ppc 10/38
    Installing : less-598-1.ppc 11/38
    Installing : 1:libgomp-8-1.ppc 12/38
    Installing : libxml2-2.9.14-1.ppc 13/38
    Updating : glib2-2.56.1-3.ppc 14/38
    Installing : libunistring-0.9.10-1.ppc 15/38
    Installing : libtextstyle-0.21-1.ppc 16/38
    Installing : bash-5.1.4-2.ppc 17/38

    ## Binary "bash" is available in 32bit and 64bit ##

    Default is 64bit. For 32bit, use /opt/freeware/bin/bash_32

    Installing : libiconv-1.17-1.ppc 18/38
    add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a
    add shr.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a
    add shr4_64.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a
    /
    Updating : gettext-0.21-1.ppc 19/38
    Installing : info-6.7-1.ppc 20/38
    Please check that /etc/info-dir does exist.
    You might have to rename it from /etc/info-dir.rpmsave to /etc/info-dir.
    Updating : readline-8.1-1.ppc 21/38
    Updating : gdbm-1.23-1.ppc 22/38
    Installing : git-core-2.35.1-1.ppc 23/38
    Updating : sqlite-3.37.2-1.ppc 24/38
    Installing : bzip2-1.0.8-2.ppc 25/38
    Installing : python3-3.7.12-1.ppc 26/38
    Updating : 1:db-5.3.28-1.ppc 27/38
    Installing : 1:perl-5.34.1-1.ppc 28/38
    Installing : git-core-doc-2.35.1-1.noarch 29/38
    Installing : lz4-1.9.3-1.ppc 30/38
    Installing : rsync-3.2.3-1.ppc 31/38
    Error in PREIN scriptlet in rpm package git-2.35.1-1.ppc
    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.
    error: %prein(git-2.35.1-1.ppc) scriptlet failed, exit status 1
    Cleanup : sqlite-3.15.2-1.ppc 33/38
    error: git-2.35.1-1.ppc: install failed
    Cleanup : glib2-2.14.6-2.ppc 34/38
    Cleanup : gettext-0.19.7-1.ppc 35/38
    Ignore the error about AIX-rpm dependency since the older libintl.a is already preserved and will be reverted back
    Cleanup : readline-6.1-2.ppc 36/38
    Cleanup : db-4.8.24-3.ppc 37/38
    Cleanup : gdbm-1.8.3-5.ppc 38/38

    Dependency Installed:
    bash.ppc 0:5.1.4-2 bzip2.ppc 0:1.0.8-2 expat.ppc 0:2.4.6-1 git-core.ppc 0:2.35.1-1 git-core-doc.noarch 0:2.35.1-1 info.ppc 0:6.7-1 less.ppc 0:598-1
    libffi.ppc 0:3.4.2-1 libgcc.ppc 1:8-1 libgcc8.ppc 0:8.3.0-6 libgomp.ppc 1:8-1 libgomp8.ppc 0:8.3.0-6 libiconv.ppc 0:1.17-1 libstdc++.ppc 1:8-1
    libstdc++8.ppc 0:8.3.0-6 libtextstyle.ppc 0:0.21-1 libunistring.ppc 0:0.9.10-1 libxml2.ppc 0:2.9.14-1 lz4.ppc 0:1.9.3-1 ncurses.ppc 0:6.3-1 perl.ppc 1:5.34.1-1
    python3.ppc 0:3.7.12-1 rsync.ppc 0:3.2.3-1 xz-libs.ppc 0:5.2.5-1 zlib.ppc 0:1.2.12-1

    Dependency Updated:
    db.ppc 1:5.3.28-1 gdbm.ppc 0:1.23-1 gettext.ppc 0:0.21-1 glib2.ppc 0:2.56.1-3 readline.ppc 0:8.1-1 sqlite.ppc 0:3.37.2-1

    Failed:
    git.ppc 0:2.35.1-1

    Complete!
    #


    2. I updated curl using yum

    # yum update curl
    Setting up Update Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package curl.ppc 0:7.52.1-1 will be updated
    ---> Package curl.ppc 0:7.83.1-1 will be an update
    --> Processing Dependency: ca-certificates >= 2020.06.01 for package: curl-7.83.1-1.ppc
    --> Processing Dependency: krb5-libs >= 1.18.4 for package: curl-7.83.1-1.ppc
    --> Processing Dependency: libnghttp2 >= 1.46.0 for package: curl-7.83.1-1.ppc
    --> Processing Dependency: libssh2 >= 1.9.0 for package: curl-7.83.1-1.ppc
    --> Processing Dependency: openldap >= 2.4.58 for package: curl-7.83.1-1.ppc
    --> Processing Dependency: libcom_err.a(libcom_err.so) for package: curl-7.83.1-1.ppc
    --> Processing Dependency: libgssapi_krb5.a(libgssapi_krb5.so) for package: curl-7.83.1-1.ppc
    --> Processing Dependency: libk5crypto.a(libk5crypto.so) for package: curl-7.83.1-1.ppc
    --> Processing Dependency: libkrb5.a(libkrb5.so) for package: curl-7.83.1-1.ppc
    --> Processing Dependency: liblber.a(liblber-2.4.so.2) for package: curl-7.83.1-1.ppc
    --> Processing Dependency: libldap.a(libldap-2.4.so.2) for package: curl-7.83.1-1.ppc
    --> Processing Dependency: libnghttp2.a(libnghttp2.so.14) for package: curl-7.83.1-1.ppc
    --> Processing Dependency: libssh2.a(libssh2.so.1) for package: curl-7.83.1-1.ppc
    --> Running transaction check
    ---> Package ca-certificates.ppc 0:2016.10.7-2 will be updated
    ---> Package ca-certificates.ppc 0:2021.2.52-3 will be an update
    --> Processing Dependency: p11-kit-tools >= 0.23.22 for package: ca-certificates-2021.2.52-3.ppc
    ---> Package krb5-libs.ppc 0:1.18.5-1 will be installed
    ---> Package libnghttp2.ppc 0:1.46.0-1 will be installed
    ---> Package libssh2.ppc 0:1.10.0-1 will be installed
    ---> Package openldap.ppc 0:2.4.58-3 will be installed
    --> Processing Dependency: cyrus-sasl >= 2.1.27 for package: openldap-2.4.58-3.ppc
    --> Processing Dependency: libsasl2.a(libsasl2.so.3) for package: openldap-2.4.58-3.ppc
    --> Running transaction check
    ---> Package cyrus-sasl.ppc 0:2.1.28-1 will be installed
    ---> Package p11-kit-tools.ppc 0:0.23.22-1 will be installed
    --> Processing Dependency: p11-kit = 0.23.22 for package: p11-kit-tools-0.23.22-1.ppc
    --> Processing Dependency: libtasn1 >= 4.16.0 for package: p11-kit-tools-0.23.22-1.ppc
    --> Processing Dependency: libtasn1.a(libtasn1.so.6) for package: p11-kit-tools-0.23.22-1.ppc
    --> Processing Dependency: libp11-kit.a(libp11-kit.so.0) for package: p11-kit-tools-0.23.22-1.ppc
    --> Running transaction check
    ---> Package libtasn1.ppc 0:4.16.0-1 will be installed
    ---> Package p11-kit.ppc 0:0.23.22-1 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ============================================================================================================================================
    Package Arch Version Repository Size
    ============================================================================================================================================
    Updating:
    curl ppc 7.83.1-1 AIX_Toolbox 1.6 M
    Installing for dependencies:
    cyrus-sasl ppc 2.1.28-1 AIX_Toolbox 1.2 M
    krb5-libs ppc 1.18.5-1 AIX_Toolbox 11 M
    libnghttp2 ppc 1.46.0-1 AIX_Toolbox 303 k
    libssh2 ppc 1.10.0-1 AIX_Toolbox 978 k
    libtasn1 ppc 4.16.0-1 AIX_Toolbox 200 k
    openldap ppc 2.4.58-3 AIX_Toolbox 4.3 M
    p11-kit ppc 0.23.22-1 AIX_Toolbox 4.3 M
    p11-kit-tools ppc 0.23.22-1 AIX_Toolbox 198 k
    Updating for dependencies:
    ca-certificates ppc 2021.2.52-3 AIX_Toolbox 919 k

    Transaction Summary
    ============================================================================================================================================
    Install 8 Packages
    Upgrade 2 Packages

    Total download size: 25 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/10): ca-certificates-2021.2.52-3.aix6.1.ppc.rpm | 919 kB 00:00:00
    (2/10): curl-7.83.1-1.aix7.1.ppc.rpm | 1.6 MB 00:00:00
    (3/10): cyrus-sasl-2.1.28-1.aix6.1.ppc.rpm | 1.2 MB 00:00:00
    (4/10): krb5-libs-1.18.5-1.aix7.1.ppc.rpm | 11 MB 00:00:06
    (5/10): libnghttp2-1.46.0-1.aix6.1.ppc.rpm | 303 kB 00:00:00
    (6/10): libssh2-1.10.0-1.aix7.1.ppc.rpm | 978 kB 00:00:00
    (7/10): libtasn1-4.16.0-1.aix6.1.ppc.rpm | 200 kB 00:00:00
    (8/10): openldap-2.4.58-3.aix6.1.ppc.rpm | 4.3 MB 00:00:02
    (9/10): p11-kit-0.23.22-1.aix6.1.ppc.rpm | 4.3 MB 00:00:02
    (10/10): p11-kit-tools-0.23.22-1.aix6.1.ppc.rpm | 198 kB 00:00:00
    --------------------------------------------------------------------------------------------------------------------------------------------
    Total 1.5 MB/s | 25 MB 00:17
    Running Transaction Check
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : libtasn1-4.16.0-1.ppc 1/12
    Installing : p11-kit-0.23.22-1.ppc 2/12
    Installing : p11-kit-tools-0.23.22-1.ppc 3/12
    Updating : ca-certificates-2021.2.52-3.ppc 4/12
    Installing : libnghttp2-1.46.0-1.ppc 5/12
    Installing : cyrus-sasl-2.1.28-1.ppc 6/12
    From cyrus-sasl 2.1.26-5 onwards, symbolic links in /usr/sbin has been removed.
    The binaries are shipped in /opt/freeware/sbin. Please use absolute path or
    add /opt/freeware/sbin in PATH environment variable to use the binary.
    Installing : openldap-2.4.58-3.ppc 7/12
    3004-686 Group "ldap" does not exist.
    Installing : krb5-libs-1.18.5-1.ppc 8/12
    /
    Installing : libssh2-1.10.0-1.ppc 9/12
    Updating : curl-7.83.1-1.ppc 10/12
    Cleanup : curl-7.52.1-1.ppc 11/12
    Cleanup : ca-certificates-2016.10.7-2.ppc 12/12

    Dependency Installed:
    cyrus-sasl.ppc 0:2.1.28-1 krb5-libs.ppc 0:1.18.5-1 libnghttp2.ppc 0:1.46.0-1 libssh2.ppc 0:1.10.0-1 libtasn1.ppc 0:4.16.0-1
    openldap.ppc 0:2.4.58-3 p11-kit.ppc 0:0.23.22-1 p11-kit-tools.ppc 0:0.23.22-1

    Updated:
    curl.ppc 0:7.83.1-1

    Dependency Updated:
    ca-certificates.ppc 0:2021.2.52-3

    Complete!
    # rpm -qa | grep -i curl
    python-pycurl-7.19.3-1.ppc
    curl-7.83.1-1.ppc
    #


    3. Any subsequent yum commands failed -

    # yum install git
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-130 Symbol resolution failed for /opt/freeware/lib/libkrb5support.so because:
    0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 58) is not exported from
    dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
    0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 59) is not exported from
    dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
    0509-026 System error: Cannot run a file that does not have a valid format.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq


    # yum update python
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-130 Symbol resolution failed for /opt/freeware/lib/libkrb5support.so because:
    0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 58) is not exported from
    dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
    0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 59) is not exported from
    dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
    0509-026 System error: Cannot run a file that does not have a valid format.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq


    # yum update all
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    0509-130 Symbol resolution failed for /opt/freeware/lib/libkrb5support.so because:
    0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 58) is not exported from
    dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
    0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 59) is not exported from
    dependent module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
    0509-026 System error: Cannot run a file that does not have a valid format.
    0509-192 Examine .loader section symbols with the
    'dump -Tv' command.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq

    #

    4. I removed curl along with its dependents using rpm command -

    # rpm -evh curl-7.83.1-1.ppc
    error: Failed dependencies:
    curl >= 7.44.0 is needed by (installed) python-pycurl-7.19.3-1.ppc
    curl >= 7.74.0-1 is needed by (installed) git-core-2.35.1-1.ppc
    libcurl.a(libcurl.so.4) is needed by (installed) python-pycurl-7.19.3-1.ppc
    libcurl.a(libcurl.so.4) is needed by (installed) git-core-2.35.1-1.ppc
    # rpm -evh python-pycurl-7.19.3-1.ppc
    error: Failed dependencies:
    python-pycurl >= 7.19.3 is needed by (installed) python-urlgrabber-3.10.1-1.noarch
    # rpm -evh python-urlgrabber-3.10.1-1.noarch
    error: Failed dependencies:
    urlgrabber >= 3.9.2 is needed by (installed) yum-3.4.3-8.noarch
    # rpm -evh yum-3.4.3-8.noarch
    Preparing... ################################# [100%]
    Cleaning up / removing...
    1:yum-3.4.3-8 warning: /opt/freeware/etc/yum/yum.conf saved as /opt/freeware/etc/yum/yum.conf.rpmsave
    ################################# [100%]
    # rpm -evh python-urlgrabber-3.10.1-1.noarch
    Preparing... ################################# [100%]
    Cleaning up / removing...
    1:python-urlgrabber-3.10.1-1 ################################# [100%]
    # rpm -evh curl-7.83.1-1.ppc
    error: Failed dependencies:
    curl >= 7.44.0 is needed by (installed) python-pycurl-7.19.3-1.ppc
    curl >= 7.74.0-1 is needed by (installed) git-core-2.35.1-1.ppc
    libcurl.a(libcurl.so.4) is needed by (installed) python-pycurl-7.19.3-1.ppc
    libcurl.a(libcurl.so.4) is needed by (installed) git-core-2.35.1-1.ppc
    # rpm -evh python-pycurl-7.19.3-1.ppc
    Preparing... ################################# [100%]
    Cleaning up / removing...
    1:python-pycurl-7.19.3-1 ################################# [100%]
    # rpm -evh git-core-2.35.1-1.ppc
    error: Failed dependencies:
    git-core = 2.35.1-1 is needed by (installed) git-core-doc-2.35.1-1.noarch
    # rpm -evh git-core-doc-2.35.1-1.noarch
    Preparing... ################################# [100%]
    Cleaning up / removing...
    1:git-core-doc-2.35.1-1 ################################# [100%]
    # rpm -evh curl-7.83.1-1.ppc
    error: Failed dependencies:
    curl >= 7.74.0-1 is needed by (installed) git-core-2.35.1-1.ppc
    libcurl.a(libcurl.so.4) is needed by (installed) git-core-2.35.1-1.ppc
    # rpm -evh git-core-2.35.1-1.ppc
    Preparing... ################################# [100%]
    Cleaning up / removing...
    1:git-core-2.35.1-1 ################################# [100%]
    # rpm -evh curl-7.83.1-1.ppc
    Preparing... ################################# [100%]
    Cleaning up / removing...
    1:curl-7.83.1-1 ################################# [100%]
    #


    5. Trying to get yum installed again

    These are needed for yum to work:

    # ls -1
    ca-certificates-2016.10.7-2.aix6.1.ppc.rpm
    curl-7.52.1-1.aix6.1.ppc.rpm
    db-4.8.24-3.aix6.1.ppc.rpm
    gdbm-1.8.3-5.aix5.2.ppc.rpm
    gettext-0.19.7-1.aix6.1.ppc.rpm
    glib2-2.14.6-2.aix5.2.ppc.rpm
    pysqlite-1.1.7-2.aix6.1.ppc.rpm
    python-2.7.10-1.aix6.1.ppc.rpm
    python-devel-2.7.10-1.aix6.1.ppc.rpm
    python-iniparse-0.4-1.aix6.1.noarch.rpm
    python-pycurl-7.19.3-1.aix6.1.ppc.rpm
    python-tools-2.7.10-1.aix6.1.ppc.rpm
    python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
    readline-6.1-2.aix6.1.ppc.rpm
    sqlite-3.15.2-1.aix6.1.ppc.rpm
    yum-3.4.3-8.aix6.1.noarch.rpm
    yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm
    #

    6. Checked what is already installed:

    # rpm -qa | grep ca-cert
    ca-certificates-2021.2.52-3.ppc
    # rpm -qa | grep curl-7 <==== missing
    # rpm -qa | grep db-
    db-5.3.28-1.ppc
    # rpm -qa | grep gdbm-
    gdbm-1.23-1.ppc
    # rpm -qa | grep gettext
    gettext-0.21-1.ppc
    # rpm -qa | grep glib2
    glib2-2.56.1-3.ppc
    # rpm -qa | grep pysqlite
    pysqlite-1.1.7-2.ppc
    # rpm -qa | grep python-2
    python-2.7.10-1.ppc
    # rpm -qa | grep python-devel
    python-devel-2.7.10-1.ppc
    # rpm -qa | grep python-iniparse
    python-iniparse-0.4-1.noarch
    # rpm -qa | grep python-pycurl <==== missing
    # rpm -qa | grep python-tools
    python-tools-2.7.10-1.ppc
    # rpm -qa | grep python-urlgrabber <==== missing
    # rpm -qa | grep readline-
    readline-8.1-1.ppc
    # rpm -qa | grep sqlite
    sqlite-3.37.2-1.ppc
    pysqlite-1.1.7-2.ppc
    # rpm -qa | grep yum
    yum-metadata-parser-1.1.4-2.ppc
    #

    7. yum-3.4.3-8.aix6.1.noarch.rpm is missing as I removed it earlier when removing curl



    8. Installed the missing rpms again and got yum to working again -

    # rpm -ivh curl-7.52.1-1.aix6.1.ppc.rpm
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:curl-7.52.1-1 ################################# [100%]
    # rpm -ivh python-pycurl-7.19.3-1.aix6.1.ppc.rpm
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python-pycurl-7.19.3-1 ################################# [100%]
    # rpm -ivh python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python-urlgrabber-3.10.1-1 ################################# [100%]
    # rpm -ivh yum-3.4.3-8.aix6.1.noarch.rpm
    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:yum-3.4.3-8 ################################# [100%]
    #
    # yum repolist
    AIX_Toolbox | 2.7 kB 00:00:00
    AIX_Toolbox_72 | 2.7 kB 00:00:00
    AIX_Toolbox_noarch | 2.6 kB 00:00:00
    repo id repo name status
    AIX_Toolbox AIX generic repository 3,178
    AIX_Toolbox_72 AIX 7.2 specific repository 503
    AIX_Toolbox_noarch AIX noarch repository 354
    repolist: 4,035
    #

    9. Tried yum update all but it said nothing to update -

    # yum update all
    Setting up Update Process
    No Match for argument: all
    No package all available.
    No Packages marked for Update
    ===============================

    Question:
    Do I install a specific version of GIT for AIX 7.2?

    Because if I just try 'yum install git', it will fail with curl version and I will end up in the same yum broken situation again.

    ------------------------------
    Loganathan Varatharasa
    ------------------------------



  • 19.  RE: Install Git on AIX 7.1

    Posted Mon October 03, 2022 02:26 PM
    No.. the latest version of git from AIX toolbox should work on AIX 7.2
    As you have resolved yum please try installing git again and see if it works. 
    The curl issue you faced was because of other problem. Looks like libintl.a was overwritten.

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



  • 20.  RE: Install Git on AIX 7.1

    Posted Thu January 19, 2023 10:11 AM
    Hi Sanket,

    During git installaion on AIX 7.2 through yum. we got below error. Kindly help to resolve it.?

    root@NIM:/ $ yum install git.ppc
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package git.ppc 0:2.38.0-1 will be installed
    --> Processing Dependency: git-core-doc = 2.38.0-1 for package: git-2.38.0-1.ppc
    --> Processing Dependency: git-core = 2.38.0-1 for package: git-2.38.0-1.ppc
    --> Processing Dependency: gettext >= 0.21-1 for package: git-2.38.0-1.ppc
    --> Processing Dependency: zlib >= 1.2.11-2 for package: git-2.38.0-1.ppc
    --> Processing Dependency: rsync >= 3.2.3-1 for package: git-2.38.0-1.ppc
    --> Processing Dependency: bash >= 5.0-2 for package: git-2.38.0-1.ppc
    --> Processing Dependency: python3 >= 3.7.12-1 for package: git-2.38.0-1.ppc
    --> Processing Dependency: libiconv >= 1.16-1 for package: git-2.38.0-1.ppc
    --> Processing Dependency: less >= 551-1 for package: git-2.38.0-1.ppc
    --> Processing Dependency: /opt/freeware/bin/perl for package: git-2.38.0-1.ppc
    --> Processing Dependency: libiconv.a(libiconv.so.2) for package: git-2.38.0-1.ppc
    --> Processing Dependency: /opt/freeware/bin/bash for package: git-2.38.0-1.ppc
    --> Running transaction check
    ---> Package bash.ppc 0:5.1.16-1 will be installed
    ---> Package gettext.ppc 0:0.19.7-1 will be updated
    ---> Package gettext.ppc 0:0.21-2 will be an update
    --> Processing Dependency: libtextstyle = 0.21-2 for package: gettext-0.21-2.ppc
    --> Processing Dependency: libunistring >= 0.9.9-2 for package: gettext-0.21-2.ppc
    --> Processing Dependency: libgcc >= 8.3.0 for package: gettext-0.21-2.ppc
    --> Processing Dependency: libxml2 >= 2.9.9 for package: gettext-0.21-2.ppc
    --> Processing Dependency: ncurses >= 6.2 for package: gettext-0.21-2.ppc
    --> Processing Dependency: libgomp >= 8.3.0 for package: gettext-0.21-2.ppc
    --> Processing Dependency: libstdc++ >= 8.3.0 for package: gettext-0.21-2.ppc
    --> Processing Dependency: glib2 >= 2.56.1 for package: gettext-0.21-2.ppc
    --> Processing Dependency: libncurses.a(libncurses.so.6) for package: gettext-0.21-2.ppc
    --> Processing Dependency: libgcc_s.a(shr.o) for package: gettext-0.21-2.ppc
    --> Processing Dependency: libstdc++.a(libstdc++.so.6) for package: gettext-0.21-2.ppc
    --> Processing Dependency: libgomp.a(libgomp.so.1) for package: gettext-0.21-2.ppc
    --> Processing Dependency: libtextstyle.a(libtextstyle.so.0) for package: gettext-0.21-2.ppc
    --> Processing Dependency: libunistring.a(libunistring.so.2) for package: gettext-0.21-2.ppc
    ---> Package git-core.ppc 0:2.38.0-1 will be installed
    --> Processing Dependency: expat >= 2.2.9-2 for package: git-core-2.38.0-1.ppc
    --> Processing Dependency: libssl.a(libssl.so.1.1) for package: git-core-2.38.0-1.ppc
    --> Processing Dependency: libcrypto.a(libcrypto.so.1.1) for package: git-core-2.38.0-1.ppc
    --> Processing Dependency: libexpat.a(libexpat.so.1) for package: git-core-2.38.0-1.ppc
    ---> Package git-core-doc.noarch 0:2.38.0-1 will be installed
    ---> Package less.ppc 0:598-1 will be installed
    ---> Package libiconv.ppc 0:1.17-1 will be installed
    ---> Package perl.ppc 1:5.34.1-1 will be installed
    --> Processing Dependency: db >= 5.3.28 for package: 1:perl-5.34.1-1.ppc
    --> Processing Dependency: gdbm >= 1.19 for package: 1:perl-5.34.1-1.ppc
    --> Processing Dependency: libgdbm.a(libgdbm.so.6) for package: 1:perl-5.34.1-1.ppc
    --> Processing Dependency: libdb.a(libdb-5.3.so) for package: 1:perl-5.34.1-1.ppc
    ---> Package python3.ppc 0:3.7.15-2 will be installed
    --> Processing Dependency: readline >= 8.1 for package: python3-3.7.15-2.ppc
    --> Processing Dependency: bzip2 >= 1.0.8 for package: python3-3.7.15-2.ppc
    --> Processing Dependency: xz-libs >= 5.2.5 for package: python3-3.7.15-2.ppc
    --> Processing Dependency: libffi >= 3.4.2 for package: python3-3.7.15-2.ppc
    --> Processing Dependency: sqlite >= 3.37.2 for package: python3-3.7.15-2.ppc
    --> Processing Dependency: libffi.a(libffi.so.8) for package: python3-3.7.15-2.ppc
    --> Processing Dependency: liblzma.a(liblzma.so.5) for package: python3-3.7.15-2.ppc
    --> Processing Dependency: libcrypto.a(libcrypto.so.1.1) for package: python3-3.7.15-2.ppc
    --> Processing Dependency: libssl.a(libssl.so.1.1) for package: python3-3.7.15-2.ppc
    ---> Package rsync.ppc 0:3.2.7-1 will be installed
    --> Processing Dependency: lz4 >= 1.9.2 for package: rsync-3.2.7-1.ppc
    --> Processing Dependency: libcrypto.a(libcrypto.so.1.1) for package: rsync-3.2.7-1.ppc
    --> Processing Dependency: liblz4.a(liblz4.so.1) for package: rsync-3.2.7-1.ppc
    ---> Package zlib.ppc 0:1.2.13-1 will be installed
    --> Running transaction check
    ---> Package bzip2.ppc 0:1.0.8-2 will be installed
    ---> Package db.ppc 0:4.8.24-3 will be updated
    ---> Package db.ppc 1:5.3.28-1 will be an update
    ---> Package expat.ppc 0:2.4.9-1 will be installed
    ---> Package gdbm.ppc 0:1.8.3-5 will be updated
    ---> Package gdbm.ppc 0:1.23-1 will be an update
    ---> Package git-core.ppc 0:2.38.0-1 will be installed
    --> Processing Dependency: libssl.a(libssl.so.1.1) for package: git-core-2.38.0-1.ppc
    --> Processing Dependency: libcrypto.a(libcrypto.so.1.1) for package: git-core-2.38.0-1.ppc
    ---> Package glib2.ppc 0:2.14.6-2 will be updated
    ---> Package glib2.ppc 0:2.56.1-3 will be an update
    ---> Package libffi.ppc 0:3.4.2-1 will be installed
    ---> Package libgcc.ppc 1:8-1 will be installed
    ---> Package libgcc8.ppc 0:8.3.0-6 will be installed
    ---> Package libgomp.ppc 1:8-1 will be installed
    ---> Package libgomp8.ppc 0:8.3.0-6 will be installed
    ---> Package libstdc++.ppc 1:8-1 will be installed
    ---> Package libstdc++8.ppc 0:8.3.0-6 will be installed
    ---> Package libtextstyle.ppc 0:0.21-2 will be installed
    ---> Package libunistring.ppc 0:0.9.10-1 will be installed
    --> Processing Dependency: info for package: libunistring-0.9.10-1.ppc
    ---> Package libxml2.ppc 0:2.10.2-1 will be installed
    ---> Package lz4.ppc 0:1.9.3-1 will be installed
    ---> Package ncurses.ppc 0:6.3-1 will be installed
    ---> Package python3.ppc 0:3.7.15-2 will be installed
    --> Processing Dependency: libcrypto.a(libcrypto.so.1.1) for package: python3-3.7.15-2.ppc
    --> Processing Dependency: libssl.a(libssl.so.1.1) for package: python3-3.7.15-2.ppc
    ---> Package readline.ppc 0:6.1-2 will be updated
    ---> Package readline.ppc 0:8.1-1 will be an update
    ---> Package rsync.ppc 0:3.2.7-1 will be installed
    --> Processing Dependency: libcrypto.a(libcrypto.so.1.1) for package: rsync-3.2.7-1.ppc
    ---> Package sqlite.ppc 0:3.15.2-1 will be updated
    ---> Package sqlite.ppc 0:3.39.3-1 will be an update
    ---> Package xz-libs.ppc 0:5.2.5-1 will be installed
    --> Running transaction check
    ---> Package git-core.ppc 0:2.38.0-1 will be installed
    --> Processing Dependency: libssl.a(libssl.so.1.1) for package: git-core-2.38.0-1.ppc
    --> Processing Dependency: libcrypto.a(libcrypto.so.1.1) for package: git-core-2.38.0-1.ppc
    ---> Package info.ppc 0:6.7-1 will be installed
    ---> Package python3.ppc 0:3.7.15-2 will be installed
    --> Processing Dependency: libcrypto.a(libcrypto.so.1.1) for package: python3-3.7.15-2.ppc
    --> Processing Dependency: libssl.a(libssl.so.1.1) for package: python3-3.7.15-2.ppc
    ---> Package rsync.ppc 0:3.2.7-1 will be installed
    --> Processing Dependency: libcrypto.a(libcrypto.so.1.1) for package: rsync-3.2.7-1.ppc
    --> Finished Dependency Resolution
    Error: Package: git-core-2.38.0-1.ppc (AIX_Toolbox)
    Requires: libssl.a(libssl.so.1.1)
    Error: Package: rsync-3.2.7-1.ppc (AIX_Toolbox)
    Requires: libcrypto.a(libcrypto.so.1.1)
    Error: Package: python3-3.7.15-2.ppc (AIX_Toolbox)
    Requires: libcrypto.a(libcrypto.so.1.1)
    Error: Package: python3-3.7.15-2.ppc (AIX_Toolbox)
    Requires: libssl.a(libssl.so.1.1)
    Error: Package: git-core-2.38.0-1.ppc (AIX_Toolbox)
    Requires: libcrypto.a(libcrypto.so.1.1)
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    Thanks

    ------------------------------
    DC Chennai
    ------------------------------



  • 21.  RE: Install Git on AIX 7.1

    Posted Thu January 19, 2023 10:44 AM
    Install the openssl and openssh from here:

    https://www.ibm.com/support/pages/downloading-and-installing-or-upgrading-openssl-and-openssh

    Why isn't this in the AIX 7.2 updates? Because this was needed before the next AIX 7.2 TL release. It's a "sort of" TL.

    To summarize a build of an lpp_source:

    1. Add lpp's from Install ISO
    2. Add lpp's from Extensions ISO
    3. Add MRS packages (for AIX 7.2 - openssl 1.1.1, openssh)
    4. Add all the Updates
    5. Remove superceded packages.


    ------------------------------
    Mario Stargard
    ------------------------------