0
你好同胞程序員,Luarocks無法安裝'異步'和'trepl'[錯誤:連接超時]
我是新來的Lua世界。我與this application工作,我不斷地最終收到以下錯誤試圖運行的代碼之後他們的自述:
/usr/bin/luajit: /usr/share/lua/5.1/trepl/init.lua:383: module 'display' not found:No LuaRocks module found for display
no field package.preload['display']
no file '/tmp/buildd/.luarocks/share/lua/5.1/display.lua'
no file '/tmp/buildd/.luarocks/share/lua/5.1/display/init.lua'
no file '/usr/share/lua/5.1/display.lua'
no file '/usr/share/lua/5.1/display/init.lua'
no file './display.lua'
no file '/usr/share/luajit-2.1.0-beta1/display.lua'
no file '/usr/local/share/lua/5.1/display.lua'
no file '/usr/local/share/lua/5.1/display/init.lua'
no file '/gpfs01/bethge/home/hmoriceau/.luarocks/share/lua/5.1/display.lua'
no file '/gpfs01/bethge/home/hmoriceau/.luarocks/share/lua/5.1/display/init.lua'
no file '/tmp/buildd/.luarocks/lib/lua/5.1/display.so'
no file '/usr/lib/lua/5.1/display.so'
no file './display.so'
no file '/usr/local/lib/lua/5.1/display.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/gpfs01/bethge/home/hmoriceau/.luarocks/lib/lua/5.1/display.so'
stack traceback:
[C]: in function 'error'
/usr/share/lua/5.1/trepl/init.lua:383: in function 'require'
stylization_train.lua:9: in main chunk
[C]: in function 'dofile'
/usr/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
當然我試圖運行一個sudo luarocks install display
,但出現以下錯誤:
Installing https://raw.githubusercontent.com/torch/rocks/master/display-scm-0.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/display-scm-0.rockspec... switching to 'build' mode
Missing dependencies for display:
async >= 1.0
luasocket >= 2.0
Using https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec... switching to 'build' mode
Cloning into 'async'...
fatal: unable to connect to github.com:
github.com[0: 192.30.253.113]: errno=Connection timed out
Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec - Failed cloning git repository.
有些人已經有similar errors,但我認爲這一個來源是不同的。我也認爲這個模塊的鏡像不太可能出現故障。
Lua版本:5.2.3 已安裝使用sudo apt-get install lua5.2
更新後& &升級了一切。
您的幫助表示感謝!
最佳,
Hichame