[英]How to install imagick on MAMP?
當我運行sudo pecl install 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
不知道此錯誤意味着什么。 有任何想法嗎?
您需要先安裝imagemagick:
使用自制程序:
brew install imagemagick
或使用macports:
sudo port install imagemagick
然后您可以將php軟件包安裝為:
sudo pecl install imagick
您需要libmagickwand-dev才能使用pecl安裝擴展。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.