lapis可以使用openresty的cjson吗?各位大佬看看我这报错个报错

201 views
Skip to first unread message

武雅超

unread,
Oct 18, 2017, 5:38:59 AM10/18/17
to openresty
# luarocks install lapis
Installing https://luarocks.org/lapis-1.6.0-1.src.rock
Missing dependencies for lapis 1.6.0-1:
   lua-cjson (not installed)
   luaossl (not installed)


lapis 1.6.0-1 depends on lua-cjson (not installed)
Installing https://luarocks.org/lua-cjson-2.1.0-1.src.rock
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/opt/openresty/luajit/include/luajit-2.1 -c lua_cjson.c -o lua_cjson.o
lua_cjson.c:1298:13: error: static declaration of 'luaL_setfuncs' follows non-static declaration
static void luaL_setfuncs (lua_State *l, const luaL_Reg *reg, int nup)
            ^
/usr/local/opt/openresty/luajit/include/luajit-2.1/lauxlib.h:88:18: note: previous declaration is here
LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup);
                 ^
1 error generated.

Error: Failed installing dependency: https://luarocks.org/lua-cjson-2.1.0-1.src.rock - Build error: Failed compiling object lua_cjson.o
  • nginx version: openresty/1.11.2.4

  • I have installed openresty an kong. I can install it some month ago.


武雅超

unread,
Oct 18, 2017, 1:00:32 PM10/18/17
to openresty
https://github.com/leafo/lapis/issues/539

在 2017年10月18日星期三 UTC+8下午5:38:59,武雅超写道:
Reply all
Reply to author
Forward
0 new messages