腰痛が再発してくしゃみをするとビリンッて痛い。
これってヘルニアかな。
-------------------------------------
ImageMagaickのインストール。
http://www.imagemagick.org/script/download.php
tar.zipを落として解凍してインストールしようとしたらエラー
# phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
# /usr/bin/phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
# pecl install imagick
downloading imagick-2.2.2.tgz ...
Starting to download imagick-2.2.2.tgz (77,212 bytes)
..................done: 77,212 bytes
11 source files, building
〜略〜
aclocal.m4:4612: _LT_AC_TAGCONFIG is expanded from...
ERROR: `phpize' failed
どうやらphpizeがキーのようだ
php-develをいれるとついてくるという情報が結構あるが、php4用のようだし、そもそもphpizeは入ってる。
# yum list | grep php
php-devel.x86_64 4.3.9-3.22.12 installed
なので、config.m4.がないのが問題なのかな。
再度解凍してみたりGoogle先生に聞いてみたりしたけど、似たような話しか出てこない。。
試しに、http://pecl.php.net/package/imagickから最新版をDL→解凍してみた。
そしたら、、、
「config.m4」発見!!
# phpize
# ./configure
# make
# make install
であっさり解決。
あとはphp.iniに
・extension_dir=/インストールされたディレクトリ/
・extension=imagick.so
を追加してapache再起動。
phpinfoを見てみると、imagickの項が追加されてた!
実に2日間の作業。
お疲れ、オレ。
0 件のコメント:
コメントを投稿