如何在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!
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)
我解决LoadError: Could not open library 'libcurl'
一种简单方法LoadError: Could not open library 'libcurl'
是:
-
从这里找到的一个软件包中获取
libcurl.dll
, https://curl.haxx.se/gknw.net/7.40.0/dist-w64/ ,并将其放在PATH上。(我只是把它放在
\ruby24\bin\
)
有关详细信息,请参阅以下问题的答案:
-
jekyll服务依赖错误 – 无法打开’lib curl’
-
Typhoeus Windows安装
-
如何解决Windows上没有使用Rails找到的’libcurl’
-
Rails Typhoeuscurl麻烦