phalcon安装-遇坑php-config is not installed 解决方法

通过源码编译安装php环境,按照phalcon官方文档安装扩展,会遇到php-config is not installed的坑。

尝试通过下列命令可以解决:

1 cd /opt/cphalcon-3.2.1/build/php7/64bits
2 && phpize --enable-phalcon \
3 --with-phpconfig=/usr/local/src/php7/bin/php-config
4 && ./configure --with-php-config=/usr/local/src/php7/bin/php-config
5 && make && make install

 

你可能感兴趣的:(phalcon安装-遇坑php-config is not installed 解决方法)