Open rgonerao opened 4 years ago
is there some friend can help me ?
which linux distribution you are run?
center os 7.2
which linux distribution you are run?
I have this issue same,center os 7.2, openresty-1.15.8.2
I have this issue same, ubuntu 16.04, openresty-1.15.8.2
Does https://github.com/openresty/stream-lua-nginx-module/pull/192 fix the problem?
Facing same issue while compiling nginx with lua nginx module. Any solutions to rectify this
error: unsupported LuaJIT build; ngx_http_lua_module requires LuaJIT with FFI enabled.
wget https://github.com/openresty/luajit2/archive/v2.1-20200102.tar.gz tar xvf v2.1-20200102.tar.gz make PREFIX=/usr/local/luajit make install PREFIX=/usr/local/luajit
export LUAJIT_LIB=/usr/local/luajit/lib export LUAJIT_INC=/usr/local/luajit/include/luajit-2.1
Here we assume Nginx is to be installed under /opt/nginx/.
./configure --prefix=/usr/local/openresty \ --with-ld-opt="-Wl,-rpath,/usr/local/luajit/lib" \ --with-stream \ --with-stream_ssl_module \ --add-module=/root/stream-lua-nginx-module-0.0.8rc3
The error is below
AJIT_LIB and LUAJIT_INC env, with -ldl) ... found checking for LuaJIT 2.x ... found checking for Lua language 5.1 ... found checking for LuaJIT has FFI .../bin/sh: -c: line 0: unexpected EOF while looking for matching `'' /bin/sh: -c: line 1: syntax error: unexpected end of file auto/feature: line 47: /usr/local/openresty/site/lualib/?/init.ljbc: No such file or directory auto/feature: line 47: /usr/local/openresty/lualib/?.ljbc: No such file or directory auto/feature: line 47: /usr/local/openresty/lualib/?/init.ljbc: No such file or directory auto/feature: line 47: /usr/local/openresty/site/lualib/?.lua: No such file or directory auto/feature: line 47: /usr/local/openresty/site/lualib/?/init.lua: No such file or directory auto/feature: line 47: /usr/local/openresty/lualib/?.lua: No such file or directory auto/feature: line 47: /usr/local/openresty/lualib/?/init.lua' -DLUA_DEFAULT_CPATH='/usr/local/openresty/site/lualib/?.so: No such file or directory not found ./configure: error: unsupported LuaJIT build; ngx_stream_lua_module requires LuaJIT with FFI enabled. ERROR: failed to run command: sh ./configure --prefix=/usr/local/openresty/nginx ...