0
我正試圖在linux mint
中安裝torch
。Torch test.sh,/ usr/bin/lua:未找到模塊「路徑」
這裏是我的/etc/linuxmint/info
輸出
RELEASE=17.2
CODENAME=rafaela
EDITION="Cinnamon 64-bit"
DESCRIPTION="Linux Mint 17.2 Rafaela"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_rafaela_cinnamon_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_rafaela_cinnamon.php
USER_GUIDE_URL=help:linuxmint
GRUB_TITLE=Linux Mint 17.2 Cinnamon 64-bit
我已經安裝了lua
。
$ which lua
/usr/bin/lua
$ lua -v
Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
然後,我一直在使用下面的命令
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
安裝成功完成安裝torch
。
但是,當我輸入th
時,我得到th: command not found
。
而且,當我運行該腳本test.sh
我得到的,
/usr/bin/lua
/usr/bin/lua: module 'paths' not found:
no field package.preload['paths']
no file '/usr/local/share/lua/5.2/paths.lua'
no file '/usr/local/share/lua/5.2/paths/init.lua'
no file '/usr/local/lib/lua/5.2/paths.lua'
no file '/usr/local/lib/lua/5.2/paths/init.lua'
no file '/usr/share/lua/5.2/paths.lua'
no file '/usr/share/lua/5.2/paths/init.lua'
no file './paths.lua'
no file '/usr/local/lib/lua/5.2/paths.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.2/paths.so'
no file '/usr/lib/lua/5.2/paths.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './paths.so'
stack traceback:
[C]: in function '_G.require'
[C]: in ?
這裏有什麼錯?
請注意,添加'torch-activate'會將** lua5.1 **設置爲默認的lua解釋器,它可能會使用** lua5.3 **(「真棒」窗口管理器)破壞某些應用程序。因此,我僅在每個終端會話中分別調用'torch-activate'。另外,請注意當您編寫模型樣板代碼時可能會反過來的** luajit **內存限制。 – minerals
我將它添加到./test.sh,它的功能就像一個魅力 – kishu