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
------------------------------
Original Message:
Sent: Wed September 07, 2022 01:16 AM
From: SANKET RATHI
Subject: Install Git on AIX 7.1
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
Original Message:
Sent: Thu September 01, 2022 04:23 PM
From: Loganathan Varatharasa
Subject: Install Git on AIX 7.1
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
Original Message:
Sent: Tue October 08, 2019 09:19 PM
From: Archive User
Subject: Install Git on AIX 7.1
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!