从Windows的2.0.2更新到2.2.0后,Luarocks停止工作 [英] Luarocks stop working after updating from 2.0.2 to 2.2.0 for windows

查看:191
本文介绍了从Windows的2.0.2更新到2.2.0后,Luarocks停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用LuaForWindows安装了LuaRocks 2.0.2附带的lua,当我在命令行中键入luarocks install luarocks时,它会安装最新的2.2.0 luarocks,但是当我尝试使用luarocks来安装其他岩石时,它将回来出现错误

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

推荐答案

luarocks install luarocks仅从2.1.0版本开始受支持(并且大多数在Unix上进行了测试).

luarocks install luarocks is only supported from 2.1.0 onwards (and mostly tested on Unix).

要从Windows上的旧版本升级,请使用LuaRocks网站上的为Windows提供的.zip文件

To upgrade from older versions on Windows, please use the supplied .zip file for Windows from the LuaRocks website.

这篇关于从Windows的2.0.2更新到2.2.0后,Luarocks停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆