Re: Problem installing YUM on AIX

Rodrigo Belli <[email protected]> Thu, 18 May 2017 15:02:19 +0000
Newsgroups gmane.linux.rpm.yum
Message-ID <CAE37BNh_oXLvwq93-Bt+1oo3o8mZjXsTs-8Qz2izVBYRH5Ry+Q@mail.gmail.com>
--===============3843037646902526120==
Content-Type: multipart/alternative; boundary="94eb2c0972eca25bfc054fcdb1d2"

--94eb2c0972eca25bfc054fcdb1d2
Content-Type: text/plain; charset="UTF-8"

The file exists in the directory :

server:/opt/freeware/lib/python2.7/site-packages/rpm$ ls -la
total 536
drwxr-xr-x    2 root     system         4096 May 18 09:20 ./
drwxr-xr-x    9 root     system         4096 May 18 10:39 ../
-rw-r--r--    1 root     system         2018 Feb 28 05:57 __init__.py
-rw-r--r--    1 root     system         2860 May 17 16:44 __init__.pyc
-rw-r--r--    1 root     system         1265 Feb 28 05:57 _rpmbmodule.la
-rw-r--r--    1 root     system        20187 Feb 28 05:57 _rpmbmodule.so
-rw-r--r--    1 root     system         1189 Feb 28 05:57 _rpmmodule.la
*-rw-r--r--    1 root     system       208888 Feb 28 05:57 _rpmmodule.so*
-rw-r--r--    1 root     system         1256 Feb 28 05:57 _rpmsmodule.la
-rw-r--r--    1 root     system         4234 Feb 28 05:57 _rpmsmodule.so
-rw-r--r--    1 root     system         5116 Feb 28 05:57 transaction.py




On Thu, May 18, 2017 at 11:41 AM Rich Niemi <[email protected]> wrote:

> Could be problem where the libpython2.7.a is an archived library and yum
> cannot load it properly.
> May need to use ar to extract it to get a so lib to point yum to?
>
>
> On Thu, May 18, 2017 at 10:23 AM, Rodrigo Belli <[email protected]>
> wrote:
>
>> Hello, I'm starting with AIX and YUM and when tryed to use yum the
>> problem below was shown:
>>
>> server:/tmp/yum/bundle$ yum
>> 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/rpm/_rpmmodule.so.
>>         Dependent module /opt/freeware/lib64/libpython2.7.a(
>> libpython2.7.so) could not be loaded.
>>         The module has an invalid magic number.
>> Could not load module
>> /opt/freeware/lib/python2.7/site-packages/rpm/_rpmmodule.so.
>>         Dependent module
>> /opt/freeware/lib/python2.7/site-packages/rpm/_rpmmodule.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.13 (default, Jan 16 2017, 14:19:45) [C]
>>
>> If you cannot solve this problem yourself, please go to
>> the yum faq at:
>>   http://yum.baseurl.org/wiki/Faq
>>
>> Please, could anyone help me?
>>
>> Thanks in advance!
>>
>> Rodrigo
>>
>>
>> _______________________________________________
>> Yum mailing list
>> [email protected]
>> http://lists.baseurl.org/mailman/listinfo/yum
>>
>>
> _______________________________________________
> Yum mailing list
> [email protected]
> http://lists.baseurl.org/mailman/listinfo/yum
>

--94eb2c0972eca25bfc054fcdb1d2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div>The file exists in the directory :</div><div><br>=
</div><div><div>server:/opt/freeware/lib/python2.7/site-packages/rpm$ ls -l=
a</div><div>total 536</div><div>drwxr-xr-x =C2=A0 =C2=A02 root =C2=A0 =C2=
=A0 system =C2=A0 =C2=A0 =C2=A0 =C2=A0 4096 May 18 09:20 ./</div><div>drwxr=
-xr-x =C2=A0 =C2=A09 root =C2=A0 =C2=A0 system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
4096 May 18 10:39 ../</div><div>-rw-r--r-- =C2=A0 =C2=A01 root =C2=A0 =C2=
=A0 system =C2=A0 =C2=A0 =C2=A0 =C2=A0 2018 Feb 28 05:57 __init__.py</div><=
div>-rw-r--r-- =C2=A0 =C2=A01 root =C2=A0 =C2=A0 system =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 2860 May 17 16:44 __init__.pyc</div><div>-rw-r--r-- =C2=A0 =C2=
=A01 root =C2=A0 =C2=A0 system =C2=A0 =C2=A0 =C2=A0 =C2=A0 1265 Feb 28 05:5=
7 _<a href=3D"http://rpmbmodule.la">rpmbmodule.la</a></div><div>-rw-r--r-- =
=C2=A0 =C2=A01 root =C2=A0 =C2=A0 system =C2=A0 =C2=A0 =C2=A0 =C2=A020187 F=
eb 28 05:57 _rpmbmodule.so</div><div>-rw-r--r-- =C2=A0 =C2=A01 root =C2=A0 =
=C2=A0 system =C2=A0 =C2=A0 =C2=A0 =C2=A0 1189 Feb 28 05:57 _<a href=3D"htt=
p://rpmmodule.la">rpmmodule.la</a></div><div><b>-rw-r--r-- =C2=A0 =C2=A01 r=
oot =C2=A0 =C2=A0 system =C2=A0 =C2=A0 =C2=A0 208888 Feb 28 05:57 _rpmmodul=
e.so</b></div><div>-rw-r--r-- =C2=A0 =C2=A01 root =C2=A0 =C2=A0 system =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 1256 Feb 28 05:57 _<a href=3D"http://rpmsmodule.la=
">rpmsmodule.la</a></div><div>-rw-r--r-- =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =
system =C2=A0 =C2=A0 =C2=A0 =C2=A0 4234 Feb 28 05:57 _rpmsmodule.so</div><d=
iv>-rw-r--r-- =C2=A0 =C2=A01 root =C2=A0 =C2=A0 system =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 5116 Feb 28 05:57 transaction.py</div></div><div><br></div><div><br=
></div><div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr"=
>On Thu, May 18, 2017 at 11:41 AM Rich Niemi &lt;<a href=3D"mailto:rich.nie=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-=
size:small">Could be problem where the libpython2.7.a is an archived librar=
y and yum cannot load it properly.</div><div class=3D"gmail_default" style=
=3D"font-size:small">May need to use ar to extract it to get a so lib to po=
int yum to?</div><div class=3D"gmail_default" style=3D"font-size:small"><br=
></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"></di=
v></div><div class=3D"gmail_extra"><div class=3D"gmail_quote">On Thu, May 1=
8, 2017 at 10:23 AM, Rodrigo Belli <span dir=3D"ltr">&lt;<a href=3D"mailto:=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</s=
pan> wrote:<br></div></div><div class=3D"gmail_extra"><div class=3D"gmail_q=
uote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hello, I&#39;m starti=
ng with AIX and YUM and when tryed to use yum the problem below was shown:<=
div><br></div><div><div><font face=3D"monospace">server:/tmp/yum/bundle$ yu=
m</font></div><div><font face=3D"monospace">There was a problem importing o=
ne of the Python modules</font></div><div><font face=3D"monospace">required=
 to run yum. The error leading to this problem was:</font></div><div><font =
face=3D"monospace"><br></font></div><div><font face=3D"monospace">=C2=A0 =
=C2=A0Could not load module /opt/freeware/lib/python2.7/site-packages/rpm/_=
rpmmodule.so.</font></div><div><font face=3D"monospace">=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 Dependent module /opt/freeware/lib64/libpython2.7.a(<a href=3D"h=
ttp://libpython2.7.so" target=3D"_blank">libpython2.7.so</a>) could not be =
loaded.</font></div><div><font face=3D"monospace">=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 The module has an invalid magic number.</font></div><div><font face=3D"=
monospace">Could not load module /opt/freeware/lib/python2.7/site-packages/=
rpm/_rpmmodule.so.</font></div><div><font face=3D"monospace">=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 Dependent module /opt/freeware/lib/python2.7/site-packages/rp=
m/_rpmmodule.so could not be loaded.</font></div><div><font face=3D"monospa=
ce"><br></font></div><div><font face=3D"monospace">Please install a package=
 which provides this module, or</font></div><div><font face=3D"monospace">v=
erify that the module is installed correctly.</font></div><div><font face=
=3D"monospace"><br></font></div><div><font face=3D"monospace">It&#39;s poss=
ible that the above module doesn&#39;t match the</font></div><div><font fac=
e=3D"monospace">current version of Python, which is:</font></div><div><font=
 face=3D"monospace">2.7.13 (default, Jan 16 2017, 14:19:45) [C]</font></div=
><div><font face=3D"monospace"><br></font></div><div><font face=3D"monospac=
e">If you cannot solve this problem yourself, please go to</font></div><div=
><font face=3D"monospace">the yum faq at:</font></div><div><font face=3D"mo=
nospace">=C2=A0 <a href=3D"http://yum.baseurl.org/wiki/Faq" target=3D"_blan=
k">http://yum.baseurl.org/wiki/Faq</a></font></div></div><div><br></div><di=
v>Please, could anyone help me?</div><div><br></div><div>Thanks in advance!=
</div><span class=3D"m_8228972784550897454HOEnZb"><font color=3D"#888888"><=
div><br></div><div>Rodrigo</div><div><br></div></font></span></div>
<br></blockquote></div></div><div class=3D"gmail_extra"><div class=3D"gmail=
_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">____________________________________=
___________<br>
Yum mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
l.org</a><br>
<a href=3D"http://lists.baseurl.org/mailman/listinfo/yum" rel=3D"noreferrer=
" target=3D"_blank">http://lists.baseurl.org/mailman/listinfo/yum</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>
Yum mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
l.org</a><br>
<a href=3D"http://lists.baseurl.org/mailman/listinfo/yum" rel=3D"noreferrer=
" target=3D"_blank">http://lists.baseurl.org/mailman/listinfo/yum</a><br>
</blockquote></div>

--94eb2c0972eca25bfc054fcdb1d2--

--===============3843037646902526120==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum

--===============3843037646902526120==--