找不到“位”的LuaRocks模块

问题描述

我正在尝试使用torch7和LUA运行代码,但出现此错误。

    usr/local/torch/install/share/lua/5.2/trepl/init.lua:389: module 'bit' not found: No LuaRocks module found for 'bit'
        no field package.preload['bit']
        no file '/root/.luarocks/share/lua/5.2/bit.lua'
        no file '/root/.luarocks/share/lua/5.2/bit/init.lua'
        no file '/usr/local/torch/install/share/lua/5.2/bit.lua'
        no file '/usr/local/torch/install/share/lua/5.2/bit/init.lua'
        no file '/usr/local/torch/install/lib/lua/5.2/bit.lua'
        no file '/usr/local/torch/install/lib/lua/5.2/bit/init.lua'
        no file './bit.lua'
        no file '/home/shaurovd/.luarocks/share/lua/5.2/bit.lua'
        no file '/home/shaurovd/.luarocks/share/lua/5.2/bit/init.lua'
        no file '/root/.luarocks/lib/lua/5.2/bit.so'
        no file '/usr/local/torch/install/lib/lua/5.2/bit.so'
        no file '/usr/local/torch/install/lib/lua/5.2/loadall.so'
        no file './bit.so'
        no file '/home/shaurovd/.luarocks/lib/lua/5.2/bit.so'
stack traceback:
        [C]: in function 'error'
        /usr/local/torch/install/share/lua/5.2/trepl/init.lua:389: in function 'require'
        train.lua:16: in main chunk
        [C]: in function 'dofile'
        ...ocal/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
        [C]: in ?
Segmentation fault (core dumped)

我尝试在我的配置文件中本地安装“位”,因为我没有正在使用的服务器上的写入权限(Ubuntu 18.04):

luarocks install --deps bit --local

但是它显示:Error: No results matching query were found.

我该如何解决?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...