无法安装 php-fpm:依赖性问题

无法安装 php-fpm:依赖性问题

我正在尝试为我的 nginx 服务器安装 php-fpm。尝试通过 yum ( yum --enablerepo=remi install php-fpm php-mysql) 安装时,出现以下错误:

Error: Package: php-cli-5.4.24-1.el6.remi.x86_64 (remi)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: php-cli-5.4.24-1.el6.remi.x86_64 (remi)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: php-fpm-5.4.24-1.el6.remi.x86_64 (remi)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: php-fpm-5.4.24-1.el6.remi.x86_64 (remi)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: php-fpm-5.4.24-1.el6.remi.x86_64 (remi)
           Requires: libcrypto.so.10(OPENSSL_1.0.1)(64bit)
Error: Package: php-cli-5.4.24-1.el6.remi.x86_64 (remi)
           Requires: libcrypto.so.10(OPENSSL_1.0.1)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Linux 版本:Linux 版本 2.6.18-028stab107.1 (*****@rhel5-build-x64) (gcc 版本 4.1.2 20080704 (Red Hat 4.1.2-46))

提前致谢

- 编辑 -

当尝试使用 --skip-broken 时出现此错误:

Transaction Check Error:
  file /usr/lib64/mysql/libmysqlclient.so.16.0.0 from install of compat-mysql51-5.1.54-1.el6.remi.x86_64 conflicts with file from package mysql-libs-5.1.69-1.el6_4.x86_64
  file /usr/lib64/mysql/libmysqlclient_r.so.16.0.0 from install of compat-mysql51-5.1.54-1.el6.remi.x86_64 conflicts with file from package mysql-libs-5.1.69-1.el6_4.x86_64

尝试逃跑rpm -Va --nofiles --nodigest也没有帮助。

--更新:已解决--

因此,我--enablerepo=remi从命令中删除了它,它就起作用了。如果有人能在评论中解释一下它的--enablerepo=remi作用,我会很高兴,因为我在网上找到的设置 LAMP 环境的说明建议使用此命令来安装 php-fpm。

(遗憾的是我无法回答我自己的问题,因为我缺乏声誉)

相关内容