「Aws/ec2/php」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「 ==ec2サーバでphp5.4のphp-gdインストールしようとするとエラーとなる場合== $ sudo yum -y install php-gd.x86_64 --enablerepo=remi Error: Package:...」) |
|||
| 行7: | 行7: | ||
sudo yum install libjpeg-turbo --enablerepo=amzn-preview | sudo yum install libjpeg-turbo --enablerepo=amzn-preview | ||
sudo yum install php-gd.x86_64 --enablerepo=remi | sudo yum install php-gd.x86_64 --enablerepo=remi | ||
| + | |||
| + | ==ec2サーバでphp5.6のphp-opcache.x86_64に失敗する場合== | ||
| + | $ sudo yum install --enablerepo=remi,remi-php56 php-opcache.x86_64 | ||
| + | priority=1を[remi-php56]追加する | ||
| + | $ vi /etc/yum.repos.d/remi.repo | ||
| + | [remi-php56] | ||
| + | name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - $basearch | ||
| + | #baseurl=http://rpms.famillecollet.com/enterprise/6/php56/$basearch/ | ||
| + | mirrorlist=http://rpms.famillecollet.com/enterprise/6/php56/mirror | ||
| + | # WARNING: If you enable this repository, you must also enable "remi" | ||
| + | enabled=0 | ||
| + | priority=1 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi | ||
2015年6月22日 (月) 09:00時点における版
ec2サーバでphp5.4のphp-gdインストールしようとするとエラーとなる場合
$ sudo yum -y install php-gd.x86_64 --enablerepo=remi
Error: Package: php-gd-5.4.18-1.el6.remi.x86_64 (remi)
Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
sudo yum clean all
sudo yum install libjpeg-turbo --enablerepo=amzn-preview
sudo yum install php-gd.x86_64 --enablerepo=remi
ec2サーバでphp5.6のphp-opcache.x86_64に失敗する場合
$ sudo yum install --enablerepo=remi,remi-php56 php-opcache.x86_64
priority=1を[remi-php56]追加する
$ vi /etc/yum.repos.d/remi.repo [remi-php56] name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/php56/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/php56/mirror # WARNING: If you enable this repository, you must also enable "remi" enabled=0 priority=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
