Symbol not found: _lua_objlen

lua: error loading module 'cjson' from file '/usr/local/lib/lua/5.3/cjson.so':
        dlopen(/usr/local/lib/lua/5.3/cjson.so, 6): Symbol not found: _lua_objlen
  Referenced from: /usr/local/lib/lua/5.3/cjson.so
  Expected in: flat namespace
 in /usr/local/lib/lua/5.3/cjson.so
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        log.lua:6: in main chunk
        [C]: in ?

$ luarocks remove lua-cjson
$ luarocks install lua-cjson 2.1.0-1

  https://github.com/mpx/lua-cjson/issues/56

posted @ 2018-09-25 15:16  闲云-野鹤  阅读(1911)  评论(0编辑  收藏  举报