我尝试在 amazon linux 上安装 php55-fpm,但存在与 php-common 的软件包冲突。如何解决此问题?
[ec2-user@ip-10-0-12-54 ~]$ sudo yum install php55-fpm
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package php55-fpm.x86_64 0:5.5.7-1.61.amzn1 will be installed
--> Processing Dependency: php55-common(x86-64) = 5.5.7-1.61.amzn1 for package: php55-fpm-5.5.7-1.61.amzn1.x86_64
--> Running transaction check
---> Package php55-common.x86_64 0:5.5.7-1.61.amzn1 will be installed
--> Processing Dependency: php55-pecl-jsonc(x86-64) for package: php55-common-5.5.7-1.61.amzn1.x86_64
--> Processing Dependency: libzip.so.2()(64bit) for package: php55-common-5.5.7-1.61.amzn1.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-1.3.amzn1 will be installed
---> Package php55-pecl-jsonc.x86_64 0:1.3.2-1.9.amzn1 will be installed
--> Processing Dependency: /usr/bin/pecl for package: php55-pecl-jsonc-1.3.2-1.9.amzn1.x86_64
--> Processing Dependency: libjson-c.so.2()(64bit) for package: php55-pecl-jsonc-1.3.2-1.9.amzn1.x86_64
--> Running transaction check
---> Package json-c.x86_64 0:0.11-4.5.amzn1 will be installed
---> Package php-pear.noarch 1:1.9.4-20.15.amzn1 will be installed
--> Processing Dependency: php-cli for package: 1:php-pear-1.9.4-20.15.amzn1.noarch
--> Processing Dependency: php-posix for package: 1:php-pear-1.9.4-20.15.amzn1.noarch
--> Processing Dependency: php-xml for package: 1:php-pear-1.9.4-20.15.amzn1.noarch
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.28-1.2.amzn1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.28-1.2.amzn1 for package: php-cli-5.3.28-1.2.amzn1.x86_64
---> Package php-process.x86_64 0:5.3.28-1.2.amzn1 will be installed
---> Package php-xml.x86_64 0:5.3.28-1.2.amzn1 will be installed
--> Running transaction check
---> Package php-common.x86_64 0:5.3.28-1.2.amzn1 will be installed
--> Processing Conflict: php55-common-5.5.7-1.61.amzn1.x86_64 conflicts php-common < 5.5.7-1.61.amzn1
--> Finished Dependency Resolution
Error: php55-common conflicts with php-common-5.3.28-1.2.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[ec2-user@ip-10-0-12-54 ~]$ cat /etc/issue
Amazon Linux AMI release 2013.09
Kernel \r on an \m
这是新的 Amazon Linux 机器。根本没有 php。
谢谢
答案1
好的,在这里我们看到依赖项试图引入php-pear
,它依赖于php-common
,这是错误的版本;我希望在这里引入php55-common
,以及可能的包。php55-pear
这不是你能真正解决的问题;你尝试安装的存储库中有损坏的软件包。(不幸的是,这种质量低劣的软件包在 Amazon Linux 中非常常见,这也是我不建议使用它的原因之一。)你需要联系 Amazon,或者更好的是,使用 Amazon Linux 以外的任何产品。