Need some assistance Please:
I just installed YUM on my AIX server acting as an AIX repo client. All worked out until I thought I need to install curl again:
I got the following errors:
here was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
0509-022 Cannot load module /opt/freeware/lib/libcurl.a(libcurl.so.4).
0509-150 Dependent module /usr/lib/libldap.a(libldap-2.4.so.2) could not be loaded.
0509-153 File /usr/lib/libldap.a is not an archive or
the file could not be read properly.
0509-026 System error: Cannot run a file that does not have a valid format.
0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
0509-150 Dependent module /opt/freeware/lib/libcurl.a(libcurl.so.4) 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.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/FaqGoing thru some blogs , as suggested by AIX Opensource team : I issued the following commands:
root @res1: / $export LIBPATH=/opt/freeware/lib64:/opt/freeware/lib:/usr/lib
root @res1: / $echo $LIBPATH
/opt/freeware/lib64:/opt/freeware/lib:/usr/lib
root @res1: / $yum repolist
exec(): 0509-036 Cannot load program /opt/freeware/bin/python2 because of the following errors:
0509-150 Dependent module /opt/freeware/lib64/libpython2.7.aroot @resig1: /opt/freeware/etc/yum $sudo -V
exec(): 0509-036 Cannot load program sudo because of the following errors:
0509-150 Dependent module /opt/freeware/lib64/libintl.a(libintl.so.8) could not be loaded.
0509-103 The module has an invalid magic number.
(libpython2.7.so)
It got rid some errors but I have new one ones as show above.
Furthermore it broke my sudo installations:
root @res1: /opt/freeware/etc/yum $sudo -V
exec(): 0509-036 Cannot load program sudo because of the following errors:
0509-150 Dependent module /opt/freeware/lib64/libintl.a(libintl.so.8) could not be loaded.
0509-103 The module has an invalid magic number.
Upon unsetting LIBPATH
echo $LIBPATH
/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:
root @res1: /opt/freeware/etc/yum $unset LIBPATH
Got SUDO to work again:
a674 @resig1: /home/guest $sudo su -
Password:
root @res1: / $sudo -V | grep -i version
Sudo version 1.9.5p2
Sudoers policy plugin version 1.9.5p2
Sudoers file grammar version 48
Sudoers I/O plugin version 1.9.5p2
Sudoers audit plugin version 1.9.5p2
0
Back to Original Errors
root @resi1: / $yum repolist
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
0509-022 Cannot load module /opt/freeware/lib/libcurl.a(libcurl.so.4).
0509-150 Dependent module /usr/lib/libldap.a(libldap-2.4.so.2) could not be loaded.
0509-153 File /usr/lib/libldap.a is not an archive or
the file could not be read properly.
0509-026 System error: Cannot run a file that does not have a valid format.
0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
0509-150 Dependent module /opt/freeware/lib/libcurl.a(libcurl.so.4) 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.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
Some info about RPM pkgs
root @res1: /opt/freeware/etc/yum $rpm -qa
01SV860_205_165-1.1-1.noarch
RDX.T.USB3-0278-01.noarch
scrub-2.0-1.ppc
nut-2.6.5-1.ppc
readline-6.1-2.ppc
pysqlite-1.1.7-2.ppc
python-pycurl-7.19.3-1.ppc
python-devel-2.7.10-1.ppc
libgcc8-8.3.0-5.ppc
libstdc++8-8.3.0-5.ppc
ncurses-6.2-2.ppc
libgomp-8-1.ppc
libffi-3.2.1-3.ppc
libxml2-2.9.10-1.ppc
glib2-2.56.1-3.ppc
info-6.7-1.ppc
sudo_noldap-1.9.5p2-1.ppc
libtasn1-4.16.0-1.ppc
p11-kit-tools-0.23.22-1.ppc
cyrus-sasl-2.1.26-3.ppc
krb5-libs-1.18.3-1.ppc
libssh2-1.9.0-1.ppc
yum-3.4.3-8.noarch
AIX-rpm-7.2.4.0-18.ppc
rsync-3.1.2-2.ppc
zlib-1.2.11-2.ppc
nut-client-2.6.5-1.ppc
popt-1.16-3.ppc
01SV860_212_165-1.1-1.noarch
bash-4.4-3.ppc
gdbm-1.8.3-5.ppc
sqlite-3.15.2-1.ppc
python-2.7.10-1.ppc
python-iniparse-0.4-1.noarch
python-urlgrabber-3.10.1-1.noarch
python-tools-2.7.10-1.ppc
libgcc-8-1.ppc
libstdc++-8-1.ppc
libgomp8-8.3.0-5.ppc
xz-libs-5.2.5-1.ppc
libtextstyle-0.20.2-1.ppc
libiconv-1.16-1.ppc
gettext-0.20.2-1.ppc
libunistring-0.9.10-1.ppc
db-5.3.28-1.ppc
p11-kit-0.23.22-1.ppc
ca-certificates-2020.06.01-2.ppc
openldap-2.4.58-1.ppc
libnghttp2-1.41.0-1.ppc
curl-7.76.1-1.ppc
yum-metadata-parser-1.1.4-2.ppc
------------------------------
Dharma Sanassy
------------------------------