Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
错误-“;未找到fb.python的LuaRocks模块;_Lua_Ubuntu 16.04_Torch_Luarocks - Fatal编程技术网

错误-“;未找到fb.python的LuaRocks模块;

错误-“;未找到fb.python的LuaRocks模块;,lua,ubuntu-16.04,torch,luarocks,Lua,Ubuntu 16.04,Torch,Luarocks,我正在尝试实现一个库,它是Ubuntu 16.04中的一个库。我已经安装了所有依赖项。在谷歌搜索和stackoverflow的帮助下,我检查了每个依赖项是否正确安装 但是,当我执行Github页面中提到的/run.sh时,我得到以下错误 /home/username/torch/install/bin/luajit: /home/username/torch/install/share/lua/5.1/trepl/init.lua:389: /home/username/torch/instal

我正在尝试实现一个库,它是Ubuntu 16.04中的一个库。我已经安装了所有依赖项。在谷歌搜索和stackoverflow的帮助下,我检查了每个依赖项是否正确安装

但是,当我执行Github页面中提到的
/run.sh
时,我得到以下错误

/home/username/torch/install/bin/luajit: /home/username/torch/install/share/lua/5.1/trepl/init.lua:389: /home/username/torch/install/share/lua/5.1/trepl/init.lua:389: module 'fb.python' not found:No LuaRocks module found for fb.python
no field package.preload['fb.python']
no file '/home/username/.luarocks/share/lua/5.1/fb/python.lua'
no file '/home/username/.luarocks/share/lua/5.1/fb/python/init.lua'
no file '/home/username/torch/install/share/lua/5.1/fb/python.lua'
no file '/home/username/torch/install/share/lua/5.1/fb/python/init.lua'
no file './fb/python.lua'
no file '/home/username/torch/install/share/luajit-2.1.0-beta1/fb/python.lua'
no file '/usr/local/share/lua/5.1/fb/python.lua'
no file '/usr/local/share/lua/5.1/fb/python/init.lua'
no file '/home/username/.luarocks/lib/lua/5.1/fb/python.so'
no file '/home/username/torch/install/lib/lua/5.1/fb/python.so'
no file '/home/username/torch/install/lib/fb/python.so'
no file './fb/python.so'
no file '/usr/local/lib/lua/5.1/fb/python.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/username/.luarocks/lib/lua/5.1/fb.so'
no file '/home/username/torch/install/lib/lua/5.1/fb.so'
no file '/home/username/torch/install/lib/fb.so'
no file './fb.so'
no file '/usr/local/lib/lua/5.1/fb.so'
no file '/usr/local/lib/lua/5.1/loadall.so'

stack traceback:
[C]: in function 'error'
/home/username/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
main.lua:8: in main chunk
[C]: in function 'dofile'
...name/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
ls: cannot access '*.txt': No such file or directory
此问题在Torch目录中,不在项目中。 因此,请指导我如何解决这个问题,或者什么地方出了问题


另外,我是Linux新手。

您需要先安装Torch
th和luarock
安装Torch后,这两个命令都将可用,请参见

我已安装并验证了我的安装。