我是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天,我只是想安裝這個。沒有運氣!
有人可以幫我解決這個問題嗎?基本步驟。請認爲我不知道如何操作窗口。當談論固定術語的術語並幫助我解決這個問題時,請轉到基本層面。
期待您的大力支持和幫助。
在此先感謝。
[錯誤安裝FeedZirra](http:// stackoverflow。com/questions/2919145/error-installing-feedzirra) – shingara 2010-09-21 15:48:50
嗨,我不認爲它是一個重複的問題,因爲這是在Windows XP上,Ruby 1.8.7另外他們提供的答案是我試圖在此處安裝的遏制,但失敗:( – gkolan 2010-09-22 01:57:22