gpt4 book ai didi

ruby-on-rails - 如何在 Windows 7 64 位上安装 libcurl

转载 作者:行者123 更新时间:2023-12-04 08:51:11 25 4
gpt4 key购买 nike

我在安装时收到以下错误:
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 JWTC:/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' 的简单方法是:

  • 拿个 libcurl.dll来自此处找到的其中一个软件包,https://curl.haxx.se/download.html#Win64 , 并将其放在 PATH 上。

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

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

  • 有关更多详细信息,请参阅以下问题的答案:
  • 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
  • 关于ruby-on-rails - 如何在 Windows 7 64 位上安装 libcurl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41114671/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com