有人在ECS Ubuntu上编译出来过nginx吗?

有人在ECS Ubuntu上编译出来过nginx吗?我编译一直报check int size失败

当前问题共有如下(2)个解决方案
  • lusinking
    lusinking

    补充错误信息:服务器是ECS上购买的ubuntu 16.04(1U2G)
    nginx-1.10.3# ./build_linux.sh
    checking for OS

    • Linux 4.4.0-63-generic x86_64 checking for C compiler ... found
    • using GNU C compiler
    • gcc version: 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) checking for gcc -pipe switch ... found checking for -Wl,-E switch ... not 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 gcc builtin 64 bit byteswap ... 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 O_PATH ... 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 nobody group ... not found checking for nogroup group ... 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_REUSEPORT ... not found checking for SO_ACCEPTFILTER ... not found checking for IP_RECVDSTADDR ... not found checking for IP_PKTINFO ... not found checking for IPV6_RECVPKTINFO ... not found checking for TCP_DEFER_ACCEPT ... not found checking for TCP_KEEPIDLE ... not found checking for TCP_FASTOPEN ... not found checking for TCP_INFO ... not found checking for accept4() ... not found checking for eventfd() ... not found checking for eventfd() (SYS_eventfd) ... not found checking for int size ... ./configure: error: can not detect int size make: *** No rule to make target 'build', needed by 'default'. Stop. make: *** No rule to make target 'install'. Stop.

  • dongshan8
    dongshan8

    题主您好,

    Ubuntu是较常见的Linux发行版,编译nginx基本不会有问题。

    请问您的ubuntu版本是什么呢?是编译安装哪个版本的nginx呢?

    您是按哪个教程来编译安装nginx的呢?

上一篇:ECS服务器经常访问不了
下一篇:请问阿里云有没有人工的问答QQ或者QQ群?