Ubuntu15.04安装itorch错误:缺少itorch的依赖项:luacrypto uuid lzmq> = 0.4.2

时间:2015-11-22 14:55:48

标签: ubuntu-15.04

我正在根据https://github.com/facebook/iTorch安装itorch,我已经安装了ipython。一些错误如下:

$ sudo apt-get install libzmq3-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libzmq3-dev is already the newest version.

lei@lei-All-Series:~/torch/iTorch$ sudo env "PATH=$PATH" luarocks make

Missing dependencies for itorch:
luacrypto 
uuid 
lzmq >= 0.4.2

Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luacrypto-0.3.2-1.src.rock... switching to 'build' mode

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luacrypto-0.3.2-1.src.rock - Could not find expected file openssl/evp.h, or openssl/evp.h for OPENSSL -- you may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command. Example: luarocks install luacrypto OPENSSL_DIR=/usr/local

lei@lei-All-Series:~/torch/iTorch$ luarocks make

Missing dependencies for itorch:
luacrypto 
uuid 
lzmq >= 0.4.2

Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luacrypto-0.3.2-1.src.rock... switching to 'build' mode

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luacrypto-0.3.2-1.src.rock - Could not find expected file openssl/evp.h, or openssl/evp.h for OPENSSL -- you may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command. Example: luarocks install luacrypto OPENSSL_DIR=/usr/local

1 个答案:

答案 0 :(得分:1)

运行sudo apt-get install -y libssl-dev。它确实有效