2013-06-28 48 views
2

我想安裝feedzirra,但我遇到了麻煩。feedzirra windows最新的遏制版本問題

當我安裝Feedzirra時,它尋找curb (0.7.18)

我按照說明在Windows上安裝路邊

>gem install curb -- --with-curl-lib=C:/curl-7.27.0-devel-mingw 
32/bin --with-curl-include=C:/curl-7.27.0-devel-mingw32/include 
Fetching: curb-0.8.4.gem (100%) 
Temporarily enhancing PATH to include DevKit... 
Building native extensions with: '--with-curl-lib=C:/curl-7.27.0-devel-mingw32/b 
in --with-curl-include=C:/curl-7.27.0-devel-mingw32/include' 
This could take a while... 
Successfully installed curb-0.8.4 
Installing ri documentation for curb-0.8.4 
1 gem installed 

我試圖卸載並重新安裝feedzirra,它並沒有幫助,因爲我得到以下信息

Installing curb (0.7.18) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension 
. 

    C:/RailsInstaller/Ruby1.9.3/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:/RailsInstaller/Ruby1.9.3/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:23:in `<main>': 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:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9 
.1/gems/curb-0.7.18 for inspection. 
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/curb-0.7. 
18/ext/gem_make.out 
An error occurred while installing curb (0.7.18), and Bundler cannot continue. 
Make sure that `gem install curb -v '0.7.18'` succeeds before bundling. 

如何強制feedzirra使用最新版本的路邊?或者如何安裝限制版(0.7.18)版本?

+0

你在使用Bundler嗎? – zeantsoi

+0

是的,我在Rails應用程序中使用了Feedzirra。 – gkolan

+0

使用'/ bin'代替'/ lib'使用+1 –

回答

1

嘗試添加-v 0.7.18gem install curb

>gem install curb -v 0.7.18 -- --with-curl-lib=C:/curl-7.27.0-devel-mingw32/bin --with-curl-include=C:/curl-7.27.0-devel-mingw32/include 

最新Feedzirracurb ~> 0.7.15作爲依賴,所以curb-0.8.4將不適合 - 這裏是一個explanationbundler site

此外,如果你正在使用類似RVM(如果我沒記錯有一個名爲pik窗戶幾乎類似的實用程序),然後確保你安裝寶石,應用程序所使用的寶石。

+0

它工作正常!謝謝! – gkolan