[Yum] ImportError: No module named rpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From looking through the yum.mbox, I can see that this is not a new
question, however I was not able to discern an answer that addressed a fix
to this.

It also seems that getting yum to work on Solaris is a bit of a bear in
the first place.

Where I'm at...

I'm attempting to get yum to play nice on a Solaris 8 boxen, specifically:

Solaris 8 2/02

I have the following installed:

SMCpython      python
# python -V
Python 2.2.2
# which python
/usr/local/bin/python

SFWrpm         RPM - Red Hat Package Manager
# rpm -v
RPM version 4.0
Copyright (C) 1998 - Red Hat Software
This may be freely redistributed under the terms of the GNU GPL

These were all obtained from www.sun.com's Solaris 8 Companion.

I also installed the following supporting packages, also obtained from
www.sun.com.

SFWbdb         Berkeley DB - database library
SMCgettext     gettext
SMCliconv      libiconv

I then obtained yum-1.0.3-1_73.src.rpm from:

http://linux.duke.edu/projects/yum/download/1.0/

Did an:

#rpm -i yum-1.0.3-1_73.src.rpm
#cd /opt/sfw/src/redhat/SOURCES/yum-1.0.3

And performed a:

#./configure ;make ;make install

I then vi'd the /usr/bin/yum and /usr/bin/yum-arch files and changed:

#!/usr/bin/python

To

#!/usr/local/bin/python

When I attempt to run yum I get the following:

# yum
Traceback (most recent call last):
  File "/usr/bin/yum", line 22, in ?
    import yummain
  File "yummain.py", line 21, in ?
    import clientStuff
  File "clientStuff.py", line 22, in ?
    import rpm
ImportError: No module named rpm

Now, due to the site at which I'm at, I'd prefer to use the sunfreeware
RPM that I currently have installed,however I'm open to suggestions at
this point.

Could someone out there who's done this on Solaris possibly point me in
the right direction and maybe point out some of the pitfalls while you're
at it?

Thanks!

roman






[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux