noreply at rubyforge.org
2007-Aug-22 13:04 UTC
[wxruby-development] [ wxruby-Support Requests-13276 ] can not load wxruby2.so on win98
Support Requests item #13276, was opened at 2007-08-22 09:04 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=219&aid=13276&group_id=35 Category: None Group: None Status: Open Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: can not load wxruby2.so on win98 Initial Comment: I have installed One-Click Installer - Windows 1.8.6-25. Then I have installed wxruby: C:\WINDOWS>gem install wxRuby C:\WINDOWS>ruby.exe c:\Programme\ruby\bin\gem.rb install wxRuby Select which gem to install for your platform (i386-mswin32) 1. wxruby 1.9.0 (i386-mswin32) 2. wxruby 1.9.0 (powerpc-darwin8.10.0) 3. wxruby 1.9.0 (i686-darwin8.4.1) 4. wxruby 1.9.0 (i686-linux) 5. Skip this gem 6. Cancel installation> 1Successfully installed wxruby-1.9.0-i386-mswin32 But if I try some example it will not work. require "wx" include Wx class HelloWorld < App def on_init helloframe = Frame.new(nil, -1, "Hello World") StaticText.new(helloframe,-1,"Hello World") helloframe.show() end end HelloWorld.new.main_loop ERROR:>ruby wxTest_.rbC:/PROGRAMME/RUBY/lib/ruby/gems/1.8/gems/wxruby-1.9.0-i386-mswin32/lib/wxruby2.so: 1157: Ein der f?r die Ausf?hrung dieser Anwendung notwendige Bibliothekdateien kann nicht gefunden werden. - C:/PROGRAMME/RUBY/lib/ruby/gems/1.8/gems/wxruby-1.9.0-i386-mswin32/lib/wxruby2.so (LoadError) from C:/PROGRAMME/RUBY/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'' from C:/PROGRAMME/RUBY/lib/ruby/gems/1.8/gems/wxruby-1.9.0-i386-mswin32/lib/wx.rb:12 from C:/PROGRAMME/RUBY/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'' from C:/PROGRAMME/RUBY/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'' from wxTest_.rb:1>Exit code: 1I try to load wxruby2.so via dl: fname = ''c:\Programme\ruby\lib\ruby\gems\1.8\gems\wxruby-1.9.0-i386-mswin32\lib\wxruby2.so'' p File.exists?(fname) require ''dl'' p TestDLL = DL.dlopen(fname) RESULT:>ruby test.rbtrue test.rb:5:in `initialize'': unknown error (RuntimeError) from test.rb:5:in `dlopen'' from test.rb:5>Exit code: 1(the dl itself is ok, I tried it with other dlls) Any idea? is there any dependency on some library like a special msvc??? Thanks Jan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=219&aid=13276&group_id=35