百胜php 7.2安装依赖错误(Centos 6)

时间:2019-04-24 07:32:31

标签: php centos dependencies php-7 yum

我正在运行Centos 6,并试图将我们的PHP版本从5.4更新到7.2。

到目前为止,我已经按照一些指南的指示安装了Remi和EPEL存储库。

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm

那我就跑了

yum install yum-utils
yum-config-manager --enable remi-php72
yum update -y

我还尝试了yum --enablerepo=remi-php72 install php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt

这样的不同变体

当我尝试运行此程序时,却出现以下错误

  

错误:软件包:gd-last-2.2.5-5.el6.remi.x86_64(远程安全)              需要:libfontconfig.so.1()(64bit)您可以尝试使用--skip-broken解决此问题,您可以尝试运行:rpm -Va --nofiles --nodigest

我尝试查找是否可以安装libfontconfig.so.1并发现了这一点:

yum install fontconfig freetype freetype-devel fontconfig-devel libstdc++

但是这还是不起作用,因为它只返回了

No package fontconfig available. 
No package freetype-devel available.
No package fontconfig-devel available.

此外,我还尝试按照错误代码的建议运行yum update -y --skip-broken。当运行此我没有任何错误。但是,似乎仍未安装新的PHP版本,并且我收到一条通知,说以下软件包已跳过

gd-last-2.2.5-5.el6.remi.x86_64 from remi-safe
libargon2-20161029-7.el6.remi.x86_64 from remi-safe
libwebp-0.4.3-3.el6.x86_64 from epel
php-7.2.17-1.el6.remi.x86_64 from remi-php72
php-cli-7.2.17-1.el6.remi.x86_64 from remi-php72
php-common-7.2.16-1.el6.remi.x86_64 from remi-php72
php-common-7.2.17-1.el6.remi.x86_64 from remi-php72
php-gd-7.2.17-1.el6.remi.x86_64 from remi-php72
php-json-7.2.17-1.el6.remi.x86_64 from remi-php72
php-ldap-7.2.17-1.el6.remi.x86_64 from remi-php72
php-mbstring-7.2.17-1.el6.remi.x86_64 from remi-php72
php-mysqlnd-7.2.17-1.el6.remi.x86_64 from remi-php72
php-pdo-7.2.17-1.el6.remi.x86_64 from remi-php72
php-pecl-apcu-5.1.16-1.el6.remi.7.2.x86_64 from remi-php72
php-pecl-apcu-5.1.17-1.el6.remi.7.2.x86_64 from remi-php72
php-pecl-apcu-bc-1.0.5-1.el6.remi.7.2.x86_64 from remi-php72
php-pecl-mcrypt-1.0.2-2.el6.remi.7.2.x86_64 from remi-php72
php-soap-7.2.17-1.el6.remi.x86_64 from remi-php72
php-xml-7.2.17-1.el6.remi.x86_64 from remi-php72
php-xmlrpc-7.2.17-1.el6.remi.x86_64 from remi-php72

我觉得自己有点不了解,并且希望能对此提供帮助。

修改

我决定从头开始,将服务器还原到以前的备份,并按照此处的指南进行操作:https://tecadmin.net/nstall-php7-on-centos6/,这似乎已经解决了我的问题。

0 个答案:

没有答案