我正在运行centos 6,我试图:
yum install php-bcmath,我收到此错误:
yum install php-bcmath
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.checkdomain.de
* epel: mirror.de.leaseweb.net
* extras: mirror.checkdomain.de
* rpmforge: mirror.de.leaseweb.net
* updates: mirror.checkdomain.de
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.3.3-22.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-22.el6 for package: php-bcmath-5.3.3-22.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-bcmath-5.3.3-22.el6.x86_64 (base)
Requires: php-common(x86-64) = 5.3.3-22.el6
Installed: php-common-5.4.9-1.el6.remi.x86_64 (@remi-test)
php-common(x86-64) = 5.4.9-1.el6.remi
Available: php-common-5.3.3-22.el6.x86_64 (base)
php-common(x86-64) = 5.3.3-22.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Run Code Online (Sandbox Code Playgroud)
请帮忙,
谢谢
小智 5
我发现问题来自新的PHP版本(5.4,5.4),它安装在一个单独的仓库中.
所以,我们只需要使用命令在主repo(版本5.3)中安装php-bcmath:
yum install php-bcmath --enablerepo=remi
Run Code Online (Sandbox Code Playgroud)
"remi"是主要的回购,您可以通过转到/etc/yum.repos.d然后使用ll看到它
| 归档时间: |
|
| 查看次数: |
13751 次 |
| 最近记录: |