Yum and other Python dependencies not working.
Hi Experts,
Once of my collegue messed up with Python completely and now its effecting all of the applications dependent on it. I tried to re-install the 2.7 version of Python but still applications like Yum, GDB are not working. # cat /etc/redhat-release Red Hat 6.2 #python -V Python 2.7.6 # which python /usr/local/bin/python When I do '# yum clean all', I get :- Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 'import site' failed; use -v for traceback 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.6.9 (unknown, Feb 13 2014, 12:11:39) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] I am not sure why is it saying the current version of Python as 2.6.9. Appreciate all your help. |
you are basically " bleeped up "
yum and parts of Gnome are VERY VERY VERY dependent on the EXACT !!!! version of python that is in the update repo that version MUST !!! 100% MUST BE INSTALLED AND USED !!! this is redhat so you have a support contract -- YOU WILL NEED IT --- you need to grab the current python rpm update from the RHN-update repo or the RHN install repo for 6.5 that and ONLY !!!!!! that version can be used to get yum working and with this the even OLDER RHEL6.2 and NOT 6.5 you NEED to use the paid for redhat tech support they are the only ones that can help you because you need rpm's FROM the RHN repo PS. if you are thinking of using the centos repo for 6.2 that rpm will be using a different version number and WILL!!!! cause a unsolvable conflict and "yum' will still not work do to that conflict |
All times are GMT -5. The time now is 07:14 PM. |