title: imagick installation issues on the lion
body: <p>Currently i'm having issues with installing imagick correctly on the mac lion with MAMP.</p>
  
  <p>I have ImageMagick-6.7.3 successfully installed.  I've tested out the calls on command line.  Note: The bin folder of the ImageMagick-6.7.3 has Magick-config, MagickWand-config, and Wand-config</p>
  
  <p>I'm trying to install imagick-3.2.0RC1 which "Provides a wrapper to the ImageMagick library."  However, this is where I have the problem.  Without this installed, My php script won't execute and won't' know what how to use Imagick is.</p>
  
  <p>I've tried 
  1) sudo pecl install magick</p>
  
  <p>output:</p>
  
  <pre><code>downloading imagick-3.0.1.tgz ...
  Starting to download imagick-3.0.1.tgz (93,920 bytes)
  .....................done: 93,920 bytes
  13 source files, building
  running: phpize
  Configuring for:
  PHP Api Version:         20090626
  Zend Module Api No:      20090626
  Zend Extension Api No:   220090626
  Please provide the prefix of Imagemagick installation [autodetect] : 
  building in /private/tmp/pear/temp/pear-build-rootEzaTTE/imagick-3.0.1
  running: /private/tmp/pear/temp/imagick/configure --with-imagick
  checking for grep that handles long lines and -e... /usr/bin/grep
  checking for egrep... /usr/bin/grep -E
  checking for a sed that does not truncate output... /usr/bin/sed
  checking for cc... cc
  checking for C compiler default output file name... a.out
  checking whether the C compiler works... yes
  checking whether we are cross compiling... no
  checking for suffix of executables...
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether cc accepts -g... yes
  checking for cc option to accept ISO C89... none needed
  checking how to run the C preprocessor... cc -E
  checking for icc... no
  checking for suncc... no
  checking whether cc understands -c and -o together... yes
  checking for system library directory... lib
  checking if compiler supports -R... no
  checking if compiler supports -Wl,-rpath,... yes
  checking build system type... i386-apple-darwin11.2.0
  checking host system type... i386-apple-darwin11.2.0
  checking target system type... i386-apple-darwin11.2.0
  checking for PHP prefix... /usr
  checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
  checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20090626
  checking for PHP installed headers prefix... /usr/include/php
  checking if debug is enabled... no
  checking if zts is enabled... no
  checking for re2c... no
  configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
  checking for gawk... no
  checking for nawk... no
  checking for awk... awk
  checking if awk is broken... no
  checking whether to enable the imagick extension... yes, shared
  checking whether to enable the imagick GraphicsMagick backend... no
  checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
  ERROR: `/private/tmp/pear/temp/imagick/configure --with-imagick' failed
  </code></pre>
  
  <p>As you can see, it complains about not finding the MagickWand-config.</p>
  
  <p>However, I'm pretty sure the path to the MagickWand-config is correct.  I opened a terminal and typed </p>
  
  <pre><code>acBook-Pro:imagick-3.1.0RC1 $ Wand-config --version
  6.7.3 Q16 
  </code></pre>
  
  <p>If it wasn't set the the environmental path then that should have never worked.</p>
  
  <p>I also printed out the $PATH:</p>
  
  <pre><code>-bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/MAMP/Library/bin:/Users/darewreck/Downloads/MAMP_components_2.0.2/mysql-5.5.9/include:/Applications/ImageMagick-6.7.3/bin:/usr/X11/bin: No such file or directory
  </code></pre>
  
  <p>Update:
  I installed homebrew and was able to do the following:</p>
  
  <pre><code>brew install imagemagick
  </code></pre>
  
  <p>This allowed me to call "pecl install imagick" successfully.</p>
  
  <p>The issue i get next is when i call make:</p>
  
  <pre><code>-MacBook-Pro:imagick-2.2.2 darewreck$ make
  /bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c -o imagick_class.lo 
  mkdir .libs
   cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c  -fno-common -DPIC -o .libs/imagick_class.o
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimagematte’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:262: warning: ‘MagickGetImageMatte’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:82)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_paintfloodfillimage’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:1035: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:101)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:1038: warning: ‘MagickPaintFloodfillImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:101)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_clippathimage’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2319: warning: ‘MagickClipPathImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:74)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_colorfloodfillimage’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2382: warning: ‘MagickColorFloodfillImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:77)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_mapimage’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2772: warning: ‘MagickMapImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:87)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_mattefloodfillimage’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2805: warning: ‘MagickMatteFloodfillImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:90)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_medianfilterimage’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2832: warning: ‘MagickMedianFilterImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/magick-image.h:212)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_paintopaqueimage’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2895: warning: ‘MagickPaintOpaqueImageChannel’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:106)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_painttransparentimage’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:2954: warning: ‘MagickPaintTransparentImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:108)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_reducenoiseimage’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:3097: warning: ‘MagickReduceNoiseImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/magick-image.h:260)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimageattribute’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:4080: warning: ‘MagickGetImageAttribute’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:60)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimagechannelextrema’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:4253: warning: ‘MagickGetImageChannelExtrema’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:79)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimageextrema’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:4482: warning: ‘MagickGetImageExtrema’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:81)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimageindex’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5196: warning: ‘MagickGetImageIndex’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:65)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_setimageindex’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5221: warning: ‘MagickSetImageIndex’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:114)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_getimagesize’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5291: warning: ‘MagickGetImageSize’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:140)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_setimageattribute’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5599: warning: ‘MagickSetImageAttribute’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:112)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_flattenimages’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:5839: warning: ‘MagickFlattenImages’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:132)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_averageimages’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:6859: warning: ‘MagickAverageImages’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:131)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c: In function ‘zim_imagick_mosaicimages’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_class.c:7283: warning: ‘MagickMosaicImages’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:135)
  /bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c -o imagickdraw_class.lo 
   cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c  -fno-common -DPIC -o .libs/imagickdraw_class.o
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c: In function ‘zim_imagickdraw_setfillalpha’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c:253: warning: ‘DrawSetFillAlpha’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:167)
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c: In function ‘zim_imagickdraw_setstrokealpha’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickdraw_class.c:313: warning: ‘DrawSetStrokeAlpha’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick/wand/deprecate.h:168)
  /bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickpixel_class.c -o imagickpixel_class.lo 
   cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickpixel_class.c  -fno-common -DPIC -o .libs/imagickpixel_class.o
  /bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo 
   cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagickpixeliterator_class.c  -fno-common -DPIC -o .libs/imagickpixeliterator_class.o
  /bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c -o imagick_helpers.lo 
   cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c  -fno-common -DPIC -o .libs/imagick_helpers.o
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c: In function ‘php_imagick_progress_monitor’:
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c:44: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘MagickOffsetType’
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c:44: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘MagickSizeType’
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c:44: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘MagickOffsetType’
  /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick_helpers.c:44: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘MagickSizeType’
  /bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=compile cc  -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick.c -o imagick.lo 
   cc -I. -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/imagick.c  -fno-common -DPIC -o .libs/imagick.o
  /bin/sh /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/libtool --mode=link cc -DPHP_ATOM_INC -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/include -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/main -I/Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -o imagick.la -export-dynamic -avoid-version -prefer-pic -module -rpath /Users/darewreck/Downloads/imagick-2.2.2/imagick-2.2.2/modules  imagick_class.lo imagickdraw_class.lo imagickpixel_class.lo imagickpixeliterator_class.lo imagick_helpers.lo imagick.lo -Wl,-rpath,/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickWand -Wl,-rpath,/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickCore
  cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/imagick.so -bundle  .libs/imagick_class.o .libs/imagickdraw_class.o .libs/imagickpixel_class.o .libs/imagickpixeliterator_class.o .libs/imagick_helpers.o .libs/imagick.o  -L/usr/local/Cellar/imagemagick/6.7.1-1/lib /usr/local/Cellar/imagemagick/6.7.1-1/lib/libMagickWand.dylib -L/usr/X11/lib /usr/local/Cellar/imagemagick/6.7.1-1/lib/libMagickCore.dylib  -Wl,-rpath -Wl,/usr/local/Cellar/imagemagick/6.7.1-1/lib -Wl,-rpath -Wl,/usr/local/Cellar/imagemagick/6.7.1-1/lib
  ld: file not found: /usr/local/lib/liblcms.1.0.19.dylib for architecture x86_64
  collect2: ld returned 1 exit status
  make: *** [imagick.la] Error 1
  </code></pre>
  
  <p>I read some thread saying the the version I have might have bugs, so i tried building imagick-2.2.2 and still no go.</p>
  
  <p>Any advice Appreciated. 
  Thanks,
  D</p>