You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following the tutorial and I have installed lapis with luarocks, but it looks like cjson is not working correctly. It shows warnings during lapis installation and then throws when trying to use lapis command.
Installation:
lua-cjson 2.1.0.6-1 depends on lua >= 5.1 (5.4-1 provided by VM)
gcc -O2 -fPIC -I/usr/include -c lua_cjson.c -o lua_cjson.o
lua_cjson.c: In function‘json_append_data’:
lua_cjson.c:743:19: warning: implicit declaration of function‘lua_objlen’; did you mean ‘lua_len’? [-Wimplicit-function-declaration]
743 | len = lua_objlen(l, -1);| ^~~~~~~~~~
| lua_len
and when running lapis:
/usr/bin/lua5.4: /usr/share/lua/5.4/luarocks/loader.lua:104: error loading module 'cjson' from file '/home/user/.luarocks/lib/lua/5.4/cjson.so':
/home/user/.luarocks/lib/lua/5.4/cjson.so: undefined symbol: lua_objlen
stack traceback:
[C]: inlocal'a_loader'
/usr/share/lua/5.4/luarocks/loader.lua:104: infunction</usr/share/lua/5.4/luarocks/loader.lua:101>
(...tail calls...)
[C]: infunction'require'
/home/user/.luarocks/share/lua/5.4/lapis/util.lua:2: in main chunk
[C]: infunction'require'
.../user/.luarocks/share/lua/5.4/lapis/cmd/util.lua:7: in main chunk
[C]: infunction'require'
...user/.luarocks/share/lua/5.4/lapis/cmd/actions.lua:3: in main chunk
[C]: infunction'require'
....luarocks/lib/luarocks/rocks-5.4/lapis/1.9.0-1/bin/lapis:3: in main chunk
[C]: in?
Hello,
I am following the tutorial and I have installed lapis with
luarocks
, but it looks likecjson
is not working correctly. It shows warnings duringlapis
installation and then throws when trying to uselapis
command.Installation:
and when running
lapis
:It looks like this workaround fixes the problem: mpx/lua-cjson#56 (comment)
I'm just leaving it here, because maybe someone else will have the same similar issue. Cheers :)
The text was updated successfully, but these errors were encountered: