How to solve 'libcurl' not found with Rails on Windows : <p>This is giving me a headache. I'm continuing a Rails project that started on Linux and I keep getting this when I run Puma on Ruby Mine:</p>

<pre><code>Error:[rake --tasks] DL is deprecated, please use Fiddle
rake aborted!
LoadError: Could not open library 'libcurl': The specified module could not be found.
Could not open library 'libcurl.dll': The specified module could not be found.
Could not open library 'libcurl.so.4': The specified module could not be found.
Could not open library 'libcurl.so.4.dll': The specified module could not be found.
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/ffi-1.9.14-x86-mingw32/lib/ffi/library.rb:147:in `block in ffi_lib'
[...]
</code></pre>

<p><strong>Now, what have I tried?</strong></p>

<ul>
<li>I installed Puma successfully on Windows following <a href="https://github.com/hicknhack-software/rails-disco/wiki/Installing-puma-on-windows" rel="noreferrer">this steps</a></li>
<li>I downloaded <code>curl-7.50.1-win32-mingw</code> and put it on "C:/curl"</li>
<li>I added C:/curl/bin and C:/curl/include to PATH</li>
<li>I installed successfully curb gem with <code>gem install curb --platform=ruby -- --with-curl-lib=C:/curl/bin --with-curl-include=C:/curl/include</code></li>
<li>I put the .dll files in Ruby bin folder, installed the certificate in curl/bin and even run the curl.exe just in case.</li>
</ul>

<p>I rebooted the machine but I keep seeing the same error.</p>

<p>I do not know what to do. <strong>How to successfully install libcurl on Windows for use with Rails</strong></p>
