gpt4 book ai didi

Nginx 配置错误 : can not detect int size

转载 作者:行者123 更新时间:2023-12-01 01:18:34 24 4
gpt4 key购买 nike

当我尝试在 nginx src 路径中运行“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 包:
kernel-headers-2.6.32-71.el6.x86_64
操作系统版本是:
CentOS Linux 6.0 版(最终版)

最佳答案

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

关于Nginx 配置错误 : can not detect int size,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10568735/

24 4 0
文章推荐: ajax - Laravel 中的 PATCH AJAX 请求
文章推荐: jquery 获取/getJSON : call a function after *several* files load?
文章推荐: jquery - 单击时内联编辑 ,Rails 3.0/jQuery AJAX