Nginx配置错误:无法检测整数大小

Nginx配置错误:无法检测整数大小,nginx,configure,Nginx,Configure,当我尝试在nginx src path中运行“configure”命令时,出现了下面的错误 checking for OS + Linux 2.6.32-71.el6.x86_64 x86_64 checking for C compiler ... found + using GNU C compiler + gcc version: 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) checking for gcc -pipe switch ... found

当我尝试在nginx src path中运行“configure”命令时,出现了下面的错误

checking for OS
+ Linux 2.6.32-71.el6.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... not found
checking for C99 variadic macros ... not found
checking for gcc variadic macros ... not found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... not found
checking for sendfile() ... not found
checking for sendfile64() ... not found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... not found
checking for sched_setaffinity() ... not found
checking for crypt_r() ... not found
checking for sys/vfs.h ... found
checking for poll() ... not found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... not found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... not found
checking for O_DIRECT ... not found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... not found
checking for statvfs() ... not found
checking for dlopen() ... not found
checking for dlopen() in libdl ... not found
checking for sched_yield() ... not found
checking for sched_yield() in librt ... not found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... not found
checking for TCP_KEEPIDLE, TCP_KEEPINTVL, TCP_KEEPCNT ... not found
checking for TCP_INFO ... not found
checking for accept4() ... not found
checking for int size ...
./configure: error: can not detect int size
我的操作系统是centos 6.0,它已经有了内核头文件包: kernel-headers-2.6.32-71.el6.x86_64 操作系统版本为:
CentOS Linux 6.0版(最终版)

我以前曾多次遇到此错误。希望我的两个问题能帮助你缩小你的问题范围:

1)在实际需要C.</P>时,我错误地尝试用C++编译NGNX。 2) 我使用了一个不兼容的插件。我使用的TCP代理插件与最新版本的nginx不兼容。问题在于,插件的支持范围之外的内部更改


快乐狩猎。

我测试了nginx默认安装,除了路径的--prefix之外,没有任何参数。nginx的安装非常流畅。 我检查了参数,发现”--使用cc opt='-m32-march=i386',我的操作系统是64位的,所以我删除了它,然后运行命令。
它像往常一样工作….

如果在OSX上,像我一样,试着按照以下步骤操作

基本上做:

brew install pcre
并将其添加到./configure

--with-ld-opt="-L /usr/local/lib"

我也有类似的理由。其中一个CFLAG导致了问题。通过执行“export CFLAGS=”“”清理了CLAGS并解决了问题。对于在Solaris 11上安装,设置
export CFLAGS=“”
为我解决了问题。谢谢。所以基本上你用cc optparam删除了整个
?我试图用android ndk编译这个,在配置文件中添加了这个选项后,我仍然有同样的问题