如何在Windows 7 64bit上安装libcurl

时间:2016-12-13 06:10:13

标签: ruby-on-rails 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!

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)

1 个答案:

答案 0 :(得分:1)

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

  • 从此处找到的其中一个软件包https://curl.haxx.se/download.html#Win64中获取libcurl.dll,然后将其放在PATH上。

    (我只是把它放在\ruby24\bin\下)

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

有关详细信息,请参阅这些问题的答案: