luarocks で lunajson をインストールしました。モジュールを使用しようとすると、以下のエラーが繰り返し発生します。JSON で応答する Web サイトをデコードしようとしているだけです。OS は Debian Jessie を実行しています。古い OS であることは承知しており、いずれ更新する予定ですが、これが問題の原因になることはないはずです。
https://somedudesays.com/2019/12/using-json-with-lua/ より
lua:10: module 'lunajson' not found:
no field package.preload['lunajson']
no file '/usr/share/freeswitch/scripts/lunajson.lua'
no file '/usr/local/lib/lua/5.2/lunajson.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.2/lunajson.so'
no file '/usr/lib/lua/5.2/lunajson.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './lunajson.so'
stack traceback:
[C]: in function 'require'