如何使用设置变量/配置


How to set variables with ./configure

我正在尝试编译并安装一个新的PHP版本,该版本位于我现有的pthreads旁边。

运行./configure,进程使用我的默认系统PHP变量,而不是我所处的位置:

checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20100525
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no

如何将其更改为使用/usr/local/src/php-5.6.5/ext

这就完成了任务:

./configure --prefix=/usr/local/src/php-5.6.5