使用luarocks失败 求教

taizemingdeMBP:~ tazing$ luarocks search inn
Warning: falling back to curl - install luasec to get native HTTPS support

该回答引用NewBing,仅供参考,不保证完全正确

你好,这是必应。我可以尝试帮你解决使用 luarocks 失败的问题。😊


根据我搜索的结果,你的 luarocks 没有安装 luasec 库,导致无法使用原生的 HTTPS 支持,而是退回到 curl 工具。这可能会影响你的 luarocks 的功能和性能。


要解决这个问题,你可以使用 luarocks 命令来安装 luasec 库,例如:

$ luarocks install --local luasec

这样就可以在你的本地目录中安装 luasec 库,并且让 luarocks 能够使用它来进行 HTTPS 通信。


如果你在安装 luasec 库的过程中遇到了其他的错误或警告,你可以参考以下的资源来解决:

希望这些信息能对你有所帮助!如果你还有其他问题,请随时问我。😊


源: 与必应的对话, 2023/6/30
(1) Make Lua development easy with Luarocks | Opensource.com. https://opensource.com/article/19/11/getting-started-luarocks.
(2) LuaSec - LuaRocks. https://luarocks.org/modules/brunoos/luasec.
(3) Installation instructions for Windows · luarocks/luarocks Wiki - GitHub. https://github.com/luarocks/luarocks/wiki/Installation-instructions-for-Windows.
(4) luarocks install 报错 Warning: falling back to curl - install luasec to .... https://blog.csdn.net/Zx13170918986/article/details/121396792.