OPcacheを導入したいのですが、インストールでエラーが発生して先に進みません。
yum -y install --enablerepo=epel,remi,remi-php71 php-opcache php-pecl-apcu
上記実行すると下記のエラーが出ます。何をしたらよいのでしょうか?
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
1416 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-opcache.x86_64 0:7.1.28-1.el6.remi will be installed
--> Processing Dependency: php-common(x86-64) = 7.1.28-1.el6.remi for package: php-opcache-7.1.28-1.el6.remi.x86_64
---> Package php-pecl-apcu.x86_64 0:5.1.17-1.el6.remi.7.1 will be installed
--> Finished Dependency Resolution
Error: Package: php-opcache-7.1.28-1.el6.remi.x86_64 (remi-php71)
Requires: php-common(x86-64) = 7.1.28-1.el6.remi
Available: php-common-5.3.29-1.8.amzn1.x86_64 (amzn-main)
php-common(x86-64) = 5.3.29-1.8.amzn1
Available: php54-common-5.4.45-1.75.amzn1.x86_64 (amzn-main)
php-common(x86-64) = 5.4.45-1.75.amzn1
Available: php55-common-5.5.38-2.119.amzn1.x86_64 (amzn-main)
php-common(x86-64) = 5.5.38-2.119.amzn1
Available: php56-common-5.6.35-1.137.amzn1.x86_64 (amzn-main)
php-common(x86-64) = 5.6.35-1.137.amzn1
Available: php56-common-5.6.36-1.138.amzn1.x86_64 (amzn-updates)
php-common(x86-64) = 5.6.36-1.138.amzn1
Available: php56-common-5.6.37-1.139.amzn1.x86_64 (amzn-updates)
php-common(x86-64) = 5.6.37-1.139.amzn1
Available: php56-common-5.6.38-1.140.amzn1.x86_64 (amzn-updates)
php-common(x86-64) = 5.6.38-1.140.amzn1
Available: php56-common-5.6.39-1.141.amzn1.x86_64 (amzn-updates)
php-common(x86-64) = 5.6.39-1.141.amzn1
Available: php56-common-5.6.40-1.142.amzn1.x86_64 (amzn-updates)
php-common(x86-64) = 5.6.40-1.142.amzn1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
追記です
OS:Amazon Linux AMI release 2017.09
PHP:PHP 7.1.25
# yum repolist
Loaded plugins: priorities, update-motd, upgrade-helper
92 packages excluded due to repository priority protections
repo id repo name status
!amzn-main/latest amzn-main-Base 5,934
!amzn-updates/latest amzn-updates-Base 2,097
remi-php71 Remi's PHP 7.1 RPM repository for Enterprise Linux 6 - x86_64 307+76
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - x86_64 2,793+16
repolist: 11,131
yum repolist
の実行結果を質問文に追記してみてください (質問は後からでも [編集] できます)。