Skip to content

Instantly share code, notes, and snippets.

@u-akihiro
Created December 22, 2016 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u-akihiro/7ab3b62b6736a2de0de5aad40785fcef to your computer and use it in GitHub Desktop.
Save u-akihiro/7ab3b62b6736a2de0de5aad40785fcef to your computer and use it in GitHub Desktop.

imagemagickを手動インストールする

imagemagickのダウンロード

imagemagickのソースコードはpeclから入手しておく。 stableで最新のバージョンをダウンロードするので問題なさそう。

pecl imagick

インストール

ImageMagick本体のインストール

yum install ImageMagick-devel.x86_64
wget https://pecl.php.net/get/imagick-3.4.1.tgz
tar zxf imagick-3.4.1.tgz
cd imagick-3.4.1
sudo phpize
sudo ./configure --with-imagick=/usr/lib64/php/modules
sudo make
sudo make test
sudo make install

php.iniへ追記

extension=imagick.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment