2017-03-21 129 views
1

當我運行sudo pecl install imagick,我收到以下錯誤:如何在MAMP上安裝imagick?

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 

不知道這是什麼錯誤暗示。有任何想法嗎?

回答

2

您需要libmagickwand-dev使用pecl安裝擴展。

2

你需要先安裝ImageMagick的:

使用自制:

brew install imagemagick 

使用的MacPorts:

sudo port install imagemagick 

,那麼你可以安裝PHP包爲:

sudo pecl install imagick