0
我在64位安裝luarocks Windows 7中,並正確安裝了一切,但是當我嘗試運行luarocks我得到以下錯誤:故障運行luarocks 2.2.0在Windows - 「PWD」無法識別
'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.
我真的不確定我做錯了什麼,我在互聯網上尋找答案並且什麼也沒有發現。
'pwd'是類Unix操作系統上的常用程序。您似乎正在使用專門爲Linux設計的代碼,但您使用的是Windows。 – Zenexer 2014-10-26 20:18:44
那麼,我正在運行Windows版本,我沒有運行任何特殊的代碼。當我在命令行鍵入luarocks而沒有指定任何文件或選項時,以及它的win32版本(我只是雙重檢查),我得到這個錯誤。我會嘗試刪除它,並重新安裝它只是爲了確保。 – fleegle2000 2014-10-26 21:39:23
Windows上的LuaRocks提供了一個'pwd'二進制文件。它應該在'tools'目錄的某個地方。你的LuaRocks模塊的文件路徑看起來是錯誤的 - 應該有在那裏的版本('2.2')... – siffiejoe 2014-10-26 22:33:23