我想将PHP版本5.3更新到7.2。但这不会更新。他给我一些错误。错误:httpd24-tools与httpd-tools-2.2.34-1.16.amzn1.x86_64冲突错误:php70-cli与php-cli-5.3.29-1.8.amzn1.x86_64冲突错误:httpd24与httpd-2.2.34冲突-1.16.amzn1.x86_64错误:mysql56-server与mysql55-server-5.5.60-1.21.amzn1.x86_64错误:php70-常见冲突与php-common-5.3.29-1.8.amzn1.x86_64错误:perl- DBD-MySQL56与perl-DBD-MySQL55-4.023-5.23.amzn1.x86_64冲突:mysql56-server与mysql-server-5.5-1.6.amzn1.noarch错误:php70与php-5.3.29-1.8.amzn1冲突.x86_64
答案 0 :(得分:0)
在安装新版本之前,请删除已安装的旧版本。
例如,如果您拥有yum软件包管理器:
sudo yum remove httpd-tools-2.2.34-1.16.amzn1.x86_64 httpd-2.2.34-1.16.amzn1.x86_64 php-cli-5.3.29-1.8.amzn1.x86_64 php-common-5.3.29-1.8.amzn1.x86_64 mysql55-server-5.5.60-1.21.amzn1.x86_64 perl-DBD-MySQL55-4.023-5.23.amzn1.x86_64 mysql-server-5.5-1.6.amzn1.noarch php-5.3.29-1.8.amzn1.x86_64