Re: Problem installing YUM on AIX

Rich Niemi <[email protected]> Thu, 18 May 2017 10:41:15 -0400
Newsgroups gmane.linux.rpm.yum
Message-ID <CACXSEntbLO3gKZuU6EO4EdWn9KTa5k3=2VTt3Syh6ONMX4V=zA@mail.gmail.com>
--===============8267362319102405857==
Content-Type: multipart/alternative; boundary="001a1143033aa6234c054fcd65d3"

--001a1143033aa6234c054fcd65d3
Content-Type: text/plain; charset="UTF-8"

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
>
>

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

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">Cou=
ld be problem where the libpython2.7.a is an archived library and yum canno=
t load it properly.</div><div class=3D"gmail_default" style=3D"font-size:sm=
all">May need to use ar to extract it to get a so lib to point yum to?</div=
><div class=3D"gmail_default" style=3D"font-size:small"><br></div></div><di=
v class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu, May 18, 2017=
 at 10:23 AM, Rodrigo Belli <span dir=3D"ltr">&lt;<a href=3D"mailto:rodrigo=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wr=
ote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hello, I&#39;m star=
ting 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$ =
yum</font></div><div><font face=3D"monospace">There was a problem importing=
 one of the Python modules</font></div><div><font face=3D"monospace">requir=
ed to run yum. The error leading to this problem was:</font></div><div><fon=
t face=3D"monospace"><br></font></div><div><font face=3D"monospace">=C2=A0 =
=C2=A0Could not load module /opt/freeware/lib/python2.7/<wbr>site-packages/=
rpm/_rpmmodule.<wbr>so.</font></div><div><font face=3D"monospace">=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 Dependent module /opt/freeware/lib64/<wbr>libpython2.7=
.a(<a href=3D"http://libpython2.7.so" target=3D"_blank">libpython2.7.so</a>=
<wbr>) 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></di=
v><div><font face=3D"monospace">Could not load module /opt/freeware/lib/pyt=
hon2.7/<wbr>site-packages/rpm/_rpmmodule.<wbr>so.</font></div><div><font fa=
ce=3D"monospace">=C2=A0 =C2=A0 =C2=A0 =C2=A0 Dependent module /opt/freeware=
/lib/python2.7/<wbr>site-packages/rpm/_rpmmodule.<wbr>so could not be loade=
d.</font></div><div><font face=3D"monospace"><br></font></div><div><font fa=
ce=3D"monospace">Please install a package which provides this module, or</f=
ont></div><div><font face=3D"monospace">verify that the module is installed=
 correctly.</font></div><div><font face=3D"monospace"><br></font></div><div=
><font face=3D"monospace">It&#39;s possible that the above module doesn&#39=
;t match the</font></div><div><font face=3D"monospace">current version of P=
ython, 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"monospace">If you cannot solve this problem =
yourself, please go to</font></div><div><font face=3D"monospace">the yum fa=
q at:</font></div><div><font face=3D"monospace">=C2=A0 <a href=3D"http://yu=
m.baseurl.org/wiki/Faq" target=3D"_blank">http://yum.baseurl.org/wiki/<wbr>=
Faq</a></font></div></div><div><br></div><div>Please, could anyone help me?=
</div><div><br></div><div>Thanks in advance!</div><span class=3D"HOEnZb"><f=
ont color=3D"#888888"><div><br></div><div>Rodrigo</div><div><br></div></fon=
t></span></div>
<br>______________________________<wbr>_________________<br>
Yum mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://lists.baseurl.org/mailman/listinfo/yum" rel=3D"noreferrer=
" target=3D"_blank">http://lists.baseurl.org/<wbr>mailman/listinfo/yum</a><=
br>
<br></blockquote></div><br></div>

--001a1143033aa6234c054fcd65d3--

--===============8267362319102405857==
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

--===============8267362319102405857==--