Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've removed yum by mistake. So, now I'm installing all the dependencies needed by yum manually. One of those is gettext-0.17-1.el5.i386.rpm and when I try to install it gives the following error,

error: Failed dependencies:
    /usr/bin/python is needed by gettext-0.17-1.el5.i386

which is weird since I've installed python 2.6 already in the system.

#python -V
Python 2.6.8
#which python
/usr/local/bin/python

So I copied /usr/local/bin/python to /usr/bin/python and even after that I'm getting the same error. Any help is appreciated.

share|improve this question
1  
Red Hat 5.x and derivatives rely very heavily on the provided Python 2.4. You can't remove it. Have you made attempt to do so? Also, rather than copying the binary to /usr/bin, you should symlink it. –  Aaron Copley Oct 4 '12 at 14:26
    
@Aaron Copley I was getting errors when I tried to install reviewboard (reviewboard.org) using Python 2.4. So I removed it and installed Python 2.6. Also I tried creating symlink and that too din't work. –  viji Oct 4 '12 at 14:28

2 Answers 2

I was getting errors when I tried to install reviewboard (reviewboard.org) using Python 2.4. So I removed it and installed Python 2.6. Also I tried creating symlink and that too din't work.

Yum itself requires Python 2.4 among other Red Hat utilities. You're going to have a lot of problems related to the removal of Python 2.4. That error should probably more accurately read; /usr/bin/python (Python 2.4) is needed by....

See this question: Install Python 2.5 on RedHat/Centos. Also, another option is python26 is in EPEL. I'm not sure how recent it is, though.

share|improve this answer

Among other things, you removed the system Python package; yum is looking for the package which provides Python to be installed, not merely a Python binary. Reinstall the python package. And in the future, be very careful when removing packages.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.