我最近注册了VPS,并试图更新安装在其上的PHP版本。 我习惯于Ubuntu而不是Redhat,所以我需要一些关于如何解决这个问题的build议。
百胜似乎有点噩梦,我已经尝试安装它,但在各个点得到错误信息或死链接,并没有发现任何东西附近最近的教程在线。
当我运行rpm -q yum我得到了yum-3.2.22-26.el5.centos所以我认为在某种程度上我的安装是成功的,但是当我运行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.1 (r271:86832, Mar 6 2011, 09:56:34) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq`
常见问题解答似乎没有任何工作。 任何想法是怎么回事?
你的问题是你升级了系统python。 百胜有很多python模块,你打破了升级python。
这是说你有2.7版本安装,但没有红帽5有2.4。
你需要为python2.7安装一个有效的rpm版本,它不会终止2.4的安装
你已经replace了安装yum的系统Python。 通过HTTP获取python包并使用rpm来安装它。