我正在根据 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

最佳答案

运行 sudo apt-get install -y libssl-dev。它肯定有效

关于ubuntu-15.04 - Ubuntu15.04安装itorch报错: Missing dependencies for itorch: luacrypto uuid lzmq >= 0. 4.2,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33856145/

10-13 01:04