作者: 藤岡和夫
日時: 2009/4/08(20:34)
On Wed, 08 Apr 2009 10:02:22 +0900
"U.Nakamura" <usa@...> さんwrote:

> こんにちは、なかむら(う)です。
> 
> In message "[TSruby:308] Re: Ruby 1.9.1 の歩き方"
>     on Apr.07,2009 23:22:53, <kazuf@...> wrote:
> >  1.9.1のbinディレクトリに指定されたモジュールのDLL(msvcrt-ruby18.dll)を
> > コピーしても動きませんね。
> 
> であれば、libxmlやlibxsltのDLLがパスの通ったところにないんじ
> ゃないでしょうか?(これはrubyのバージョン関係なし)

 何をアホなことやってるんみたいなことを言われるかと思ったのですが^^;)

 そうでもないのかな^^)次のようなエラーになりますね。もう一つ試したのは、msvcrt-ruby191.dll
をコピーしてmsvcrt-ruby18.dllにrenameしてみたけどね。おそらく同じようなエラーが出たと思う。

C:\Scripts\Ruby>c:\ruby-1.9.1\bin\ruby nokogeturl.rb
c:/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/nokogiri-1.2.3-x86-mswin32-60/ext/nokogi
i/native.so: [BUG] Segmentation fault
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]

-- control frame ----------
c:0008 p:-2606536 s:0021 b:0021 l:000020 d:000020 TOP
c:0007 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC  :require
c:0006 p:0126 s:0015 b:0015 l:000014 d:000014 TOP    c:/ruby-1.9.1/lib/ruby/gem
/1.9.1/gems/nokogiri-1.2.3-x86-mswin32-60/lib/nokogiri.rb:6
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :require
c:0003 p:0023 s:0007 b:0007 l:001f34 d:000d98 EVAL   nokogeturl.rb:3
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001f34 d:001f34 TOP    <main>:33
---------------------------
-- Ruby level backtrace information-----------------------------------------
c:/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/nokogiri-1.2.3-x86-mswin32-60/lib/nokogi
i.rb:6:in `require'
c:/ruby-1.9.1/lib/ruby/gems/1.9.1/gems/nokogiri-1.2.3-x86-mswin32-60/lib/nokogi
i.rb:6:in `<top (required)>'
nokogeturl.rb:3:in `require'
nokogeturl.rb:3:in `<main>'

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

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