【问题标题】:Installing libCurl - ruby 1.9.3 .. rails 3.2.12 .. Windows安装 libCurl - ruby​​ 1.9.3 .. rails 3.2.12 .. Windows
【发布时间】:2026-01-16 02:35:01
【问题描述】:

所以,我正在尝试让 feedzirra 启动并运行...ruby 1.9.3p448Rails 3.2.12

  • 我去了http://curl.haxx.se/download.html#Win32并下载了Win32 2000/XP 7.32.0 libcurl SSL。这可能很明显,但这是libcurl -v 7.32

  • 我将上述文件解压缩到c:\libcurl(所以 bin、lib 等直接在 libcurl 中)。

  • 我将c:\libcurl\bin 添加到PATH

  • 在我的应用程序的工作目录中,我使用 bundle config build.curb --with-curl-lib=C:\libcurl\bin --with-curl-include=C:\libcurl\include 告诉 bundler 在哪里可以找到 cURL 依赖项。

  • 我在 gemfile 中将 nokogiri 的版本设置为 gem 'nokogiri', '~> 1.5.3',因为它不喜欢当前的 -v 1.6.0。这将安装nokogiri -v 1.5.10

  • 我在 gemfile 中将 feedzirra 的版本设置为 gem 'feedzirra', github: 'pauldix/feedzirra', ref: '80cd357'

  • 这会安装一些依赖项:

    使用遏制 (0.8.4) - 尝试 gem 'curb', '0.8.1'gem 'curb', '~> 0.7.15' 并不能解决问题,只是提醒

    使用丝瓜络(1.2.1)

    使用萨克斯机 (0.2.0.rc1)

    使用来自 git://github.com/pauldix/feedzirra.git (at 80cd357) 的 feedzirra (0.2.0.rc2) - 显然

bundle 成功了!不过,问题不在于bundle。我可以得到要安装的东西。尝试rails srails c 时,我得到以下信息:(curb_core.so 确实存在)

APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require': 126: The specified module could not be found.   - C:/Dropbox/Apps/rails_projects/ecorebox/.bundle/ruby/1.9.1/gems/curb-0.8.4/lib/curb_core.so (LoadError)
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/curb-0.8.4/lib/curl.rb:1:in `<top (required)>'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/curb-0.8.4/lib/curb.rb:1:in `<top (required)>'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
from APP_FOLDER/.bundle/ruby/1.9.1/bundler/gems/feedzirra-021a8d7f53d7/lib/feedzirra.rb:2:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from APP_FOLDER/config/application.rb:14:in `<top (required)>'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:39:in `require'
from APP_FOLDER/.bundle/ruby/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:39:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 libcurl curb feedzirra


    【解决方案1】:

    嗯。 我重新启动了。 对于任何在这里结束的人......问题就是答案。加上重新启动。我不知道我必须用这些东西重新启动?我不会打架的!呜呜!!

    【讨论】: