' FFI'在iTorch中找不到包裹

时间:2016-05-18 17:02:24

标签: shell lua ffi torch

当我运行itorch命令时,我看到以下输出:

 Torch 7.0  Copyright (C) 2001-2011 Idiap, NEC Labs, NYU
 /usr/local/bin/lua: /usr/local/share/lua/5.2/itorch/IOHandler.lua:17: module 'ffi' not found:
 no field package.preload['ffi']
 no file '/usr/local/share/lua/5.2/ffi.lua'
 no file '/usr/local/share/lua/5.2/ffi/init.lua'
 no file '/usr/local/lib/lua/5.2/ffi.lua'
 no file '/usr/local/lib/lua/5.2/ffi/init.lua'
 no file './ffi.lua'
 no file '/usr/local/lib/lua/5.2/ffi.so'
 no file '/usr/local/lib/lua/5.2/loadall.so'
 no file './ffi.so'
stack traceback:
 [C]: in function 'require'
 /usr/local/share/lua/5.2/itorch/IOHandler.lua:17: in main chunk
 [C]: in function 'require'
 (command line):1: in main chunk
 [C]: in ?
Jupyter Console 4.1.1

ERROR: Kernel did not respond

Shutting down kernel

1 个答案:

答案 0 :(得分:0)

通过luarocks安装ffi

luarocks install torchffi