最新学习的资料,需要在这里记录一下了。lampp 上安装imagick

本文记录了在Mac系统10.11.2版本中使用LAMPP安装Imagick组件的过程及遇到的问题。作者在安装过程中遇到了缺少autoconf、pkg-config等依赖的错误,并逐步解决了这些问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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下的没有

安装无效,各种报错

明天再说吧。







评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值