Help - Search - Members - Calendar
Full Version: PHP imagick
The Planet Forums > Control Panels > Ensim > Ensim HOWTOs
AdamS
I've created this how-to for those like me who may have scripts that require the imagick extension in PHP.

I use Gpan's PHP RPMS. Those of you who use them know he no longer includes imagick.

Installing is very simple, we will compile imagick from source. The binary phpize is required to build from source, if you do not have it, simply install php-devel RPM from your repository.

If you update php, you will probably need to re-compile this module.

Here goes:

CODE
wget [url="http://pecl.php.net/get/imagick-0.9.11.tgz"]http://pecl.php.net/get/imagick-0.9.11.tgz[/url]



tar -zxvf imagick-0.9.11.tgz



cd imagick-0.9.11



phpize



./configure --with-imagick



make



make install


Add the following line to your php.ini (remember to make a backup!)

CODE
extension=imagick.so


Restart Apache and your done!

Tested with PHP 5.0.4 with ImageMagick 5.5.6
ElfinStrider
very nice... good job mate.
angryadmin
Got as far as: phpize

Server said: -bash: phpize: command not found
scooterh
I believe you need to install php-devel
angryadmin
Ok, installed PHP-dev no prob, but when following above I got the following after running the config command:

checking for ImageMagick in default path... not found
configure: error: Please reinstall the ImageMagick distribution -
magick.h should be in /include/magick/

Thanks in advance,
NH
AdamS
Do you have ImageMagick installed?

Type:

whereis ImageMagick

If it returns a path, in the configure command, type this:

./configure --with-imagick=/path/to/ImageMagick

If it does not return a path, check to see if its installed (via RPM)

rpm -q ImageMagick

If nothing is returned, you need to install that first.
fbnewtz
I am having the same problem as the previous poster.

whereis ImageMagick returns:
/usr/share/ImageMagick

running ./configure --with-imagick=/usr/share/ImageMagick returns:

configure: error: Please reinstall the ImageMagick distribution -
magick.h should be in /include/magick/

rpm -q ImageMagick returns:
ImageMagick-5.5.6-18

Is there a source package available for ImageMagick?

Thanks,

Fred
fbnewtz
I sovled my above problem by installing the ImageMagick-devel package with:

up2date ImageMagick-devel
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.