pecl install redis or xdebug扩展失败问题

尝试安装redis 跟 xdebug都出现同样的报错,初步确定不是版本的问题。

执行pecl install xdebug 运行后报错

 比较关键的报错点,

checking whether the C compiler works... no
configure: error: in `/private/tmp/pear/temp/pear-build-rootl42moi/xdebug-3.1.2':
configure: error: C compiler cannot create executables

通过不断的查阅文档,找到一篇类似的文档

macos - OS X Yosemite Configure: checking whether the C compiler works... no - Stack Overflow

macos - OS X 10.9.2: checking whether the C compiler works... no - Stack Overflow

猜测是gcc的问题,重新安装一下gcc结果又报错

 那就安装一下xcode,运行命令 

xcode-select --install

完成再次安装php扩展

pecl install xdebug

成功。

安装redis 失败并不在于安装的什么而且要看报错信息

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值