作者: 藤岡和夫
日時: 2009/4/03(21:34)
On Fri, 03 Apr 2009 20:18:59 +0900
"U.Nakamura" <usa@...> さんwrote:

> gemでNokogiri入れると、1.8用のバイナリをインストールしてくれ
> やがるのが原因なだけで、Nokogiri自体が1.9.1に対応していないわ
> けではないです。
> gemが1.8用のバイナリをインストールするという腐った挙動なのが
> 問題なだけということで、Nokogiriには罪はございません。

 Windowsのコンパイル環境の整備の仕方はよくわかっていないですが、rakeを
使ってもその問題に到達しないですね。rake.batもそのままではだめだと思う。1.8
との共存下では。1.9.1が起動するようにrake.batを書き換えても

C:\Scripts\Ruby\tenderlove-nokogiri>c:\ruby-1.9.1\bin\rake
(in C:/Scripts/Ruby/tenderlove-nokogiri)
** CHANGELOG.rdoc is missing or in the wrong format for auto-intuiting.
   run `sow blah` and look at its text files
c:/Ruby-1.9.1/bin/ruby -w -Ilib;ext;bin;test -e 'require "rubygems"; require "te
st/unit"; require "test/css/test_nthiness.rb"; require "test/css/test_parser.rb"
; require "test/css/test_tokenizer.rb"; require "test/css/test_xpath_visitor.rb"
; require "test/hpricot/test_alter.rb"; require "test/hpricot/test_builder.rb";
require "test/hpricot/test_parser.rb"; require "test/hpricot/test_paths.rb"; req
uire "test/hpricot/test_preserved.rb"; require "test/hpricot/test_xml.rb"; requi
re "test/html/sax/test_parser.rb"; require "test/html/test_builder.rb"; require
"test/html/test_document.rb"; require "test/html/test_document_encoding.rb"; req
uire "test/html/test_named_characters.rb"; require "test/html/test_node.rb"; req
uire "test/test_convert_xpath.rb"; require "test/test_css_cache.rb"; require "te
st/test_gc.rb"; require "test/test_memory_leak.rb"; require "test/test_nokogiri.
rb"; require "test/test_reader.rb"; require "test/test_xslt_transforms.rb"; requ
ire "test/xml/node/test_save_options.rb"; require "test/xml/sax/test_parser.rb";
 require "test/xml/sax/test_push_parser.rb"; require "test/xml/test_attr.rb"; re
quire "test/xml/test_builder.rb"; require "test/xml/test_cdata.rb"; require "tes
t/xml/test_comment.rb"; require "test/xml/test_document.rb"; require "test/xml/t
est_document_encoding.rb"; require "test/xml/test_document_fragment.rb"; require
 "test/xml/test_dtd.rb"; require "test/xml/test_dtd_encoding.rb"; require "test/
xml/test_entity_reference.rb"; require "test/xml/test_node.rb"; require "test/xm
l/test_node_encoding.rb"; require "test/xml/test_node_set.rb"; require "test/xml
/test_processing_instruction.rb"; require "test/xml/test_reader_encoding.rb"; re
quire "test/xml/test_text.rb"; require "test/xml/test_unparented_node.rb"; requi
re "test/xml/test_xpath.rb"'
c:/Ruby-1.9.1/lib/ruby/1.9.1/test/unit/assertions.rb:31: warning: shadowing oute
r local variable - line
C:/Scripts/Ruby/tenderlove-nokogiri/lib/nokogiri.rb:6:in `require': 126: 指定さ
れたモジュールが見つかりません。   - c:/Ruby-1.9.1/lib/ruby/gems/1.9.1/gems/noko
giri-1.2.3-x86-mswin32-60/ext/nokogiri/native.so (LoadError)
        from C:/Scripts/Ruby/tenderlove-nokogiri/lib/nokogiri.rb:6:in `<top (req
uired)>'
        from C:/Scripts/Ruby/tenderlove-nokogiri/test/helper.rb:8:in `require'
        from C:/Scripts/Ruby/tenderlove-nokogiri/test/helper.rb:8:in `<top (requ
ired)>'
        from C:/Scripts/Ruby/tenderlove-nokogiri/test/css/test_nthiness.rb:1:in
`require'
        from C:/Scripts/Ruby/tenderlove-nokogiri/test/css/test_nthiness.rb:1:in
`<top (required)>'
        from -e:1:in `require'
        from -e:1:in `<main>'
rake aborted!
Command failed with status (1): [c:/Ruby-1.9.1/bin/ruby -w -Ilib;ext;bin;te...]

(See full trace by running task with --trace)

藤岡 和夫
kazuf@...
日曜プログラマのひとりごと http://homepage1.nifty.com/kazuf/renewal.html