小编JSt*_*ger的帖子

如何解决Windows上的Rails找不到的'libcurl'

这让我很头疼.我正在继续一个从Linux开始的Rails项目,当我在Ruby Mine上运行Puma时我会继续这样做:

Error:[rake --tasks] DL is deprecated, please use Fiddle
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.
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/ffi-1.9.14-x86-mingw32/lib/ffi/library.rb:147:in `block in ffi_lib'
[...]
Run Code Online (Sandbox Code Playgroud)

现在,我尝试了什么?

  • 我按照这个步骤在Windows上成功安装了Puma
  • 我下载curl-7.50.1-win32-mingw并把它放在"C:/ curl"
  • 我将C:/ curl/bin和C:/ curl/include添加到PATH中
  • 我成功安装了curb gem gem …

windows curl ruby-on-rails libcurl rubymine

19
推荐指数
3
解决办法
5254
查看次数

标签 统计

curl ×1

libcurl ×1

ruby-on-rails ×1

rubymine ×1

windows ×1