手电筒 test.sh、/usr/bin/lua:找不到模块 'paths'
Torch test.sh, /usr/bin/lua: module 'paths' not found
我正在尝试在 linux mint
中安装 torch
。
这是我的/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
然后,我使用以下命令安装了 torch
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
安装成功。
但是,当我键入 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 ?
这是怎么回事?
在 ~/.bashrc
中添加 . ~/torch/install/bin/torch-activate
使 test.sh
脚本 运行.
我正在尝试在 linux mint
中安装 torch
。
这是我的/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
然后,我使用以下命令安装了 torch
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
安装成功。
但是,当我键入 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 ?
这是怎么回事?
在 ~/.bashrc
中添加 . ~/torch/install/bin/torch-activate
使 test.sh
脚本 运行.