mpx / lua-cjson

Lua CJSON is a fast JSON encoding/parsing module for Lua
https://kyne.au/~mark/software/lua-cjson.php
MIT License
936 stars 478 forks source link

cjson.so: undefined symbol: lua_rotate #68

Open mofywong opened 5 years ago

mofywong commented 5 years ago

Hi, I use luajit 2.1.0-beta3 and lua-cjson 2.1.0-1 from http://luarocks.org,I print a error "cjson.so: undefined symbol: lua_rotate" when running. I search that "lua_rotate" is a new add in lua 5.3. But there has the note in lua-cjson 2.1.0-1 require lua > 5.1 not 5.3. So, which lua version is need by lua-cjson 2.1.0-1?luajit 2.1.0-beta3 and lua-cjson 2.1.0-1 not match? Thank you.

sogngenWang commented 4 years ago

I use lua-cjson 2.1.0 with lua 5.3.3 ,it is ok . It get the same error as you when I use lua 5.2.4.