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.

你可能感兴趣的:(ImageMagick)