[opensuse] yum, python 2.6 and Suse 11.1 - A sad tale
Hi Guys, I would like to use yum on 11.1 - specifically yum-utils and the ability to use yum localinstall, which I find extremely handy and which zypper does not support. (Yes, I know "You should just use zypper!" and "smart is better" and "why would you ever want to use yum on Suse?" and all those wonder things, but the bottom line is that there is still no way for zypper to install a local rpm and handle the dependencies from the repos. Plus, I like yum.) yum is not in 11.1 repo, and seems to have been removed due to python being updated to 2.6 which does not play well with yum. You can still get yum from the 11.0 repo, but there are the below issues trying to get it to work with python 11.0 repo: http://download.opensuse.org/distribution/11.0/repo/oss/suse/i586/yum-3.2.14... Errors when installing as it needs Python < 2.4 and 2.6 is installed with Suse 11.1 I tried a later version of Yum (3.2.22), for RHEL 5.0 from Pbone, but it still required Python < 2.4 and had other dependency isssue as well. No problem, let's just have both Python 2.4 and 2.6 installed right? I downloaded Python and built Python 2.4 from http://www.python.org/download/releases/2.4.6/ ./configure ./make I normally try to run checkinstall to make an rpm rather than 'make install' - but this had a bug too, it just need a directory to be manually created. (What the heck is up with checkinstall having these issues lately?) mkdir -p /usr/local/lib/python2.4/config checkinstall You now have a Python 2.4 RPM - yeah! And it looks good: Callandor:~ # rpm -qpl Python-2.4.6-1.i386.rpm | less Callandor:~ # rpm -Uvh yum-3.2.14-15.1.i586.rpm error: Failed dependencies: python-gpgme is needed by yum-3.2.14-15.1.i586 python < 2.6 is needed by yum-3.2.14-15.1.i586 I installed python-gpgme which resolved that dependency and then just forced the install as Python 2.4 exists: rpm -ivh --nodeps yum-3.2.14-15.1.i586.rpm Callandor:~ #ln -s /usr/local/bin/python2.4 /usr/bin/python2.4 Callandor:~ # python -V Python 2.4.6 Callandor:~ # python2.6 -V Python 2.6 I edited /usr/bin/yum to specify using 2.4.6, which it is. However, yum is still not working with python: Callandor:~ # yum 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.4.6 (#1, Apr 25 2009, 08:25:54) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq I found this there, but honestly it is not too helpful http://wiki.linux.duke.edu/YumFaq#Q7 I tried importing yum in python, no errors but the same issue exists. Any suggestions on how to finish this off and get yum working on 11.1? Thanks! Pete Eby -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
peby@sagonet.com