如何使用./configure设置变量
问题描述:
我正在尝试使用pthreads编译和安装一个新的PHP版本。如何使用./configure设置变量
运行./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