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
which installed some files under /usr/local/share/lua
$ ls
cjson json2lua.lua lua2json.lua luajwt.lua luarocks
I also see
/usr/local/lib/lua/5.1 $ ls
base64.so cjson.so crypto.so
Now.. when I run the test script it fails on the first line.
$ lua test.lua
lua: test.lua:1: module 'luajwt' not found:
no field package.preload['luajwt']
no file './luajwt.lua'
no file '/usr/share/lua/5.1/luajwt.lua'
no file '/usr/share/lua/5.1/luajwt/init.lua'
no file '/usr/lib64/lua/5.1/luajwt.lua'
no file '/usr/lib64/lua/5.1/luajwt/init.lua'
no file './luajwt.so'
no file '/usr/lib64/lua/5.1/luajwt.so'
no file '/usr/lib64/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
test.lua:1: in main chunk
[C]: ?
lua: /usr/local/share/lua/5.1/luajwt.lua:1: loop or previous error loading module 'cjson'
stack traceback:
[C]: in function 'require'
/usr/local/share/lua/5.1/luajwt.lua:1: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/luajwt.lua:1: in main chunk
[C]: in function 'require'
test.lua:1: in main chunk
[C]: ?
Do I need to give all of the dependencies in the PATH individually, or is there a better way?
The text was updated successfully, but these errors were encountered:
I am absolutely new on lua, and so far I am having problem getting the test script to run.
I've installed lua and luarocks (I think..) and I did
which installed some files under /usr/local/share/lua
I also see
Now.. when I run the test script it fails on the first line.
So I added the path on LUA_PATH
which now gives..
Do I need to give all of the dependencies in the PATH individually, or is there a better way?
The text was updated successfully, but these errors were encountered: