CNSRE / ABTestingGateway

MIT License
2.36k stars 768 forks source link

LuaJIT-2.1安装lua-cjson-2.1安装不成功 #98

Open Tender-Liu opened 6 years ago

Tender-Liu commented 6 years ago

报错原因:make失败 cc -c -O3 -Wall -pedantic -DNDEBUG -I/usr/local/luajit/include/luajit-2.1 -fpic -o lua_cjson.o lua_cjson.c lua_cjson.c:1299: 错误:对‘luaL_setfuncs’的静态声明出现在非静态声明之后 /usr/local/luajit/include/luajit-2.1/lauxlib.h:88: 附注:‘luaL_setfuncs’的上一个声明在此 make: *** [lua_cjson.o] 错误 1 解决方式: LuaJIT-2.1无法安装lua-cjson-2.1,使用LuaJIT-2.0安装