4

I am installing itorch according to https://github.com/facebook/iTorch, and I have installed ipython. Some errors are as followed:

$ 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
Lei
  • 607
  • 2
  • 6
  • 18
  • This might be a better question for SuperUser (which is another StackExchange Q&A site). According to the error, It looks like OpenSSL is not installed on your machine – Chase Walden Nov 22 '15 at 15:22
  • Thank you for your answer! However, I have installed openssl. I don't know how to solve this problem. lei@lei-All-Series:~$ sudo apt-get install openssl Reading package lists... Done Building dependency tree Reading state information... Done openssl is already the newest version. openssl set to manually installed. – Lei Nov 23 '15 at 11:33
  • 1
    I solve it! Just re-install Torch and CUDA. – Lei Nov 23 '15 at 13:17
  • 1
    Anyone else have this problem? I do have openssl installed and this error still occurs for me. Reinstalling torch did not help. – Frank Bryce Apr 17 '16 at 05:47

1 Answers1

1

Run sudo apt-get install -y libssl-dev. It surely works

Prayalankar
  • 198
  • 1
  • 15