我正在尝试在现有的 pthreads 旁边编译并安装新的 PHP 版本。
运行./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
关于php - 如何使用 ./configure 设置变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28441915/