C5-testing這個repo的php版本更新好慢,想試試較新版本的php得換別隻repo了。
for i386:
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
yum --enablerepo=remi update php php-*
for x86_64:
wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
yum --enablerepo=remi update php php-*
如果在x64的環境下更新PHP跟MySQL的時候,遇到如下的錯誤訊息:
file /etc/my.cnf from install of mysql-libs-5.5.21-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.77-3.el5.i386
那是因為i386版的mysql也被裝到系統裡面了,所以影響了yum的更新,解決方法如下:
yum remove mysql-5.0.77-3.el5.i386
看你錯誤訊息的package name是啥,就跟著輸入,讓yum把i386版的移除後,就沒問題了。
參考文章:http://www.andresmontalban.com/update-centos-5-php-5-1-to-php-5-3/
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言