title: Error while installing lua-requests using luarocks
body: <p>Hello good people of stackoverflow,</p>
  <p>I'm having trouble installing the lua-requests module using <code>luarocks install lua-requests</code> in the command line. A few of the dependencies of said module will be installed without a problem but <code>luasec</code> is causing a problem.</p>
  <p>At first, I got the following error:</p>
  <pre><code>C:\Users\user&gt;luarocks install luasec
  Installing https://luarocks.org/luasec-0.9-1.src.rock
  
  Error: Could not find header file for OPENSSL
    No file openssl/ssl.h in c:/external/include
    No file openssl/ssl.h in c:/mingw/include
    No file openssl/ssl.h in c:/windows/system32/include
  You may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command.
  Example: luarocks install luasec OPENSSL_DIR=/usr/local
  </code></pre>
  <p>However, I was able to fix it by downloading OpenSSL and using the following command in the command line:</p>
  <p><code>C:\Users\user&gt;luarocks install luasec OPENSSL_DIR=&quot; *path to openssl directory* &quot;</code></p>
  <p>Which then led to the following error:</p>
  <pre><code>C:\Users\user&gt;luarocks install luasec OPENSSL_DIR=&quot; *path to openssl directory* &quot;
  Installing https://luarocks.org/luasec-0.9-1.src.rock
  
  c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot find -llibssl32MD
  c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot find -llibcrypto32MD
  collect2.exe: error: ld returned 1 exit status
  
  Error: Build error: Failed compiling module ssl.dll
  </code></pre>
  <p>After googling for a while I found the following issue <a href="https://github.com/brunoos/luasec/issues/150" rel="nofollow noreferrer">https://github.com/brunoos/luasec/issues/150</a>.</p>
  <p>I tried renaming the dll's but again no luck. So, now I'm kinda stuck and don't know what to do... I'd be extremely grateful if anyone had any tips or advice on how to proceed.</p>
  <p>Thanks in advance and have a nice day :)</p>