2011年8月12日

[ruby-list:48309] Re: WinXPでnokogiインストール

あおきです。

どう失敗するのかを書き忘れました。下のようなメッセージがでます(ASRも自前1.9.2も同じ)。

----

<ruby,p3.1.8>C:\ % gem install nokogiri
Building native extensions. This could take a while...

ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.

c:/PROGRA~1/ruby/bin/ruby.exe extconf.rb
checking for libxml/parser.h... *** 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
--srcdir=.
--curdir
--ruby=c:/PROGRA~1/ruby/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}/lib
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executab
le file. (RuntimeError)
You have to install development tools first.
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:446:in `try_compile'
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:853:in `block in find_header'
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
from c:/PROGRA~1/ruby/lib/ruby/1.9.1/mkmf.rb:852:in `find_header'
from extconf.rb:96:in `<main>'


Gem files will remain installed in c:/PROGRA~1/ruby/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0 for insp
ection.
Results logged to c:/PROGRA~1/ruby/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0/ext/nokogiri/gem_make.out

----
青木

投稿者 xml-rpc : 2011年8月12日 10:38
役に立ちました?:
過去のフィードバック 平均:(0) 総合:(0) 投票回数:(0)
本記事へのTrackback: http://hoop.euqset.org/blog/mt-tb2006.cgi/105698
トラックバック
コメント
コメントする




画像の中に見える文字を入力してください。