今天在本地运行同事的项目时发现报错。UncaughtError:Calltoundefinedfunctionbcdiv()原因是本地php环境没有开启BamathExtension,所以我直接使用命令[root@k8s-master/]#yuminstallphp-bcmath报错如下报错:php72w-commonconflictswithphp-common-5.4.16-48.el7.x86_64解决方法是安装epel+Remi两个源,Remi仓库是一个Linux源,包含最新版本的PHP和MySQL包,维护雷米。yuminstallepel-release.noarch//安装remi的centos7源rpm-ivhhttp://rpms.famillecollet.com/enterprise/remi-release-7.rpm//安装后需要修改这个remi源,使之生效,我用的是7.2版本的vi/etc/yum.repos.d/remi-php72把enabled=0改成enabled=1,执行[root@k8s-master/]#yuminstallphp-bcmath
