我现在面临参照Torch installation guide的Ubuntu14.04机上的安装问题。火炬包的混帐克隆后,火炬被安装在~/torch
我的主文件夹运行:
cd ~/torch; bash install-deps;
TORCH_LUA_VERSION=LUA51 ./install.sh
终端输出的一部分被公布如下:
/home/fit/torch/install/bin/lua: /home/fit/torch/pkg/torch/random.lua:3: module 'torchcwrap' not found:
no field package.preload['torchcwrap']
no file '/home/fit/.luarocks/share/lua/5.1/torchcwrap.lua'
no file '/home/fit/.luarocks/share/lua/5.1/torchcwrap/init.lua'
no file '/home/fit/torch/install/share/lua/5.1/torchcwrap.lua'
no file '/home/fit/torch/install/share/lua/5.1/torchcwrap/init.lua'
no file '/home/fit/deeptracking/deeptracking/tracker/torchcwrap.lua'
no file '/home/fit/.luarocks/lib/lua/5.1/torchcwrap.so'
no file '/home/fit/torch/install/lib/lua/5.1/torchcwrap.so'
no file './torchcwrap.so'
no file '/home/fit/torch/install/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/fit/torch/pkg/torch/random.lua:3: in main chunk
[C]: ?
make[2]: *** [random.c] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/fit/torch/install/bin/lua: /home/fit/torch/pkg/torch/TensorMath.lua:3: module 'torchcwrap' not found:
no field package.preload['torchcwrap']
no file '/home/fit/.luarocks/share/lua/5.1/torchcwrap.lua'
no file '/home/fit/.luarocks/share/lua/5.1/torchcwrap/init.lua'
no file '/home/fit/torch/install/share/lua/5.1/torchcwrap.lua'
no file '/home/fit/torch/install/share/lua/5.1/torchcwrap/init.lua'
no file '/home/fit/deeptracking/deeptracking/tracker/torchcwrap.lua'
no file '/home/fit/.luarocks/lib/lua/5.1/torchcwrap.so'
no file '/home/fit/torch/install/lib/lua/5.1/torchcwrap.so'
no file './torchcwrap.so'
no file '/home/fit/torch/install/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/fit/torch/pkg/torch/TensorMath.lua:3: in main chunk
[C]: ?
make[2]: *** [TensorMath.c] Error 1
make[1]: *** [CMakeFiles/torch.dir/all] Error 2
make: *** [all]
Error 2
Error: Build error: Failed building.
最后,我发现了一个类似的问题贴here。加入后“; ./?卢阿;”到LUA_PATH变量,随后instrallation效果很好。