在 Centos 7 上为 Facebook php sdk 安装 php-mbstring
installing php-mbstring for Facebook php sdk on Centos 7
我有运行这个命令
sudo yum install 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?
- 您已经从自定义存储库安装了 PHP 7 [phpw70]。 [网络统计]
您正在尝试从 CentOS 基础安装 5.4 软件包 [php-mbstring],因此:
Error: php70w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
这正是为什么所有 [体面的] 自定义存储库都使用 non-standard 包名称,以免与基础冲突并安装随机、冲突的版本。
yum list php70w*
- 找到你想要的包裹。
yum install $package
我有运行这个命令
sudo yum install 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?
- 您已经从自定义存储库安装了 PHP 7 [phpw70]。 [网络统计]
您正在尝试从 CentOS 基础安装 5.4 软件包 [php-mbstring],因此:
Error: php70w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
这正是为什么所有 [体面的] 自定义存储库都使用 non-standard 包名称,以免与基础冲突并安装随机、冲突的版本。
yum list php70w*
- 找到你想要的包裹。
yum install $package