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:
Error:[rake --tasks
I had the same issue and tried the same steps that OP has listed. After breaking my head, cursing the existence of windows for some time and almost convincing the client to shift to a nix server I figured the libcurl.dll that I downloaded from https://curl.haxx.se/ (as suggested in all related posts) was corrupt.
Downloaded the one provided here http://www.dlldownloader.com/libcurl-dll/ and viola the ffi was able to load this one.
Hope this helps anyone else facing this issue
The solution which worked for me was download the dll, keep the exact name libcurl.dll and copy it to c:\windows\system32
I just had the same problem on Windows 7 x64 and answered about it here. (Similar to you, I tried a lot of things that I thought should work but didn't.)
What worked was:
To take a libcurl.dll
from one of the packages found here, https://curl.haxx.se/download.html#Win64, and put it on the PATH
.
(Link was updated, but originally pointed to version 7.40
)
\ruby24\bin\
C:\Ruby24-x64\bin
(Here are things I tried that didn't work:)
PATH
: the cygcurl-4.dll
obtained from the current Curl Download Wizardcygcurl-4.dll
to libcurl.dll
and putting it on the PATH
msys2
package libcurl-devel 7.57.0-1
msys-curl-4.dll
(from msys2
found at msys64\usr\bin
) to libcurl.dll
I didn't try building curl / libcurl from the latest source because I already have the latest according to
pacman -Ss libcurl
:msys/libcurl 7.57.0-1 (libraries) [installed] Multi-protocol file transfer library (runtime) msys/libcurl-devel 7.57.0-1 (development) [installed] Libcurl headers and libraries
More details about this in these other questions:
jekyll serve dependency error - Could not open 'lib curl'
Typhoeus Windows installation
Rails Typhoeus Curl Trouble
how to install libcurl on windows 7 64bit