VPS侦探论坛

 找回密码
 注册
查看: 3340|回复: 3

修改Enable_Nginx_Lua为Y升级失败~~

[复制链接]
发表于 2019-5-27 21:54:11 | 显示全部楼层 |阅读模式

想安装ngx_lua_waf waf 当前nginx版本1.16.0 修改了lnmp.conf中Enable_Nginx_Lua后的参数为 y
然后升级nginx 输入的版本也是当前版本 1.16.0
就报错了
+---------------------------------------------------------+
|    You will upgrade nginx version to 1.16.0
+---------------------------------------------------------+

Press any key to start...or Press Ctrl+c to cancel

============================check files==================================
nginx-1.16.0.tar.gz [found]
============================check files==================================
openssl-1.0.2o.tar.gz [found]
Installing Lua for Nginx...
LuaJIT-2.0.5.tar.gz [found]
lua-nginx-module-0.10.11.tar.gz [found]
ngx_devel_kit-0.3.0.tar.gz [found]
[+] Installing LuaJIT-2.0.5...
Uncompress LuaJIT-2.0.5.tar.gz...
cd LuaJIT-2.0.5...

==== Building LuaJIT 2.0.5 ====
make -C src
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
make[1]: Entering directory `/root/lnmp1.5/src/LuaJIT-2.0.5/src'
Makefile:254: *** Unsupported target architecture.  Stop.
make[1]: Leaving directory `/root/lnmp1.5/src/LuaJIT-2.0.5/src'
make: *** [default] Error 2
==== Building LuaJIT 2.0.5 ====
make -C src
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-5-27 21:55:19 | 显示全部楼层


字数限制 接上面的代码

compilation terminated.
In file included from /usr/include/bits/posix1_lim.h:160:0,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:168,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/limits.h:34,
                 from luaconf.h:12,
                 from lua.h:16,
                 from lj_arch.h:9:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
                          ^
compilation terminated.
make[1]: Entering directory `/root/lnmp1.5/src/LuaJIT-2.0.5/src'
Makefile:254: *** Unsupported target architecture.  Stop.
make[1]: Leaving directory `/root/lnmp1.5/src/LuaJIT-2.0.5/src'
make: *** [src/luajit] Error 2
Uncompress nginx-1.16.0.tar.gz...
cd nginx-1.16.0...
checking for OS
+ Linux 4.14.91-bbrplus x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
checking for gcc -pipe switch ... found
checking for --with-ld-opt="-Wl,-rpath,/usr/local/luajit/lib" ... found
checking for -Wl,-E switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... not found
checking for sys/filio.h ... not found
checking for sys/param.h ... not found
checking for sys/mount.h ... not found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for EPOLLEXCLUSIVE ... not found
checking for O_PATH ... not found
checking for sendfile() ... not found
checking for sendfile64() ... not found
checking for sys/prctl.h ... not found
checking for prctl(PR_SET_DUMPABLE) ... not found
checking for prctl(PR_SET_KEEPCAPS) ... not found
checking for capabilities ... not found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... 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() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for sched_setaffinity() ... found
checking for SO_SETFIB ... not found
checking for SO_REUSEPORT ... not found
checking for SO_ACCEPTFILTER ... not found
checking for SO_BINDANY ... not found
checking for IP_TRANSPARENT ... not found
checking for IP_BINDANY ... not found
checking for IP_BIND_ADDRESS_NO_PORT ... not found
checking for IP_RECVDSTADDR ... not found
checking for IP_SENDSRCADDR ... 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() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint32_t ... uint32_t not found, u_int32_t not found
./configure: error: can not define uint32_t
make: *** No rule to make target `build', needed by `default'.  Stop.
make: *** No rule to make target `build', needed by `default'.  Stop.
mv: cannot stat ‘/usr/local/nginx/sbin/nginx’: No such file or directory
cp: cannot stat ‘objs/nginx’: No such file or directory
Test nginx configure file...
include/upgrade_nginx.sh: line 70: /usr/local/nginx/sbin/nginx: No such file or directory
upgrade...
make: *** No rule to make target `upgrade'.  Stop.
Checking ...
Error: Nginx upgrade failed.
[root lnmp1.5]#
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-5-28 09:04:35 | 显示全部楼层

yum install kernel-headers kernel-devel
估计依赖包被删了,按上面命令安装后再试一下
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-5-28 16:59:34 | 显示全部楼层



licess 发表于 2019-5-28 09:04
yum install kernel-headers kernel-devel
估计依赖包被删了,按上面命令安装后再试一下 ...

感谢可以了  测试正常  

网站防火墙
您的请求带有不合法参数,已被网站管理员设置拦截!

可能原因:您提交的内容包含危险的攻击请求

如何解决:

1)检查提交内容;
2)如网站托管,请联系空间提供商;
3)普通网站访客,请联系网站管理员;
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-20 09:25 , Processed in 0.027262 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表