Originally posted by: jstephenyee
Today I installed yum on my AIX server using the yum.sh script downloaded from the IBM AIX Toolkit for Linux applications website. It seemed to install ok based on the output. But when I try to use yum, it fails right away with some sort of Python related error. Any ideas what I can do to resolve this? Below is the output from the install and the error message.
amra4985:/var/tmp# oslevel -s
7100-04-03-1642
amra4985:/var/tmp#
amra4985:/var/tmp# ./yum.sh
Installing rpm.rte at the latest version ...
This may take several minutes depending on the number of rpms installed...
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
Selected Filesets
-----------------
rpm.rte 4.13.0.4 # RPM Package Manager
<< End of Success Section >>
+-----------------------------------------------------------------------------+
BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
1 Selected to be installed, of which:
1 Passed pre-installation verification
----
1 Total to be installed
+-----------------------------------------------------------------------------+
Installing Software...
+-----------------------------------------------------------------------------+
installp: APPLYING software for:
rpm.rte 4.13.0.4
2344 blocks
. . . . . << Copyright notice for rpm.rte >> . . . . . . .
Licensed Materials - Property of IBM
5765H4000
Copyright International Business Machines Corp. 2000, 2018.
Copyright The Regents of the University of California, 1990, 1993, 1994.
Copyright Tom Dyas <tdyas@eden.rutgers.edu>, 1998.
Copyright W. L. Estes <wlestes@uncg.edu>, 1998.
Copyright Free Software Foundation, Inc., 1999-2014.
Copyright The Internet Society (1998).
Copyright Red Hat, Inc., 1998-2003, 2005, 2007, 2009-2011.
Copyright Red Hat Software, 1995-2002.
Copyright Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>, 2004.
Copyright System Design and Research, 2003.
All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for rpm.rte >>. . . .
##################################################################
This version of rpm installs files under the path /usr/opt/rpm.
More detailed information on new changes can be found in
/usr/opt/rpm/README file.
##################################################################
Converting old database format db1 to new database format db3.
Successfully converted old database format to new format.
Please wait...
Successfully updated the Kernel Authorization Table.
Successfully updated the Kernel Role Table.
Successfully updated the Kernel Command Table.
Successfully updated the Kernel Device Table.
Successfully updated the Kernel Object Domain Table.
Successfully updated the Kernel Domains Table.
Finished processing all filesets. (Total time: 21 secs).
+-----------------------------------------------------------------------------+
Summaries:
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
rpm.rte 4.13.0.4 USR APPLY SUCCESS
rpm.rte 4.13.0.4 ROOT APPLY SUCCESS
Extracting yum_bundle.tar ...
x ca-certificates-2016.10.7-2.aix6.1.ppc.rpm, 214726 bytes, 420 media blocks.
x curl-7.52.1-1.aix6.1.ppc.rpm, 533288 bytes, 1042 media blocks.
x db-4.8.24-3.aix6.1.ppc.rpm, 2897799 bytes, 5660 media blocks.
x gdbm-1.8.3-5.aix5.2.ppc.rpm, 56991 bytes, 112 media blocks.
x gettext-0.19.7-1.aix6.1.ppc.rpm, 4036762 bytes, 7885 media blocks.
x glib2-2.14.6-2.aix5.2.ppc.rpm, 1686134 bytes, 3294 media blocks.
x pysqlite-1.1.7-2.aix6.1.ppc.rpm, 51749 bytes, 102 media blocks.
x python-2.7.10-1.aix6.1.ppc.rpm, 23333701 bytes, 45574 media blocks.
x python-devel-2.7.10-1.aix6.1.ppc.rpm, 15366474 bytes, 30013 media blocks.
x python-iniparse-0.4-1.aix6.1.noarch.rpm, 37912 bytes, 75 media blocks.
x python-pycurl-7.19.3-1.aix6.1.ppc.rpm, 162093 bytes, 317 media blocks.
x python-tools-2.7.10-1.aix6.1.ppc.rpm, 830446 bytes, 1622 media blocks.
x python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm, 158584 bytes, 310 media blocks.
x readline-6.1-2.aix6.1.ppc.rpm, 489547 bytes, 957 media blocks.
x sqlite-3.15.2-1.aix6.1.ppc.rpm, 3570302 bytes, 6974 media blocks.
x yum-3.4.3-5.aix6.1.noarch.rpm, 1380725 bytes, 2697 media blocks.
x yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm, 62283 bytes, 122 media blocks.
Checking whether any of the rpms from yum_bundle are already installed ...
ca-certificates-2016.10.7-2 will be installed ...
curl-7.52.1-1 will be installed ...
db-4.8.24-3 will be installed ...
gdbm-1.8.3-5 will be installed ...
gettext-0.19.7-1 will be installed ...
glib2-2.14.6-2 will be installed ...
pysqlite-1.1.7-2 will be installed ...
python-2.7.10-1 will be installed ...
python-devel-2.7.10-1 will be installed ...
python-iniparse-0.4-1 will be installed ...
python-pycurl-7.19.3-1 will be installed ...
python-tools-2.7.10-1 will be installed ...
python-urlgrabber-3.10.1-1 will be installed ...
readline-6.1-2 will be installed ...
sqlite-3.15.2-1 will be installed ...
yum-3.4.3-5 will be installed ...
yum-metadata-parser-1.1.4-2 will be installed ...
Installing the packages...
Preparing... ################################# [100%]
Updating / installing...
1:readline-6.1-2 ################################# [ 6%]
2:sqlite-3.15.2-1 ################################# [ 12%]
/
3:gettext-0.19.7-1 ################################# [ 18%]
add libintl.so.1 (32bits) shared member to /opt/freeware/lib/libintl.a
add libintl.so.1 (64bits) shared member to /opt/freeware/lib/libintl.a
/
4:glib2-2.14.6-2 ################################# [ 24%]
5:yum-metadata-parser-1.1.4-2 ################################# [ 29%]
6:gdbm-1.8.3-5 ################################# [ 35%]
7:db-4.8.24-3 ################################# [ 41%]
8:python-2.7.10-1 ################################# [ 47%]
9:pysqlite-1.1.7-2 ################################# [ 53%]
10:python-iniparse-0.4-1 ################################# [ 59%]
11:ca-certificates-2016.10.7-2 ################################# [ 65%]
12:curl-7.52.1-1 ################################# [ 71%]
13:python-pycurl-7.19.3-1 ################################# [ 76%]
14:python-urlgrabber-3.10.1-1 ################################# [ 82%]
15:yum-3.4.3-5 ################################# [ 88%]
16:python-devel-2.7.10-1 ################################# [ 94%]
17:python-tools-2.7.10-1 ################################# [100%]
Yum installed successfully.
Please run 'yum update' to update packages to the latest level.
amra4985:/var/tmp#
amra4985:/var/tmp# rpm -qa
expect-5.42.1-3.ppc
zip-2.3-3.ppc
nawk-20121220-1.ppc
tk-8.4.7-3.ppc
unzip-5.51-1.ppc
bash-4.4-4.ppc
AIX-rpm-7.1.4.30-6.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
tcl-8.4.7-3.ppc
emacs-nox-21.3-1.ppc
rsync-3.0.6-1.ppc
emacs-21.3-1.ppc
less-487-1.ppc
grep-3.1-1.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
amra4985:/var/tmp#
amra4985:/var/tmp# yum update
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 /usr/opt/rpm/lib/librpm.so because:
0509-136 Symbol poptSaveInt (number 266) is not exported from
dependent module /usr/lib/libpopt.so.
0509-136 Symbol poptSaveLong (number 267) is not exported from
dependent module /usr/lib/libpopt.so.
0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.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
amra4985:/var/tmp#