I have a lua script that imports lua-cjson
require("cjson")
What ever I do, running this script using gopher-lua returns:
no field package.preload['cjson'] stat ./cjson.lua: no such file or directory stat /usr/local/share/lua/5.1/cjson.lua: no such file or directory stat /usr/local/share/lua/5.1/cjson/init.lua: no such file or directory,
while running the script using the standard shell using lua script.lua runs fine
I have a lua script that imports lua-cjson
require("cjson")What ever I do, running this script using gopher-lua returns:
no field package.preload['cjson'] stat ./cjson.lua: no such file or directory stat /usr/local/share/lua/5.1/cjson.lua: no such file or directory stat /usr/local/share/lua/5.1/cjson/init.lua: no such file or directory,while running the script using the standard shell using
lua script.luaruns fine