我无法安装 php-bcmath,yum install php-bcmath
因为收到此错误消息
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.netonboard.com
* epel: mirror.vorboss.net
* extras: centos.netonboard.com
* updates: centos.netonboard.com
* webtatic: sp.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.4.16-45.el7 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-45.el7 for package: php-bcmath-5.4.16-45.el7.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-45.el7 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-45.el7.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Processing Conflict: php71w-common-7.1.22-1.w7.x86_64 conflicts php-common < 7.1
--> Finished Dependency Resolution
Error: php71w-common conflicts with php-common-5.4.16-45.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
如何php-common-5.4.16-45.el7.x86_64
从我的 Centos 7 中完全删除?我的项目使用的是 laravel 5。请提供建议。谢谢。
答案1
安装php71w-bcmath
而不是php-bcmath
。php-bcmath
属于 PHP 5,而您似乎正在使用 PHP 7.1。