CentOS6 安装PHP7.3 报错 centos6 requires: libmcrypt.so.4()(64bit)

报错内容
centos6_x86_64_bbr 用yum安装PHP73始终有问题。
报错提示centos6 requires: libmcrypt.so.4()(64bit)

Package: php-cli-7.3.7-3.el7.remi.x86_64 (remi-php73)            
Requires: libargon2.so.0()(64bit)

解决办法
第一种办法

yum clean all # 注意这一句一定要
yum install epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum --enablerepo=remi-php73 install php

第二种办法
安装那个缺少的扩展,可以在网站 https://centos.pkgs.org/7/remi-x86_64/php73-php-cli-7.3.7-3.el7.remi.x86_64.rpm.html 找到

rpm -Uvh http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libargon2-20161029-3.el7.x86_64.rpm

扩展安装

yum --enablerepo=remi-php73 install php-xml \
 php-soap php-xmlrpc php-mbstring \
 php-json php-gd php-mcrypt

https://tecadmin.net/nstall-php7-on-centos6/

你可能感兴趣的:(CentOS6 安装PHP7.3 报错 centos6 requires: libmcrypt.so.4()(64bit))