2013-03-10 4 views
9

ruby​​で起動コマンドプロンプトを使用してjekyllとjekyll-s3を使用しようとしています。 gem install jekyll-s3を使用すると、libxml2が見つからないというエラーが表示され、依存関係のインストールに関するヘルプについてはhttp://nokogiri.org/tutorials/installing_nokogiri.htmlにアクセスする必要があります。そのページにアクセスすると、gem install nokogiriを使用する必要があることがわかります。しかし、私はこれを行うときに同様のエラーが発生します。nokogiriのインストール中にエラーが発生しました

私は同様の質問をここで聞いたError installing Nokogiri 1.5.0 with rails 3.1.0 and ubuntuしかし、私はWindowsを使用しているとして私はsudoコマンドを使用することはできません。私はまた、この質問libxml2 missing when installing nokogiri's gem devkit (windows)を見つけ、質問に含まれているコマンドを使用しようとし、私は質問に含まれている同じエラー出力を得た。そこのコメントは役に立たなかったようです。

以下にnokogiriをインストールする際のエラーの出力全体を示しました。私はいくつかの前提条件パッケージ/ライブラリをインストールする必要があると推測していますが、どのようにすればよいか分かりません。これらの宝石が適切に働くにはどうしたらよいですか?

ruby 2.0.0p0 (2013-02-24) [x64-mingw32] 

C:\Users\Ryan Lang>gem install nokogiri 
Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
ERROR: Error installing nokogiri: 
    ERROR: Failed to build gem native extension. 

C:/Ruby200-x64/bin/ruby.exe extconf.rb 
The system cannot find the path specified. 
checking for libxml/parser.h... no 
----- 
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokog 
iri.html for help with installing dependencies. 
----- 
*** 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:/Ruby200-x64/bin/ruby 
    --with-zlib-dir 
    --without-zlib-dir 
    --with-zlib-include 
    --without-zlib-include=${zlib-dir}/include 
    --with-zlib-lib 
    --without-zlib-lib=${zlib-dir}/ 
    --with-iconv-dir 
    --without-iconv-dir 
    --with-iconv-include 
    --without-iconv-include=${iconv-dir}/include 
    --with-iconv-lib 
    --without-iconv-lib=${iconv-dir}/ 
    --with-xml2-dir 
    --without-xml2-dir 
    --with-xml2-include 
    --without-xml2-include=${xml2-dir}/include 
    --with-xml2-lib 
    --without-xml2-lib=${xml2-dir}/ 
    --with-xslt-dir 
    --without-xslt-dir 
    --with-xslt-include 
    --without-xslt-include=${xslt-dir}/include 
    --with-xslt-lib 
    --without-xslt-lib=${xslt-dir}/ 
    --with-libxslt-config 
    --without-libxslt-config 
    --with-pkg-config 
    --without-pkg-config 
    --with-libxml-2.0-config 
    --without-libxml-2.0-config 
    --with-pkg-config 
    --without-pkg-config 
    --with-libiconv-config 
    --without-libiconv-config 
    --with-pkg-config 
    --without-pkg-config 


Gem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/nokog 
iri-1.5.6 for inspection. 
Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/ext/nok 
ogiri/gem_make.out 

C:\Users\Ryan Lang> 
+0

モハメッドが山に行かない場合、山はモハメッドに来なければなりません.. http://stackoverflow.com/questions/5778804/installing-ruby-gems-manually/10386302#10386302幸運を祈る! –

答えて

9

WindowsのRuby 2.0.0およびx64のnokogiriはまだサポートされていないと思います。私も同様の問題を抱えています。

https://github.com/sparklemotion/nokogiri/issues/864にアクセスして、下に移動して更新のスレッドを「監視」してください。

+0

これは本当ですか? – n8gard

+0

私は32ビット版のWindowsを使用しており、同じエラーが発生します。それがWindows x86でも動作すると思いますか? – Chris

+0

@Chris彼はRubyインストーラの32ビットバージョンを意味すると思います。それは確かに実際に動作します。 http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p353.exe?direct –

関連する問題