Originally posted by: AntonMarquez
Hi All,
I installed yum on my AIX 7.1 system to get GIT. Once after the successful installation of YUM I tried installing GIT. But it failed with the below error.
root@KDC-ecwcu3:/tmp>yum install git
AIX_Toolbox | 2.9 kB 00:00:00
AIX_Toolbox/primary_db | 1.3 MB 00:00:02
AIX_Toolbox_71 | 2.9 kB 00:00:00
AIX_Toolbox_71/primary_db | 13 kB 00:00:00
AIX_Toolbox_noarch | 2.9 kB 00:00:00
AIX_Toolbox_noarch/primary_db | 61 kB 00:00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.ppc 0:2.20.1-1 will be installed
--> Processing Dependency: libssh2 >= 1.8.0-2 for package: git-2.20.1-1.ppc
--> Processing Dependency: python >= 2.7.12 for package: git-2.20.1-1.ppc
--> Processing Dependency: libiconv >= 1.14 for package: git-2.20.1-1.ppc
--> Processing Dependency: gettext >= 0.19.8.1 for package: git-2.20.1-1.ppc
--> Processing Dependency: expat >= 2.2.0 for package: git-2.20.1-1.ppc
--> Processing Dependency: openldap >= 2.4.45-3 for package: git-2.20.1-1.ppc
--> Processing Dependency: zlib >= 1.2.11 for package: git-2.20.1-1.ppc
--> Processing Dependency: bash for package: git-2.20.1-1.ppc
--> Processing Dependency: liblber.a(liblber-2.4.so.2) for package: git-2.20.1-1.ppc
--> Processing Dependency: less for package: git-2.20.1-1.ppc
--> Processing Dependency: /opt/freeware/bin/perl for package: git-2.20.1-1.ppc
--> Processing Dependency: /usr/bin/bash for package: git-2.20.1-1.ppc
--> Processing Dependency: libexpat.a(libexpat.so.1) for package: git-2.20.1-1.ppc
--> Processing Dependency: libiconv.a(libiconv.so.2) for package: git-2.20.1-1.ppc
--> Processing Dependency: libssh2.a(libssh2.so.1) for package: git-2.20.1-1.ppc
--> Processing Dependency: libldap.a(libldap-2.4.so.2) for package: git-2.20.1-1.ppc
--> Running transaction check
---> Package bash.ppc 0:5.0-1 will be installed
---> Package expat.ppc 0:2.2.6-1 will be installed
--> Processing Dependency: libgcc >= 6.3.0-1 for package: expat-2.2.6-1.ppc
---> Package gettext.ppc 0:0.19.7-1 will be updated
---> Package gettext.ppc 0:0.19.8.1-3 will be an update
--> Processing Dependency: libncurses.a(libncurses.so.6) for package: gettext-0.19.8.1-3.ppc
---> Package less.ppc 0:487-1 will be installed
---> Package libiconv.ppc 0:1.14-2 will be installed
---> Package libssh2.ppc 0:1.8.2-1 will be installed
---> Package openldap.ppc 0:2.4.46-1 will be installed
--> Processing Dependency: cyrus-sasl >= 2.1.26-2 for package: openldap-2.4.46-1.ppc
--> Processing Dependency: libsasl2.a for package: openldap-2.4.46-1.ppc
---> Package perl.ppc 1:5.28.1-1 will be installed
--> Processing Dependency: libgdbm.a(libgdbm.so.4) for package: 1:perl-5.28.1-1.ppc
---> Package python.ppc 0:2.7.10-1 will be updated
--> Processing Dependency: python = 2.7.10 for package: python-tools-2.7.10-1.ppc
--> Processing Dependency: python = 2.7.10 for package: python-devel-2.7.10-1.ppc
---> Package python.ppc 0:2.7.16-1 will be an update
--> Processing Dependency: libstdc++ >= 6.3.0 for package: python-2.7.16-1.ppc
--> Processing Dependency: readline >= 7.0-5 for package: python-2.7.16-1.ppc
--> Processing Dependency: libreadline.a(libreadline.so.7) for package: python-2.7.16-1.ppc
--> Processing Dependency: libffi.a(libffi.so.6) for package: python-2.7.16-1.ppc
--> Processing Dependency: libffi for package: python-2.7.16-1.ppc
--> Processing Dependency: bzip2 for package: python-2.7.16-1.ppc
---> Package zlib.ppc 0:1.2.11-1 will be installed
--> Running transaction check
---> Package bzip2.ppc 0:1.0.6-3 will be installed
---> Package cyrus-sasl.ppc 0:2.1.26-3 will be installed
---> Package gdbm.ppc 0:1.8.3-5 will be updated
---> Package gdbm.ppc 0:1.18.1-1 will be an update
---> Package libffi.ppc 0:3.2.1-3 will be installed
---> Package libgcc.ppc 0:4.0.0-1 will be updated
---> Package libgcc.ppc 0:6.3.0-2 will be an update
---> Package libstdc++.ppc 0:4.0.0-1 will be updated
---> Package libstdc++.ppc 0:6.3.0-2 will be an update
---> Package ncurses.ppc 0:6.1-2 will be installed
---> Package python-devel.ppc 0:2.7.10-1 will be updated
---> Package python-devel.ppc 0:2.7.16-1 will be an update
---> Package python-tools.ppc 0:2.7.10-1 will be updated
---> Package python-tools.ppc 0:2.7.16-1 will be an update
---> Package readline.ppc 0:6.1-2 will be updated
---> Package readline.ppc 0:8.0-1 will be an update
--> Processing Dependency: info >= 6.4 for package: readline-8.0-1.ppc
--> Running transaction check
---> Package info.ppc 0:6.4-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================================================
Installing:
git ppc 2.20.1-1 AIX_Toolbox 24 M
Installing for dependencies:
bash ppc 5.0-1 AIX_Toolbox 3.1 M
bzip2 ppc 1.0.6-3 AIX_Toolbox 153 k
cyrus-sasl ppc 2.1.26-3 AIX_Toolbox 910 k
expat ppc 2.2.6-1 AIX_Toolbox 800 k
info ppc 6.4-1 AIX_Toolbox 566 k
less ppc 487-1 AIX_Toolbox 276 k
libffi ppc 3.2.1-3 AIX_Toolbox 47 k
libiconv ppc 1.14-2 AIX_Toolbox 1.5 M
libssh2 ppc 1.8.2-1 AIX_Toolbox 755 k
ncurses ppc 6.1-2 AIX_Toolbox 3.3 M
openldap ppc 2.4.46-1 AIX_Toolbox 4.4 M
perl ppc 1:5.28.1-1 AIX_Toolbox 31 M
zlib ppc 1.2.11-1 AIX_Toolbox 174 k
Updating for dependencies:
gdbm ppc 1.18.1-1 AIX_Toolbox 278 k
gettext ppc 0.19.8.1-3 AIX_Toolbox 9.3 M
libgcc ppc 6.3.0-2 AIX_Toolbox_71 939 k
libstdc++ ppc 6.3.0-2 AIX_Toolbox_71 12 M
python ppc 2.7.16-1 AIX_Toolbox 21 M
python-devel ppc 2.7.16-1 AIX_Toolbox 12 k
python-tools ppc 2.7.16-1 AIX_Toolbox 12 k
readline ppc 8.0-1 AIX_Toolbox 2.4 M
Transaction Summary
=================================================================================================================================================================================
Install 14 Packages
Upgrade 8 Packages
Total download size: 118 M
Is this ok [y/N]: y
Downloading Packages:
(1/22): bash-5.0-1.aix6.1.ppc.rpm | 3.1 MB 00:00:02
(2/22): bzip2-1.0.6-3.aix6.1.ppc.rpm | 153 kB 00:00:00
(3/22): cyrus-sasl-2.1.26-3.aix6.1.ppc.rpm | 910 kB 00:00:00
(4/22): expat-2.2.6-1.aix6.1.ppc.rpm | 800 kB 00:00:01
(5/22): gdbm-1.18.1-1.aix6.1.ppc.rpm | 278 kB 00:00:00
(6/22): gettext-0.19.8.1-3.aix6.1.ppc.rpm | 9.3 MB 00:00:12
(7/22): git-2.20.1-1.aix6.1.ppc.rpm | 24 MB 00:00:33
(8/22): info-6.4-1.aix6.1.ppc.rpm | 566 kB 00:00:01
(9/22): less-487-1.aix6.1.ppc.rpm | 276 kB 00:00:00
(10/22): libffi-3.2.1-3.aix6.1.ppc.rpm | 47 kB 00:00:00
(11/22): libgcc-6.3.0-2.aix7.1.ppc.rpm | 939 kB 00:00:00
(12/22): libiconv-1.14-2.aix6.1.ppc.rpm | 1.5 MB 00:00:01
(13/22): libssh2-1.8.2-1.aix6.1.ppc.rpm | 755 kB 00:00:00
(14/22): libstdcplusplus-6.3.0-2.aix7.1.ppc.rpm | 12 MB 00:00:17
(15/22): ncurses-6.1-2.aix6.1.ppc.rpm | 3.3 MB 00:00:06
(16/22): openldap-2.4.46-1.aix6.1.ppc.rpm | 4.4 MB 00:00:10
(17/22): perl-5.28.1-1.aix6.1.ppc.rpm | 31 MB 00:00:44
(18/22): python-2.7.16-1.aix6.1.ppc.rpm | 21 MB 00:00:25
(19/22): python-devel-2.7.16-1.aix6.1.ppc.rpm | 12 kB 00:00:00
(20/22): python-tools-2.7.16-1.aix6.1.ppc.rpm | 12 kB 00:00:00
(21/22): readline-8.0-1.aix6.1.ppc.rpm | 2.4 MB 00:00:02
(22/22): zlib-1.2.11-1.aix6.1.ppc.rpm | 174 kB 00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 728 kB/s | 118 MB 02:45
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
cdrecord-devel-1.9-4.ppc has missing requires of cdrecord = ('3', '1.9', None)
Updating : libgcc-6.3.0-2.ppc 1/30
Installing : zlib-1.2.11-1.ppc 2/30
Updating : libstdc++-6.3.0-2.ppc 3/30
Installing : ncurses-6.1-2.ppc 4/30
Updating : gettext-0.19.8.1-3.ppc 5/30
Updating : gdbm-1.18.1-1.ppc 6/30
Installing : libiconv-1.14-2.ppc 7/30
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
/
Installing : bash-5.0-1.ppc 8/30
## Binary "bash" is avaible in 32bit and 64bit ##
The default used is 64bit
If 32bit is needed, please change symbolic link
for "bash" in /bin directory
To do that type:
# rm -f /bin/bash
# ln -sf /opt/freeware/bin/bash_32 /bin/bash
Installing : expat-2.2.6-1.ppc 9/30
Installing : info-6.4-1.ppc 10/30
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.0-1.ppc 11/30
Installing : 1:perl-5.28.1-1.ppc 12/30
Installing : libssh2-1.8.2-1.ppc 13/30
Installing : libffi-3.2.1-3.ppc 14/30
Installing : cyrus-sasl-2.1.26-3.ppc 15/30
Installing : openldap-2.4.46-1.ppc 16/30
Group "ldap" does not exist.
Installing : bzip2-1.0.6-3.ppc 17/30
Updating : python-2.7.16-1.ppc 18/30
Installing : less-487-1.ppc 19/30
Error in PREIN scriptlet in rpm package git-2.20.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.20.1-1.ppc) scriptlet failed, exit status 1
Updating : python-devel-2.7.16-1.ppc 21/30
error: git-2.20.1-1.ppc: install failed
Updating : python-tools-2.7.16-1.ppc 22/30
Cleanup : python-tools-2.7.10-1.ppc 23/30
Cleanup : python-devel-2.7.10-1.ppc 24/30
Cleanup : python-2.7.10-1.ppc 25/30
Cleanup : libstdc++-4.0.0-1.ppc 26/30
Cleanup : libgcc-4.0.0-1.ppc 27/30
Cleanup : gdbm-1.8.3-5.ppc 28/30
Cleanup : readline-6.1-2.ppc 29/30
Cleanup : gettext-0.19.7-1.ppc 30/30
Ignore the error about AIX-rpm dependency since the older libintl.a is already preserved and will be reverted back
Dependency Installed:
bash.ppc 0:5.0-1 bzip2.ppc 0:1.0.6-3 cyrus-sasl.ppc 0:2.1.26-3 expat.ppc 0:2.2.6-1 info.ppc 0:6.4-1 less.ppc 0:487-1 libffi.ppc 0:3.2.1-3 libiconv.ppc 0:1.14-2
libssh2.ppc 0:1.8.2-1 ncurses.ppc 0:6.1-2 openldap.ppc 0:2.4.46-1 perl.ppc 1:5.28.1-1 zlib.ppc 0:1.2.11-1
Dependency Updated:
gdbm.ppc 0:1.18.1-1 gettext.ppc 0:0.19.8.1-3 libgcc.ppc 0:6.3.0-2 libstdc++.ppc 0:6.3.0-2 python.ppc 0:2.7.16-1 python-devel.ppc 0:2.7.16-1 python-tools.ppc 0:2.7.16-1
readline.ppc 0:8.0-1
Failed:
git.ppc 0:2.20.1-1
Complete!
root@KDC-ecwcu3:/tmp>
And now my YUM also doesn't seems to be working.. Any thoughts ??? How to get around the error ?
root@KDC-ecwcu3:/tmp>yum repolist
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
Could not load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.
Member libcrypto.so is not found in archive
Could not load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
Dependent module /opt/freeware/lib/python2.7/site-packages/pycurl.so could not be loaded.
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.16 (default, Mar 12 2019, 21:23:24)
[GCC 6.3.0]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
root@KDC-ecwcu3:/tmp>
#AIXOpenSource#AIX-Open-Source-Software