在 Centos 7 上为 Facebook PHP SDK 安装 php-mbstring


installing php-mbstring for Facebook php sdk on Centos 7

我已经运行了这个命令

须藤百胜安装 php-mbstring

但我收到此错误

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.tripadvisor.com
 * epel: mirror.cogentco.com
 * extras: mirror.solarvps.com
 * remi-safe: mirrors.mediatemple.net
 * updates: mirror.solarvps.com
 * webtatic: us-east.repo.webtatic.com
No package php-mbstringyum available.
No package install available.
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-mbstring-5.4.16-36.el7_1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Conflict: php70w-common-7.0.2-1.w7.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php70w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我应该怎么做来修复和安装 php-mbstring ?

  1. 您已经从自定义存储库安装了 PHP 7 [phpw70]。[网络]
  2. 你正在尝试从 CentOS 基础安装一个 5.4 软件包 [php-mbstring],所以:

    Error: php70w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
    

这正是所有[体面]自定义存储库都使用非标准包名称的原因,以免与基本版本冲突并安装随机冲突的版本。

  1. yum list php70w*
  2. 找到您想要的包。
  3. yum install $package