I\'m scratching my head on this error since similar errors refer to instances of compiling libcurl from source; however, I am just simply trying to get a former rails projec
sudo apt-get install libcurl4-openssl-dev worked for me.
I tried adding libcurl-devel 7.57.0-1
to msys2 (on Windows) but it didn't help. (pacman -Ss libcurl
showed it as installed:
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
So for anyone having the same problem on Windows, an easy way to get around the LoadError: Could not open library 'libcurl'
is to:
Take a libcurl.dll
from one of the packages found here, https://curl.haxx.se/gknw.net/7.40.0/dist-w64/, and put it on the PATH.
(I just put it under \ruby24\bin\
)
Related questions about the same problem:
jekyll serve dependency error - Could not open 'lib curl'
Typhoeus Windows installation
How to solve 'libcurl' not found with Rails on Windows
how to install libcurl on windows 7 64bit
Is libcurl properly installed? Typhoeus has no native extensions but it requires libcurl dynamic library (.so
) since it works with the FFI library:
# from lib/typhoeus/curl.rb
ffi_lib 'libcurl'
I would say that the development files (headers) are not needed so sudo apt-get install libcurl3
should do the trick (otherwise install the devel version w/ SSL support via sudo apt-get install libcurl4-openssl-dev
).