如何在Windows 7 64bit上安装libcurl [英] how to install libcurl on windows 7 64bit

查看:385
本文介绍了如何在Windows 7 64bit上安装libcurl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装时出现以下错误:

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!

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.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': The specified module could not be found.

. Could not open library 'libcurl.so.4.dll': 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)

推荐答案

我绕过LoadError: Could not open library 'libcurl'的一种简单方法是:

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.

(我只是将其放在\ruby24\bin\下)

(链接已更新,但最初指向版本7.40 )

有关更多详细信息,请参见以下问题的答案:

For further details, see the answers to these questions:

Typhoeus Windows安装

如何解决"libcurl"在Windows上的Rails中找不到

铁路Typhoeus卷曲故障

这篇关于如何在Windows 7 64bit上安装libcurl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆