问题
I used LuaForWindows to install lua that comes with LuaRocks 2.0.2, when I type luarocks install luarocks in the command line it install the latest 2.2.0 luarocks but when I try to use luarocks to install other rocks it will come back with an error
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]: ?
is there any extra step I'm missing to make it work Thanks
回答1:
luarocks install luarocks
is only supported from 2.1.0 onwards (and mostly tested on Unix).
To upgrade from older versions on Windows, please use the supplied .zip file for Windows from the LuaRocks website.
来源:https://stackoverflow.com/questions/26019492/luarocks-stop-working-after-updating-from-2-0-2-to-2-2-0-for-windows