在Windows中运行Luarocks 2.2.0时出现问题-无法识别"pwd" [英] Trouble running luarocks 2.2.0 in Windows - 'pwd' not recognized

查看:237
本文介绍了在Windows中运行Luarocks 2.2.0时出现问题-无法识别"pwd"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在64位Windows 7中安装了luarocks,并且所有安装都正确,但是当我尝试运行luarocks时,出现以下错误:

I installed luarocks in 64-bit Windows 7, and everything installed correctly, but when I try to run luarocks I get the following error:

'pwd' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Lua\5.1\lua: ... Files (x86)\Lua\5.1\lua/luarocks\fs\win3
2\tools.lua:24: attempt to index local 'directory' (a nil value)
stack traceback:
        ... Files (x86)\Lua\5.1\lua/luarocks\fs\win32\tools.lua:24: in function
'command_at'
        ... Files (x86)\Lua\5.1\lua/luarocks\fs\win32\tools.lua:125: in function
 <... Files (x86)\Lua\5.1\lua/luarocks\fs\win32\tools.lua:124>
        (tail call): ?
        ... Files (x86)\Lua\5.1\lua/luarocks\fs\win32\tools.lua:147: in function
 'make_dir'
        ...am Files (x86)\Lua\5.1\lua\luarocks\command_line.lua:30: in function
'is_writable'
        ...am Files (x86)\Lua\5.1\lua\luarocks\command_line.lua:76: in function
'run_command'
        C:\Program Files (x86)\Lua\5.1\luarocks.lua:20: in main chunk
        [C]: ?
'"lua5.1"' is not recognized as an internal or external command,
operable program or batch file.

我真的不确定自己在做什么错,我已经在互联网上搜寻了答案,却一无所获.

I'm really not sure what I'm doing wrong and I've scoured the internet for answers and turned up nothing.

推荐答案

我将tools目录添加到了Windows Path变量中,从而解决了该问题.由于其他原因,我仍然无法让懒汉工作,但我将这些问题发布在一个单独的问题中.

I added the tools directory to my Windows Path variable and this resolved the issue. I am still having trouble getting luarocks to work for other reasons, but I will post those issues in a separate question.

这篇关于在Windows中运行Luarocks 2.2.0时出现问题-无法识别"pwd"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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