安装FeedZirra时出错 [英] Error installing FeedZirra

查看:142
本文介绍了安装FeedZirra时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ruby on Rails的新手.我对Feed解析感到很兴奋,但是在安装FeedZirra时遇到此错误.

I am new to Ruby on Rails. I am excited about Feed parsing but when I install FeedZirra I am getting this error.

我使用Windows 7和Ruby 1.8.7.

I use Windows 7 and Ruby 1.8.7.

请帮助.预先感谢.

C:\Ruby187>gem sources -a http://gems.github.com
http://gems.github.com added to sources

C:\Ruby187>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:/Ruby187/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:/Ruby187/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:/Ruby187/lib/ruby/gems/1.8/gems/taf2-curb-0
.5.4.0 for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/taf2-curb-0.5.4.0/ext/gem_ma
ke.out

推荐答案

您需要为curb gem安装libcurl,而您的应用程序则依赖于libcurl.您可以在此处获得它,但您必须靠自己就安装而言.我不是Windows用户,对不起.

You need to install libcurl for the curb gem, which your app depends on somewhere. You can get it here, but you're on your own as far as installation goes. I'm not a windows user, sorry.

这篇关于安装FeedZirra时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆