[英]Installing libCurl - ruby 1.9.3 .. rails 3.2.12 .. Windows
So, I'm trying to get feedzirra up and running... ruby 1.9.3p448
Rails 3.2.12
因此,我正在尝试启动并运行ruby 1.9.3p448
... ruby 1.9.3p448
Rails 3.2.12
I went to http://curl.haxx.se/download.html#Win32 and downloaded Win32 2000/XP 7.32.0 libcurl SSL
. 我去http://curl.haxx.se/download.html#Win32并下载了Win32 2000/XP 7.32.0 libcurl SSL
。 It may be obvious, but this is libcurl -v 7.32
. 可能很明显,但这是libcurl -v 7.32
。
I unzipped the aforementioned file into c:\\libcurl
( so the bin, lib, and whatnot are directly in libcurl ). 我将上述文件解压缩到c:\\libcurl
(因此bin,lib和whatnot直接在libcurl中)。
I added c:\\libcurl\\bin
to the PATH
. 我将c:\\libcurl\\bin
到PATH
。
While in my app's working directory, I told bundler where to find the cURL dependencies with bundle config build.curb --with-curl-lib=C:\\libcurl\\bin --with-curl-include=C:\\libcurl\\include
. 在我应用程序的工作目录中时,我告诉捆绑器在哪里使用bundle config build.curb --with-curl-lib=C:\\libcurl\\bin --with-curl-include=C:\\libcurl\\include
。
I set the version of nokogiri to gem 'nokogiri', '~> 1.5.3'
in my gemfile, as it doesn't like the current -v 1.6.0. 我在gemfile中将nokogiri的版本设置为gem 'nokogiri', '~> 1.5.3'
,因为它不喜欢当前的-v 1.6.0。 This installs nokogiri -v 1.5.10
. 这将安装nokogiri -v 1.5.10
。
I set the version of feedzirra to gem 'feedzirra', github: 'pauldix/feedzirra', ref: '80cd357'
in my gemfile. 我在我的gemfile中将feedzirra的版本设置为gem 'feedzirra', github: 'pauldix/feedzirra', ref: '80cd357'
。
This installs some dependencies: 这将安装一些依赖项:
Using curb (0.8.4) - trying gem 'curb', '0.8.1'
and gem 'curb', '~> 0.7.15'
doesn't resolve the issue, just a heads up 使用遏制(0.8.4)-尝试使用gem 'curb', '~> 0.7.15'
gem 'curb', '0.8.1'
和gem 'curb', '~> 0.7.15'
并不能解决问题,请注意
Using loofah (1.2.1) 使用丝瓜络(1.2.1)
Using sax-machine (0.2.0.rc1) 使用sax-machine(0.2.0.rc1)
Using feedzirra (0.2.0.rc2) from git://github.com/pauldix/feedzirra.git (at 80cd357) - obviously 使用git://github.com/pauldix/feedzirra.git(at 80cd357)的feedzirra(0.2.0.rc2)-显然
bundle
is a success! bundle
是成功的! Problem isn't with bundle
, though. 问题不在于bundle
。 I can get the stuff to install. 我可以安装东西。 When trying rails s
or rails c
, I get the following: ( curb_core.so
does exist, though ) 当尝试使用rails s
或rails 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>'
Ummmm. 嗯 I rebooted. 我重启了。 For anyone ending up here... the question is the answer. 对于到此为止的任何人……问题就是答案。 Plus a reboot. 再加上重新启动。 I didn't know I had to reboot with this stuff? 我不知道我必须重启这些东西吗? I'm not gonna fight it! 我不会打架! Woot!! 哇!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.