2010-05-27 61 views
2

我是Ruby on Rails的新手。我很興奮Feed解析,但是當我安裝FeedZirra時,我得到這個錯誤。安裝FeedZirra時出錯

我使用Windows 7和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 

回答

3

你需要安裝的libcurl爲curb寶石,其中您的應用程序依賴於某個地方。你可以得到它here,但是隻要安裝完成,你自己就可以了。我不是Windows用戶,對不起。

0

您需要安裝libcurl而不是curb寶石,但是對於taf2-curb寶石,只需在錯誤日誌中仔細查看即可。你可以在taf2-curb上找到我關於安裝的答案。

1

我也遇到了Ubuntu 12.0的這個bug。以下可能會有所幫助。

sudo apt-get install libcurl3 libcurl3-dbg libcurl3-gnutls libcurl3-nss 

gem install feedzirra 

工作!

1

在Ubuntu我不得不跑

sudo apt-get install libcurl3-dev 

然後跑了創業板重新安裝,併成功完成。