mac 系统 10.11.2
lampp 上安装imagick
su
输入密码
进入root超级账户
cd /Applications/xampp/xamppfiles/bin
./pecl download imagick #似乎没用
pecl install imagick
直接就安装了
php很多东西很简单的。
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
autoconf 却少这个。我再安装一下
系统缺少autoconf
我们来安装它
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install autoconf
安装好了。
cd /Applications/xampp/xamppfiles/bin
./pecl install imagick
继续报错
configure: error: Please reinstall the pkg-config distribution
curl -O https://pkg-config.freedesktop.org/releases/pkg-config-0.29.1.tar.gz
tar -xf pkg-config-0.29.1.tar.gz
cd pkg-config-0.29.1
./configure --with-internal-glib
make
sudo make install
cd /Applications/xampp/xamppfiles/bin
./pecl install imagick
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
不少人说要安装这个 ImageMagick-devel
到处找资料mac下的没有
安装无效,各种报错
明天再说吧。