环境 阿里云centos7
php7.2
错误信息:
命令:
yum install php-bcmath
Error: php72w-common conflicts with php-common-5.4.16-46.el7.x86_64
解决方法:
要用指定PHP版本安装,比如上面报错的是:php72w,那么你就需要执行
php72w-bcmath
完整命令:
yum install php72w-bcmath
安装成功!