2015-02-10 26 views
0

我正在嘗試使用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呢?

回答

0

這幹得不錯:

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