Luarocks stop working after updating from 2.0.2 to 2.2.0 for windows

一笑奈何 提交于 2019-12-11 03:15:56

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!