我是轨道新手。我正在使用 Windows XP。
我有这个版本的红宝石。
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
我安装了 Rails 2.3.8。
在观看 Rails Cast 168 之后,我正在尝试安装 feedzirra。
首先,我尝试使用 gem install pauldix-feedzirra 进行安装。我得到了这个错误。
C:\Ruby>gem install pauldix-feedzirra
Building native extensions. This could take a while...
ERROR: Error installing pauldix-feedzirra:
ERROR: Failed to build gem native extension.
C:/Ruby/bin/ruby.exe extconf.rb
checking for curl-config... no
checking for main() in -lcurl... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby/bin/ruby
--with-curl-dir
--without-curl-dir
--with-curl-include
--without-curl-include=${curl-dir}/include
--with-curl-lib
--without-curl-lib=${curl-dir}/lib
--with-curllib
--without-curllib
extconf.rb:12: Can't find libcurl or curl/curl.h (RuntimeError)
Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
options to extconf.
Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/taf2-curb-0.5.
4.0 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/taf2-curb-0.5.4.0/ext/gem_make.
out
接下来我尝试了 gem install 路边。我在PaulDix FeedZirra页面上找到了这个,他建议我们Todd Fisher正在研究 libcurl 的 Ruby 绑定,这被称为遏制
现在,我收到此错误
C:\Ruby>gem install curb
Building native extensions. This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.
C:/Ruby/bin/ruby.exe extconf.rb
"-g -O2 -DFD_SETSIZE=256 $(cflags)"
checking for curl-config... no
checking for main() in -lcurl... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby/bin/ruby
--with-curl-dir
--without-curl-dir
--with-curl-include
--without-curl-include=${curl-dir}/include
--with-curl-lib
--without-curl-lib=${curl-dir}/lib
--with-curllib
--without-curllib
extconf.rb:19: Can't find libcurl or curl/curl.h (RuntimeError)
Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
options to extconf.
Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/curb-0.7.8 for
inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/curb-0.7.8/ext/gem_make.out
当错误说是因为它找不到 libcurl 或 curl/curl.h 时,我做了一些谷歌搜索,找到了Download Wizard的链接。Rails 新手的最佳选择是使用curl 可执行文件(如各种论坛和文章中所建议的那样),我这样做了。提取文件。安装了exe文件。现在我认为libcurl问题已经解决了。但??
好的,现在为了安装 feedzirra,我也需要安装 libxml。因此,通过一些谷歌搜索,我最终来到了Libxml ruby forge,下载了 libxml-ruby-1.1.3 gem 并将其放在 C:\Ruby\bin 文件夹中。
现在,认为一切就绪,我准备去学习提要解析,我输入 gem install pauldix-feedzirra。我收到相同的错误“找不到 libcurl 或 curl/curl.h”以及我之前得到的相同旧列表。
在过去的 3 天里,我只是想安装它。没运气!
有人可以帮我解决这个问题吗?基本步骤。请认为我不知道如何操作Windows。当您谈论问题修复术语并帮助我解决此问题时,请转到该基本级别。
期待您的大力帮助和支持。
提前致谢。