2010-09-21 119 views
0

我是rails新手。我正在使用Windows XP。在Windows XP上安装LibCurl + LibXML + FeedZirra时出现问题

我有这个版本的红宝石。

ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32] 

我安装了Rails 2.3.8。

我试图安装feedzirra看投168

了Rails首先,我尝试使用宝石安装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 curb。我发现这对PaulDix FeedZirra页面,在这里他曾建议我们,Todd Fisher正在红宝石libcurl中被称为curb

现在的结合,我收到此错误

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 executable(正如各种论坛和文章所建议的那样)我做到了。提取文件。安装了exe文件。现在我认为libcurl问题已经解决了。但??

好吧,现在为了安装feedzirra,我也需要安装libxml。因此,通过一些Google搜索,我最终在Libxml ruby forge处下载了libxml-ruby-1.1.3 gem并将其放在C:\ Ruby \ bin文件夹中。

现在,想到所有设置,我准备去学习feed解析,我进入gem install pauldix-feedzirra。我得到了同样的错误“无法找到libcurl或curl/curl.h”和我之前得到的旧列表。

过去3天,我只是想安装这个。没有运气!

有人可以帮我解决这个问题吗?基本步骤。请认为我不知道如何操作窗口。当谈论固定术语的术语并帮助我解决这个问题时,请转到基本层面。

期待您的大力支持和帮助。

在此先感谢。

+0

[错误安装FeedZirra](http:// stackoverflow。com/questions/2919145/error-installing-feedzirra) – shingara 2010-09-21 15:48:50

+0

嗨,我不认为它是一个重复的问题,因为这是在Windows XP上,Ruby 1.8.7另外他们提供的答案是我试图在此处安装的遏制,但失败:( – gkolan 2010-09-22 01:57:22

回答

0

是的,遏制她将很快安装。但不是taf2-curb。和taf2-curb - 这需要feedzirra。看看我与taf2-curb的战斗,它不会在Windows中进行编译。
顺便说一下,我改用饲料,与feedzirra边缘有一些积极的支持问题,没有时间来解决它。