installing imagick with the latest version of ImageMagick
Posted: 2013-03-01T11:51:09-07:00
Hello,
I ran into something and I thought I might share it here. I installed the latest version of ImageMagick-6.8.3-6 on my Centos 6.3 server from an RPM I made from source. I also installed the ImageMagick-devel-6.8.3-6 as well because this is needed for imagick to install.
Next, I run the command "pecl install imagick" (as I always do) and this time I get an error: checking for MagickWand h header file configure error Cannot locate header file MagickWand h imagick
I thought that was strange so I searched for the file:
find / -name MagickWand.h
/usr/include/ImageMagick-6.8/wand/MagickWand.h
I dug a bit more into the installation files of imagick and found a check to see if it could find the MagickWand.h file and if it doesn't it's instructed to fail the installation. The check is looking for: $WAND_DIR/include/ImageMagick/wand/
My $WAND_DIR is /usr in my case but I noticed that the installation name of the newer version of ImageMagick now contain the version number in it (starting somewhere with version 6.8.0). imagick has it hard coded in their installation as $WAND_DIR/include/ImageMagick/wand/.
Does anyone know what the best way to fix this problem? I know someone else manages the installation of imagick but is there away to install ImageMagick into a folder without the version number on it so the pecl install imagick will find it properly?
Let me know your thoughts.
-John Baranowski
I ran into something and I thought I might share it here. I installed the latest version of ImageMagick-6.8.3-6 on my Centos 6.3 server from an RPM I made from source. I also installed the ImageMagick-devel-6.8.3-6 as well because this is needed for imagick to install.
Next, I run the command "pecl install imagick" (as I always do) and this time I get an error: checking for MagickWand h header file configure error Cannot locate header file MagickWand h imagick
I thought that was strange so I searched for the file:
find / -name MagickWand.h
/usr/include/ImageMagick-6.8/wand/MagickWand.h
I dug a bit more into the installation files of imagick and found a check to see if it could find the MagickWand.h file and if it doesn't it's instructed to fail the installation. The check is looking for: $WAND_DIR/include/ImageMagick/wand/
My $WAND_DIR is /usr in my case but I noticed that the installation name of the newer version of ImageMagick now contain the version number in it (starting somewhere with version 6.8.0). imagick has it hard coded in their installation as $WAND_DIR/include/ImageMagick/wand/.
Does anyone know what the best way to fix this problem? I know someone else manages the installation of imagick but is there away to install ImageMagick into a folder without the version number on it so the pecl install imagick will find it properly?
Let me know your thoughts.
-John Baranowski