今天在安装“ pthreads”,直接使用.configure出现了一个错误如下:
configure: error: Cannot find php-config. Please use --with-php-config=PATH
中文翻译如下:
配置:错误:找不到php配置。请使用--使用php路径
解决方案:
./configure加上参数--with-php-config,给出正确的php-config路径即可!
命令如下:
./configure --with-php-config=/usr/local/php/bin/php-config
上面/usr/local/php/bin/php-config路径请修改成你自己的PHP路径!