I am getting the following error while installing:
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/json_web_token-0.3.2/lib/json_web_token.rb:36: warning: already initialized constant JWT
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/jwt-1.5.6/lib/jwt/json.rb:4: warning: previous definition of JWT was here
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.
D:/data/catarse/config/application.rb:8:in
'
D:/data/catarse/Rakefile:4:in
'
(See full trace by running task with --trace)
Go to http://curl.haxx.se/download.html and download one of the following zip files: If you have a Windows 64 system, scroll to the Win64 - Generic section and look for the latest Win64 ia64 zip version with SSL support. It's normally second in the list. Click the version number to start the download.
All you need to use Curl is to run Command Prompt as administrator and execute Curl commands. For older versions of Windows 7 and 8, you will need to download and unpack Curl from the official website. In the bin folder, you will find the curl.exe file and libcurl library.
Curl is built statically so you do not have to distribute the prerequisite dynamic runtime. You can also download a prebuilt version (x86 and x64) from SourceForge. Show activity on this post. I had a lot of issues with curl for Windows.
Libcurl is a free, open source library for transferring data. It supports various protocols include FTP, FTPS, HTTP, HTTPS, GOPHER, TFTP, SCP, SFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP, SMTP, POP3, RTSP, and RTMP. I’ve been looking for a cross-platform HTTP library for my project, and libcurl seems to be the best choice.
Then build static libcurl with the following command: The generated libraries and header files are located at ../builds. Create a new win32 project in Visual Studio 2015 and copy all relevant header files and static libraries into the project.
These are the latest and most up to date official curl binary builds for Microsoft Windows. curl 7.79.1_2 was built and statically linked with The following tools/compilers were used in the build process: binutils-mingw-w64-i686 2.35.2 binutils-mingw-w64-x86_64 2.35.2 clang 11.1.0 mingw-w64 Package: mingw-w64-common
An easy way I got around the LoadError: Could not open library 'libcurl'
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.
(I just put it under \ruby24\bin\
)
(Link was updated, but originally pointed to version 7.40
)
For further details, see the answers to these questions:
jekyll serve dependency error - Could not open 'lib curl'
Typhoeus Windows installation
How to solve 'libcurl' not found with Rails on Windows
Rails Typhoeus Curl Trouble
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With