View Full Version : Who can fix my python, yum, rpm setup...
nieuwhier
01-21-2008, 03:56 PM
I have a server with centos 4.5.
installed trac, svn, python 2.5 and it all works fantastic.
But somewhere my yum broke down....
Who wants to fix this for me, I am sick of it now (many hours wich I don'thave).
Of course I want to to pay you if you succeed.
Please only respond if you have a track-record on this forum.
chatwizrd
01-21-2008, 05:47 PM
What error are you getting to know that it is not working right?
Try:
rpm -Uvh --force "http://mirrors.rit.edu/centos/4.6/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm" "http://mirrors.rit.edu/centos/4.6/os/i386/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm"
agnivo007
01-21-2008, 08:21 PM
What errors are you getting actually?
nieuwhier
01-22-2008, 02:52 AM
No module named yum.
I think the problem has to do with python. I need python 2.5 and that works but I still see python 2.3 on the system also.
Installing yum with an rpm does work but has no effect. Installing the most recent yum version has no effect... I tried a lot :-(
nieuwhier
01-22-2008, 02:54 AM
Try:
rpm -Uvh --force "http://mirrors.rit.edu/centos/4.6/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm" "http://mirrors.rit.edu/centos/4.6/os/i386/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm"
Thx! I did this and still get the error 'no module named yum'.
tanfwc
01-22-2008, 08:12 AM
Feel free to PM me for a quote :)
bigall
01-23-2008, 09:07 AM
Please contact me if you do still need some help.
chatwizrd
01-23-2008, 10:49 AM
Thx! I did this and still get the error 'no module named yum'.
Yeah I guess I wasnt thinking :)
You will probably have to rebuild the rpm via src.rpm file.
See if you have the program rpmbuild already on the system.
If not you can install it via:
rpm -Uvh "http://mirrors.kernel.org/centos/4.6/os/i386/CentOS/RPMS/rpm-devel-4.3.3-23_nonptl.i386.rpm"
You can get the rest of the dependencies here:
http://mirrors.kernel.org/centos/4.6/os/i386/CentOS/RPMS/
Once you get rpmbuild on the system you can then build the source rpm.
Find out which version of yum you have on your system by typing:
yum --version
Then you can go to:
http://linux.duke.edu/projects/yum/download.ptml
And find the file you need. Download the .src.rpm to your server.
Example:
cd /root
wget "http://linux.duke.edu/projects/yum/download/3.0/yum-3.0.6-1.src.rpm"
rpmbuild --rebuild yum-3.0.6-1.src.rpm
Once it was done building you would do:
rpm -Uvh --force /usr/src/redhat/RPMS/noarch/yum*rpm
Another thing I read online was to do the following:
type:
python
once the command prompt is open
type:
import yum
If you get any errors from that then you can begin to figure out what they are to maybe fix it.
But most sites say that if you install yum via src.rpm it will fix it.
nieuwhier
01-23-2008, 02:35 PM
Thx chatwizrd. I copied your message to try this on another server with kind-of the same problem.
For now I am all set, problem is solved !!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.