Hello!
On Tue, Oct 29, 2013 at 7:44 AM, <r...@ftbpro.com> wrote:
> Hello,
> I'm trying to use cjson in a side project in lua. I tried all day long to
> get it work, but it always fail in the "local cjson = require 'cjson'"
> command because the module is not found.
>
There are two possibilities here:
1. Your installation of cjson is not in the search paths of your Lua.
The (lengthy) error message from Lua tells you where it has looked at.
If your cjson.so file is not in any of the paths listed in the error
message, then you should add the path to your package.cpath field or
to the LUA_CPATH environment. Refer to the Lua 5.1 reference manual
for more details on this:
http://www.lua.org/manual/5.1/manual.html
2. Your cjson.so file is already listed in the paths reported by the
Lua error message but your process running the Lua VM does not have
enough permission to read that file.
Best regards,
-agentzh