在运行:
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扩展