title: Installing ImageMagick / PECL error, missing 'magick-wand.h'
body: <p>I installed imagick with homebrew on OS X Yosemite and want to install the imagemagick PHP extension with PECL. I am using the standard Apache server and PHP version included with the OS (not MAMP!). So, I tried</p>
  
  <pre><code>pecl install imagick
  </code></pre>
  
  <p>During the make process I get the error message</p>
  
  <pre><code>In file included from /private/tmp/pear/install/imagick/imagick_file.c:21:
  /private/tmp/pear/install/imagick/php_imagick.h:51:12: fatal error: 'wand/magick-wand.h' file not found
  #  include &lt;wand/magick-wand.h&gt;
              ^
  1 error generated.
  </code></pre>
  
  <p>When asked for the prefix of the Imagemagick installation </p>
  
  <pre><code>Please provide the prefix of Imagemagick installation [autodetect] :
  </code></pre>
  
  <p>I am not sure what to enter but I tried empty (autodetect), "/usr/local/Cellar/imagemagick/6.8.9-8/include/ImageMagick-6", and "/usr/local/Cellar/imagemagick/6.8.9-8"</p>
  
  <p>There is a "magick-wand.h" file located in "/usr/local/Cellar/imagemagick/6.8.9-8/include/ImageMagick-6"/wand/magick-wand.h"</p>
  
  <p>How do you install the imagemagick extension on OS X?</p>