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

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

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

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

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

Q&A

1回答

1851閲覧

EC2でphp-gdをインストールしたいが、インストールできない

Shichi7

総合スコア35

PHP

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

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

0グッド

1クリップ

投稿2018/08/02 08:14

php7.1を入れています。php-gdをインストールしようとすると以下のエラーが出ます。よろしくお願いします。

[ec2-user@ip-xxx-xx-xx-xx ~]$ sudo yum --enablerepo=remi-php71 --disablerepo=amzn-main install php-gd Loaded plugins: priorities, update-motd, upgrade-helper 8 packages excluded due to repository priority protections Resolving Dependencies --> Running transaction check ---> Package php-gd.x86_64 0:7.1.20-1.el6.remi will be installed --> Processing Dependency: php-common(x86-64) = 7.1.20-1.el6.remi for package: php-gd-7.1.20-1.el6.remi.x86_64 --> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-7.1.20-1.el6.remi.x86_64 --> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-7.1.20-1.el6.remi.x86_64 --> Running transaction check ---> Package gd-last.x86_64 0:2.2.5-2.el6.remi will be installed ---> Package php-common.x86_64 0:7.1.20-1.el6.remi will be installed --> Processing Dependency: php-json(x86-64) = 7.1.20-1.el6.remi for package: php-common-7.1.20-1.el6.remi.x86_64 --> Running transaction check ---> Package php-json.x86_64 0:7.1.20-1.el6.remi will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================================================================================================================== Installing: php-gd x86_64 7.1.20-1.el6.remi remi-php71 71 k Installing for dependencies: gd-last x86_64 2.2.5-2.el6.remi remi-safe 128 k php-common x86_64 7.1.20-1.el6.remi remi-php71 1.0 M php-json x86_64 7.1.20-1.el6.remi remi-php71 57 k Transaction Summary ============================================================================================================================================================================================================================================== Install 1 Package (+3 Dependent packages) Total size: 1.2 M Installed size: 8.5 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction check error: file /etc/php.d/20-json.ini from install of php-json-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-json-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-json.ini from install of php-json-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-json-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-bz2.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-bz2.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-calendar.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-calendar.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-ctype.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-ctype.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-curl.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-curl.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-exif.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-exif.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-fileinfo.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-fileinfo.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-ftp.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-ftp.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-gettext.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-gettext.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-iconv.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-iconv.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-phar.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-phar.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-sockets.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-sockets.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php.d/20-tokenizer.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 file /etc/php-zts.d/20-tokenizer.ini from install of php-common-7.1.20-1.el6.remi.x86_64 conflicts with file from package php71-common-7.1.17-1.32.amzn1.x86_64 Error Summary -------------

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

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

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

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

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

guest

回答1

0

すでにインストールされているものが amzn1 レポジトリからインストールしているんだから、

bash

1$ sudo yum --enablerepo=amzn1 --disablerepo=amzn-main install php-gd

でインストールできるのでは?

投稿2018/08/02 08:24

退会済みユーザー

退会済みユーザー

総合スコア0

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問