Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
LuaRocks 似乎默认使用 5.1,我如何指定我使用的是 5.2?已安装的模块安装在 5.1 目录中,因此 Lua 5.2 找不到它们。
我发现最好的方法是从源代码构建。本质上,您需要做的就是运行
./configure --lua-version=5.2
在 luarocks 代码的目录中,然后 make build 然后 make install 你应该很好去