p0pr0ck5 / lua-resty-waf

High-performance WAF built on the OpenResty stack
GNU General Public License v3.0
1.28k stars 305 forks source link

Compile on Official Nginx #237

Closed devrandom0 closed 8 years ago

devrandom0 commented 8 years ago

Dear all when i trying to compile waf with official nginx 1.11.2, i got an error. 1- compile luajit 2.0.4 2- compile nginx with ngx_devel_kit, pcre 8.39, lua nginx module 0.10.6 ​3!- compile lua-resty-waf : i got an error here... first of all i got about lua.h, because i dont have lua5.1 and i have luajit. after change lua-aho-corasick/Makefile to LUA_VERSION := 2.0 PREFIX = /usr/local LUA_INCLUDE_DIR := $(PREFIX)/include/luajit-$(LUA_VERSION) SO_TARGET_DIR := $(PREFIX)/lib LUA_TARGET_DIR := $(PREFIX)/share/luajit/jit​

​ after this, i got error in "make install" .... in lua-resty-waf/Makefile​ these addrress are not exist: OPENRESTY_PREFIX ?= /usr/local/openresty LUA_LIB_DIR ?= $(OPENRESTY_PREFIX)/lualib because i dont have openresty... and luajit data in LUAJIT_LIB=/usr/local/lib LUAJIT_INC=/usr/local/include/luajit-2.0 what can i do now about lua-resty-waf/Makefile​ to configure with official nginx ?

p0pr0ck5 commented 8 years ago

Hi,

lua-resty-waf targets OpenResty specifically. Compilation with vanilla Nginx or custom distributions is unsupported at this time. Patches welcome for extending the Makefile, provided that the existing targets and results are unchanged for OpenResty users.

ghost commented 5 years ago

@sinamoghaddas Hi, have you successfully compiled lua-resty-waf with official nginx ? Because I need to do it too and openresty isn't a solution due to a lot of modules Thanks