php - 如何使用 ./configure 设置变量

标签 php c compilation configure

我正在尝试在现有的 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/

相关文章:

compilation - glibc中的.o和.os objs有什么区别

c# - 在 C# 中快速解析 PHP

C 中将一个字符从一个字符数组复制到另一个字符数组

c - valgrind : Conditional jump or move depends on uninitialised value using strlen() strncat()

c - 纯 C OpenCL 与 Python OpenCL 性能对比

将静态文件编译成可执行文件

php - 将#RRGGBB 十六进制值转换为#AARRGGBB

php - Phalcon 模型更新不起作用

php - 具有一对一关系的 Laravel 表单绑定(bind)

compiler-construction - 编译器: How to define this grammar?