豆包ko 发表于 2017-3-28 15:21:55

without sudo;install imagemagick and php extension

without sudo; install imagemagick

cd ImageMagick-6.6.3-10/
./configure --prefix=~/imagemagick --disable-openmp
make;
make install;

cd imagick-3.1.0RC1/
/path/to/your/phpize
./configure --with-php-config=/path/to/your/php-config --with-imagick=~/imagemagick
make
make install

ps:
In my ubuntu server 11.10,when install php extention for ImageMagick-6.7.4-0.tar.gz, an error occur:
fatal error: wand/MagickWand.h: No such file or directory
to fix this , install pkg-config first.
页: [1]
查看完整版本: without sudo;install imagemagick and php extension