mac下安装Phalcon7

首先根据开发文档操作

git clone --depth=1git://github.com/dreamsxin/cphalcon7.git

cd cphalcon7/ext

phpize

./configure

make&&sudo make install

#理论上是不会有问题的,但是有的时候就是有问题

1.phpize的时候会报错

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then, rerun this script.

找不到autoconf。。。。。。。。

解决办法:

首先我是用brew安装的php7,所以我同样用

brew install m4

brew install autoconf

就可以了。

然后./configure

然后make&&sudo make install

安装完了会出现Installing shared extensions:    /usr/local/Cellar/php71/7.1.13_24/lib/php/extensions/no-debug-non-zts-20160303/

进入这个目录下我们会看到phalcon.so

把这个完整路径加入php.ini

/usr/local/Cellar/php71/7.1.13_24/lib/php/extensions/no-debug-non-zts-20160303/phalcon.so

你可能感兴趣的:(mac下安装Phalcon7)