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.
如果我用 Lua(例如 PUC 5.3)编译 Luarocks,然后使用 Luarocks 安装 Rocks 以供不同的 Lua 使用(例如 Luajit,Luarocks --tree my/lua-project-5.1),会不会有任何冲突线?
是的。你不应该像这样混合 Lua 版本,因为在构建用 C 编写的模块时,它们将使用 LuaRocks 配置的特定 Lua 版本的头文件。这将导致模块无法构建或无法加载到其他版本的解释器中。
但是请注意,您可以同时安装多个 LuaRocks,每个安装一个 Lua 版本。