2017-07-03 109 views
0

我已經按照的說明安裝了割槍,它附帶了Lua 5.1,但之前在我的系統上安裝了Lua 5.3。現在,當我嘗試運行使用火炬計劃,我得到了以下錯誤消息:安裝割槍不能正常工作

/Users/Marcel/torch/install/share/lua/5.1/trepl/init.lua:389: module 'Settings.arguments' not found:No LuaRocks module found for Settings.arguments 
    no field package.preload['Settings.arguments'] 

no file '/usr/local/share/lua/5.1/Settings/arguments.lua' 
no file '/usr/local/share/lua/5.1/Settings/arguments/init.lua' 

彷彿火炬正在尋找在系統目錄中它自己的版本的Lua的,只包含了以前安裝這似乎版。有沒有辦法解決這個問題,或者我必須卸載Lua 5.3嗎?

謝謝!

+0

使用Torch和Linux時,它有時會變成黑魔法。嘗試1)重新安裝Torch,2)如果您是在網關後工作,則需要通過傳遞'export {http,https,ftp} _proxy ='http:// @來設置代理服務器的詳細信息: '''命令,*但*確保您的用戶名和密碼中的所有非數字和非字母都是百分比編碼。嗯,可以按原樣使用'.',但我在密碼中輸入';',並且必須用'%3B'替換它。你可以使用[這個工具來轉換字符](http://r12a.github.io/apps/conversion/)。 –

回答

0

只需將​​的值更改爲LUAXX,如5.2版本的安裝說明中所述。對於5.3版本,使用LUA53

git clone https://github.com/torch/distro.git ~/torch --recursive 
cd ~/torch 

# clean old torch installation 
./clean.sh 
# optional clean command (for older torch versions) 
# curl -s https://raw.githubusercontent.com/torch/ezinstall/master/clean-old.sh | bash 

# https://github.com/torch/distro : set env to use lua 
TORCH_LUA_VERSION=LUA53 ./install.sh