nginx编译报错error: can not detect int size
时间:2016-06-05 00:20 来源:linux.it.net.cn 作者:IT
在64位的机器上进行对nginx进行编译配置,居然报错error: can not detect int size,原来是加上了–with-cpu-opt选项.
正如某博客所说去掉cpu优化选项即可通过配置,但是对于有优化强迫症的IT工作者来说这是绝对不容许的.
经过一番研究,设置好CFLAGS参数即可在cpu优化选项开启的情况下通过配置测试.
如下:
1
export CFLAGS="-Werror"
2
./configure {some args} --with-cpu-opt=pentiumpro
这样编译的话就不会报错了.以上在centos 6.x 64位的机器上测试了没有问题.
ps:http://www.geeshell.com/troubleshooting/nginx-configure-error-can-not-detect-int-size
(责任编辑:IT)
在64位的机器上进行对nginx进行编译配置,居然报错error: can not detect int size,原来是加上了–with-cpu-opt选项. 正如某博客所说去掉cpu优化选项即可通过配置,但是对于有优化强迫症的IT工作者来说这是绝对不容许的. 经过一番研究,设置好CFLAGS参数即可在cpu优化选项开启的情况下通过配置测试. 如下:
这样编译的话就不会报错了.以上在centos 6.x 64位的机器上测试了没有问题. ps:http://www.geeshell.com/troubleshooting/nginx-configure-error-can-not-detect-int-size (责任编辑:IT) |