问题描述
安装时出现以下错误:
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 hererake 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 hererake 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:
-
从此处找到的一个软件包中取一个
libcurl.dll
, https://curl.haxx.se/download.html#Win64 ,并将其放在PATH上.
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:
如何解决"libcurl"在Windows上的Rails中找不到
这篇关于如何在Windows 7 64bit上安装libcurl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!