2

このコマンドを実行しました

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 を修正してインストールするにはどうすればよいですか?

4

1 に答える 1

2
  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
于 2016-01-26T23:53:24.787 に答える