我无法安装一些luaJIT依赖项

时间:2017-02-24 17:23:40

标签: ubuntu torch luajit

我正在尝试在我的Ubuntu 16.0.4中安装以下luaJIT依赖项 我试着通过运行以下命令来做到这一点:

for NAME in dpnn nn optim optnet csvigo cutorch cunn fblualib torchx tds; do luarocks install $NAME;  done

系统对我的权限提出质疑,并向我回复了下面显示的部分错误列表:

mkdir: cannot create directory
‘/home/rkenaya/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master’:
Permission denied mkdir: cannot create directory
‘/home/rkenaya/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master’:
Permission denied mkdir: cannot create directory
‘/home/rkenaya/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master’:
Permission denied Warning: Failed searching manifest: Failed creating
temporary cache directory
/home/rkenaya/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master
mkdir: cannot create directory
‘/home/rkenaya/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master’:
Permission denied mkdir: cannot create directory
‘/home/rkenaya/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master’:
Permission denied mkdir: cannot create directory
‘/home/rkenaya/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master’:
Permission denied Warning: Failed searching manifest: Failed creating
temporary cache directory
/home/rkenaya/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master

我非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

上校三十二,

我找到了解决问题的方法。实际上sudo应该在命令前面加上,但问题是当你这样做时:

$ sudo for nAME in dpnn nn optim optnet csvigo cutorch cunn fblualib torchx tds;做luarocks安装$ NAME;完成

它会给你一个错误。

替代方案是: 在dpnn nn中的NAME,用于极好的optnet csvigo cutorch cunn fblualib torchx tds;做sudo luarocks安装$ NAME; DONE 这适用于linux和os-x。

或者您也可以逐个安装依赖项,如下所示:

sudo luarocks安装dpnn sudo luarocks安装nn .. .. .. sudo luarocks安装tds