开发者社区 问答 正文

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

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

展开
收起
lusinking 2017-04-07 00:30:53 2884 分享
分享
版权
举报
2 条回答
写回答
取消 提交回答
  • 补充错误信息:服务器是ECS上购买的ubuntu 16.04(1U2G)
    nginx-1.10.3# ./build_linux.sh
    checking for OS

    • Linux 4.4.0-63-generic x86_64
    1. for C compiler ... found

      • using GNU C compiler
      • gcc version: 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
    2. 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.

    2019-07-17 21:01:24 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
  • 旺旺:nectar2。

    题主您好,

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

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

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

    2019-07-17 21:01:24 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论