Possible Duplicate:
Upgrade python without breaking yum
I'm running a Redhat VM (2.6.18-274.el5 64 bit). I installed nodejs on the vm in order to use browserstack. To get nodejs running I had to upgrade Python to 2.6 or above. I installed 2.7 from source using make altinstall. Then I createda hard-link to point from 2.4 to 2.7. Checking the python -V now shows 2.7 being the default. That all worked out fine and node is now up and running.
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
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.2 (default, Jul 2 2012, 23:35:52)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
My problem is Yum. It's no longer working as its looking for the older version of Python which is 2.4? Is there anyway I can have both of them working as in Yum and node both using different versions?