質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.49%
Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

Q&A

解決済

1回答

389閲覧

OPcacheのインストールでエラー

yoshi7

総合スコア48

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

0グッド

1クリップ

投稿2019/04/22 02:43

Transaction check errorのエラーが発生しました。
衝突しているようですが、amazonの方は影響範囲がわからないので削除できません。
他に解決策はないでしょうか?

# yum -y install --disablerepo=* --enablerepo=epel,remi,remi-php71 php-opcache php-pecl-apcu Loaded plugins: priorities, update-motd, upgrade-helper 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 --> Running transaction check ---> Package php-common.x86_64 0:7.1.28-1.el6.remi will be installed --> Processing Dependency: php-json(x86-64) = 7.1.28-1.el6.remi for package: php-common-7.1.28-1.el6.remi.x86_64 --> Running transaction check ---> Package php-json.x86_64 0:7.1.28-1.el6.remi will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================================================================================ Installing: php-opcache x86_64 7.1.28-1.el6.remi remi-php71 227 k php-pecl-apcu x86_64 5.1.17-1.el6.remi.7.1 remi-php71 69 k Installing for dependencies: php-common x86_64 7.1.28-1.el6.remi remi-php71 1.0 M php-json x86_64 7.1.28-1.el6.remi remi-php71 59 k Transaction Summary ============================================================================================================================================================================================================ Install 2 Packages (+2 Dependent packages) Total size: 1.3 M Installed size: 8.9 M Downloading packages: Running transaction check Running transaction test Transaction check error: file /etc/php.d/20-bz2.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-bz2.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-calendar.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-calendar.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-ctype.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-ctype.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-curl.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-curl.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-exif.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-exif.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-fileinfo.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-fileinfo.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-ftp.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-ftp.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-gettext.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-gettext.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-iconv.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-iconv.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-phar.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-phar.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-sockets.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-sockets.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-tokenizer.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-tokenizer.ini from install of php-common-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.25-1.35.amzn1.x86_64 file /etc/php.d/20-json.ini from install of php-json-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-json-7.1.25-1.35.amzn1.x86_64 file /etc/php-zts.d/20-json.ini from install of php-json-7.1.28-1.el6.remi.x86_64 conflicts with file from package php71-json-7.1.25-1.35.amzn1.x86_64 Error Summary -------------

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

自己解決しました。
Amazon Linuxを使用しているので、
remiではなく、amzn-updatesとamzn-mainを使うのが正解のようです。

下記のコマンドでインストールできました。
sudo yum install php71-opcache
sudo yum install php71-pecl-apcu

投稿2019/04/22 05:12

yoshi7

総合スコア48

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.49%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問