MAC下为php7.4.5安装phalcon4.0.5扩展时遇到libtool版本不匹配的问题及解决方案

在运行:

sudo ./install --phpize /Users/mac/service/php745/bin/phpize --php-config /Users/mac/service/php745/bin/php-config

命令后报:

glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,

glibtoolize: and rerunning glibtoolize and aclocal.

glibtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

appending configuration tag "CXX" to libtool

libtool: Version mismatch error. This is libtool 2.4.6, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6

libtool: and run autoconf again.

make: *** [phalcon.lo] Error 63

libtool: Version mismatch error. This is libtool 2.4.6, but the

libtool: definition of this LT_INIT comes from an older release.

libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6

libtool: and run autoconf again.

make: *** [phalcon.lo] Error 63

Thanks for compiling Phalcon!

Build succeed: Please restart your web server to complete the installation

提示版本不匹配,那就降点试下,先运行:

$ brew uninstall libtool

Uninstalling /usr/local/Cellar/libtool/2.4.6_1... (71 files, 3.7MB)

再运行:

wget http://mirrors.ustc.edu.cn/gnu/libtool/libtool-2.4.tar.gz
tar xvzf libtool-2.4.tar.gz
cd libtool
./configure --prefix=/usr/local/libtool
make
sudo make install

之后再运行:sudo ./install --phpize /Users/mac/service/php745/bin/phpize --php-config /Users/mac/service/php745/bin/php-config

后成功安装phalcon扩展

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值