我使用LuaForWindows安装LuaRocks 2.0.2附带的lua,当我在命令行中输入luarocks install luarocks时,它会安装最新的2.2.0 luarocks,但是当我尝试使用luarocks安装其他rocks时,它会回来有错误
Site-local luarocks/site_config.lua file not found. Incomplete installation?
'uname' is not recognized as an internal or external command,
operable program or batch file.
'uname' is not recognized as an internal or external command,
operable program or batch file.
C:/Program Files (x86)/Lua/5.1/lua: C:\Program Files (x86)\Lua\5.1\lua/luarocks\
cfg.lua:80: attempt to index local 'proc' (a nil value)
stack traceback:
C:\Program Files (x86)\Lua\5.1\lua/luarocks\cfg.lua:80: in main chunk
[C]: in function 'require'
...\Program Files (x86)\Lua\5.1\lua/luarocks\loader.lua:17: in main chun
k
[C]: ?
[C]: ?
我是否缺少任何额外的步骤来使其工作 谢谢
最佳答案
luarocks install luarocks
仅从 2.1.0 开始受支持(并且主要在 Unix 上进行测试)。
要在 Windows 上从旧版本升级,请使用 supplied .zip file for Windows from the LuaRocks website .
关于Windows 版 Luarocks 从 2.0.2 更新到 2.2.0 后停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26019492/