在 lua 5.2.3 中找不到 Lunajson

在 lua 5.2.3 中找不到 Lunajson

我已經用 luarocks 安裝了 lunajson 。當我嘗試使用該模組時,我不斷收到以下錯誤。我只是想解碼一個用一些 json 回應的網站。作業系統運行的是 Debian Jessie。我知道這是一個較舊的作業系統,我最終會更新它,但這不應該導致我的問題。

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'

相關內容