Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checking for LuaJIT has FFI .../bin/sh: -c: line 0: unexpected EOF while looking for matching `'' #194

Open
rgonerao opened this issue Apr 23, 2020 · 7 comments

Comments

@rgonerao
Copy link

rgonerao commented Apr 23, 2020

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 ...

@rgonerao
Copy link
Author

is there some friend can help me ?

@zhuizhuhaomeng
Copy link
Contributor

which linux distribution you are run?

@vs333
Copy link

vs333 commented Jun 18, 2020

center os 7.2

@vs333
Copy link

vs333 commented Jun 18, 2020

which linux distribution you are run?

I have this issue same,center os 7.2, openresty-1.15.8.2

@longdidis
Copy link

I have this issue same, ubuntu 16.04, openresty-1.15.8.2

@spacewander
Copy link
Member

Does #192 fix the problem?

@Vishnu-Prasad-27
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants