- yum install ImageMagick
- yum install ImageMagick-devel
- pecl install imagick
ってやると失敗するので http://dqn.sakusakutto.jp/2010/08/phpimagick.html を参考に /usr/bin/php-config を以下のように直す
#! /bin/sh
prefix="/usr"
exec_prefix="/usr"
version="5.1.6"
vernum="50106"
includedir="/usr/include/php"
includes="-I$includedir -I$includedir/main -I$includedir/TSRM -I$includedir/Zend -I$includedir/ext"
ldflags=" -L/usr/kerberos/lib"
libs="-lcrypt -lcrypt -laspell -lpspell -lgmp -ldb-4.3 -lcurl -lbz2 -lz -lpcre -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lss$
extension_dir='/usr/lib/php/modules'
program_prefix=""
program_suffix=""
exe_extension=""
php_binary="/usr/bin/${program_prefix}php${program_suffix}${exe_extension}"
case "$1" in
--prefix)
echo $prefix;;
--includes)
echo $includes;;
--ldflags)
echo $ldflags;;
--libs)
echo $libs;;
--extension-dir)
echo $extension_dir;;
--include-dir)
echo $includedir;;
--php-binary)
echo $php_binary;;
--version)
echo $version;;
--vernum)
echo $vernum;;
*)
echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--include-dir|--php-binary|--version]"
exit 1;;
esac
exit 0
そんでもう一回
- pecl install imagkc
これでおっけー