简体   繁体   English

在Windows中运行Luarocks 2.2.0时出现问题-无法识别“ pwd”

[英]Trouble running luarocks 2.2.0 in Windows - 'pwd' not recognized

I installed luarocks in 64-bit Windows 7, and everything installed correctly, but when I try to run luarocks I get the following error: 我在64位Windows 7中安装了luarocks,并且所有安装均正确,但是当我尝试运行luarocks时,出现以下错误:

'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. 我真的不确定自己在做什么错,我已经在互联网上搜寻答案,却一无所获。

I added the tools directory to my Windows Path variable and this resolved the issue. 我将工具目录添加到Windows路径变量中,从而解决了该问题。 I am still having trouble getting luarocks to work for other reasons, but I will post those issues in a separate question. 由于其他原因,我仍然无法让懒汉工作,但是我将在另一个问题中发布这些问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM