Ralph David Abernathy
Ralph David Abernathy

Reputation: 5508

How to install imagick on MAMP?

When I run sudo pecl install imagick, I receive the following error:

checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... Doesn't exist
checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
checking Testing /opt/bin/MagickWand-config... Doesn't exist
checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
ERROR: `/private/tmp/pear/install/imagick/configure --with-php-config=/usr/bin/php-config --with-imagick' failed

Not sure what this error is implying. Any ideas?

Upvotes: 2

Views: 1997

Answers (2)

hassan
hassan

Reputation: 8278

you need to install imagemagick first:

using homebrew:

brew install imagemagick

or using macports:

sudo port install imagemagick

then you can install the php package as :

sudo pecl install imagick

Upvotes: 4

Palethorn
Palethorn

Reputation: 379

You need libmagickwand-dev to install extension using pecl.

Upvotes: 1

Related Questions