私はレール初心者です。私はWindows XPで作業しています。
私はこのバージョンのルビーを持っています。
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
Rails 2.3.8 がインストールされています。
Rails Cast 168を見た後、あらゆる方法を試しながらfeedzirraをインストールしようとしています。
まず、gem install 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は、 curbと呼ばれる libcurl の Ruby バインディングに取り組んでいるとのことでした。
今、私はこのエラーが発生しています
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実行可能ファイルを使用することです(さまざまなフォーラムや記事で提案されているように)私はそれを行いました. ファイルを抽出しました。exeファイルをインストールしました。これで libcurl の問題は解決したと思います。しかし??
さて、feedzirra をインストールするには、libxml もインストールする必要があります。それで、少しグーグルで検索して、ここでLibxml ruby forgeにたどり着き、 libxml-ruby-1.1.3 ジェムをダウンロードして C:\Ruby\bin フォルダーに配置しました。
これで準備が整ったので、フィードの解析を学習する準備が整いました。gem install pauldix-feedzirra に入ります。同じエラー「libcurlまたはcurl/curl.hが見つかりません」と、以前に取得したものと同じ古いリストが表示されます。
過去3日間、これをインストールしようとしています。運が悪い!
誰かがこれを修正するのを手伝ってくれますか? 基本的な手順。Windowsの操作方法が分からないと思ってください。問題解決の用語について話すときは、その基本的なレベルに進んで、この問題を解決するのを手伝ってください。
皆様のご支援とご支援を心よりお待ちしております。
前もって感謝します。