我试图更新我的stream浪者使用PHP 5.6,我基本上是在命令行上执行以下过程。
前两个步骤似乎很好,但是在做'安装过程'的最后一步,我得到以下错误:
Error: php56w-common conflicts with php-common-5.3.3-46.el6_6.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
我需要上面所有与PHP 5.6兼容的模块,任何人都可以build议我下一步应该做的工作?
你应该做
sudo yum install php56w php56w-common …
代替
sudo yum install php php-common ,…
使用remi仓库,你需要启用与想要的版本匹配的仓库,所以对于5.6:
yum-config-manager --enable remi-php56
然后使用通常的yum命令。
干杯家伙 – 我已经find了解决scheme之前,我阅读您的post,所以用这个方法从这个网站
https://www.mojowill.com/geek/howto-install-php-5-4-5-5-or-5-6-on-centos-6-and-centos-7/
简而言之,我做了以下几点:
CentOS 6安装
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
启用回购修改/etc/yum.repos.d/remi.repo文件
[remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
然后在同一个文件中有一个php56的部分,我将启用的标志从0设置为1,瞧! 下一次我运行yumo install命令,所有这一切都没有任何错误。
例如
sudo yum install php php-gd php-mysql php-mcrypt