[exerb-dev:0446] 1.8.2でエラー

アーカイブの一覧に戻る

Keisuke Minami keisu****@rccn*****
2004年 12月 30日 (木) 23:27:44 JST


こんばんは。三並と申します。

Rubyを1.8.2アップグレードして、exerbを使ってみたところ
エラーが出てしまったので報告させていただきます。
とりあえず、原因とかは調べられていないので報告だけです。

テストしたのはこんなスクリプトです。
a.rb
----
#! ruby -Ks
p 1
----

以下は、エラーの表示

D:\>ruby -r exerb/mkexr a.rb
1

D:\>ruby "C:/Program Files/ruby-1.8/bin/exerb" a.exr
C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/win32/struct/image_dos_header.rb
:58:in `pack': cannot convert nil into Integer (TypeError)
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/win32/struct/image_dos_header.rb
:58:in `pack'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/win32/struct/base.rb:25:in
`size'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/win32/struct/base.rb:30:in
`read'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/win32/struct/base.rb:21:in
`read'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/win32/pe_file.rb:40:in `read'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/win32/pe_file.rb:28:in `read'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/win32/pe_file.rb:32:in
`new_from_binary'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/resource.rb:47:in
`new_from_pe_binary'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/executable.rb:20:in `initialize'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/executable.rb:27:in `new'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/executable.rb:27:in
`new_from_file'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/executable.rb:27:in `open'
        from C:/Program
Files/ruby-1.8/lib/ruby/site_ruby/1.8/exerb/executable.rb:27:in
`new_from_file'
        from C:/Program Files/ruby-1.8/bin/exerb:51:in `main'
        from C:/Program Files/ruby-1.8/bin/exerb:131

D:\>ruby -v
ruby 1.8.2 (2004-12-25) [i386-mswin32]

D:\>ruby "C:/Program Files/ruby-1.8/bin/exerb" --version
Exerb 3.2.0

よろしくお願いします。




exerb-developer メーリングリストの案内
アーカイブの一覧に戻る