我试图在CentOS 6上安装php-posix,没有运气:
$ yum install php-posix
获取以下错误:
Loaded plugins: downloadonly, fastestmirror Loading mirror speeds from cached hostfile * base: ftp.nluug.nl * epel: nl.mirror.eurid.eu * extras: ftp.nluug.nl * updates: ftp.nluug.nl Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-process.x86_64 0:5.3.3-27.el6_5 will be installed --> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-process-5.3.3-27.el6_5.x86_64 --> Finished Dependency Resolution Error: Package: php-process-5.3.3-27.el6_5.x86_64 (updates) Requires: php-common(x86-64) = 5.3.3-27.el6_5 Installed: php-common-5.4.30-1.el6.remi.x86_64 (@remi) php-common(x86-64) = 5.4.30-1.el6.remi Available: php-common-5.3.3-26.el6.x86_64 (base) php-common(x86-64) = 5.3.3-26.el6 Available: php-common-5.3.3-27.el6_5.x86_64 (updates) php-common(x86-64) = 5.3.3-27.el6_5 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
看起来我需要降级php-common ?
这真的是必要的,我会怎么做?
您已经从remi存储库安装了PHP。
现在您还需要从此存储库安装其他包,如下所示:
yum install php-posix --enablerepo=remi
另一种安装posix扩展的方法是通过webtatic回购。
运行以下命令来安装回购:
sudo rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
和这个命令来安装扩展名:
sudo yum install php55w-process
重要的提示:
正如@faker在他的回复中所述,只有当php-common (命名为php55w-common )通过webtatic回购安装, webtatic php55w-process依赖它才能工作。
在评论中询问是否需要帮助。