openresty / openresty/stream-lua-nginx-module
checking for LuaJIT has FFI .../bin/sh: -c: line 0: unexpected EOF while looking for matching `''
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 749
- Forks
- 210
- Avg merge
- 4h 31m
- Merged PRs (30d)
- 3
Description
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 ...
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported commands and inspect ./configure and auto/feature around the LuaJIT FFI check, especially the shell command shown failing. Trace the generated quoting and rerun the configure step with the reported LUAJIT_LIB and LUAJIT_INC values; done means the check completes without the unexpected EOF or unsupported LuaJIT build error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, nginx, shell
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100