Can anyone give tips on how to get wxRuby working with Windows 7 (64-bit) and the Ruby 2.0 from RubyInstaller.org? I installed wxRuby with the following command: gem install wxruby-ruby19 No errors were reported during installation. Any sample program fails, however, on the following line: require ''wx'' I cannot figure out the cause of the load error, though think it may be when the require method is trying to load the DLL (if memory serves, that file name is wxruby2.so). Jamal
I have not tried installing wx myself but from the ruby installer documentation you will need to use the following line gem install wxruby-ruby19 --platform=ruby after installing the dev kit. On 12 April 2013 19:39, Jamal Mazrui <empower@smart.net> wrote:> Can anyone give tips on how to get wxRuby working with Windows 7 (64-bit) > and the Ruby 2.0 from RubyInstaller.org? > > I installed wxRuby with the following command: > > gem install wxruby-ruby19 > > > No errors were reported during installation. Any sample program fails, > however, on the following line: > > require ''wx'' > > > I cannot figure out the cause of the load error, though think it may be > when the require method is trying to load the DLL (if memory serves, that > file name is wxruby2.so). > > Jamal > > ______________________________**_________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/**listinfo/wxruby-users<http://rubyforge.org/mailman/listinfo/wxruby-users> >_______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
On 12 April 2013 21:46, Phillip and Kerrie <philkez@gmail.com> wrote:> I have not tried installing wx myself but from the ruby installer > documentation you will need to use the following line > > gem install wxruby-ruby19 --platform=ruby > > after installing the dev kit. > > > On 12 April 2013 19:39, Jamal Mazrui <empower@smart.net> wrote: > >> Can anyone give tips on how to get wxRuby working with Windows 7 (64-bit) >> and the Ruby 2.0 from RubyInstaller.org? >> >> I installed wxRuby with the following command: >> >> gem install wxruby-ruby19 >> >> >> No errors were reported during installation. Any sample program fails, >> however, on the following line: >> >> require ''wx'' >> >> >> I cannot figure out the cause of the load error, though think it may be >> when the require method is trying to load the DLL (if memory serves, that >> file name is wxruby2.so). >> >> Jamal >> >> ______________________________**_________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org >> http://rubyforge.org/mailman/**listinfo/wxruby-users<http://rubyforge.org/mailman/listinfo/wxruby-users> >> > >_______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Thanks for the response. Strangely, the gem command with the ruby platform parameter does not work for me. I get the following error: ERROR: While executing gem ... (ArgumentError) malformed format string - %) To ensure I had the latest gem manager, I did do the following command first: gem update --system The wxRuby gem was the first gem I tried to install after a fresh installation of 32-bit Ruby 2.0. I then tried again without the Ruby platform parameter, and the gem seemed to install successfully. However, when I try to run the dialogs.rb sample, I get the following error: c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'': incompatible library version - c:/ruby200/lib/ruby/gems/2.0.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wxruby2.so (LoadError) from c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'' from c:/ruby200/lib/ruby/gems/2.0.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wx.rb:12:in `<top (required)>'' from c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require'' from c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'' from c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'' from dialogs.rb:8:in `<main>'' On 4/12/2013 7:46 AM, Phillip and Kerrie wrote:> I have not tried installing wx myself but from the ruby installer > documentation you will need to use the following line > > gem install wxruby-ruby19 --platform=ruby > > after installing the dev kit. > > > On 12 April 2013 19:39, Jamal Mazrui <empower@smart.net > <mailto:empower@smart.net>> wrote: > > Can anyone give tips on how to get wxRuby working with Windows 7 > (64-bit) and the Ruby 2.0 from RubyInstaller.org? > > I installed wxRuby with the following command: > > gem install wxruby-ruby19 > > > No errors were reported during installation. Any sample program > fails, however, on the following line: > > require ''wx'' > > > I cannot figure out the cause of the load error, though think it > may be when the require method is trying to load the DLL (if > memory serves, that file name is wxruby2.so). > > Jamal > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org <mailto:wxruby-users@rubyforge.org> > http://rubyforge.org/mailman/listinfo/wxruby-users > > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users_______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
I verified that wxRuby does work with Ruby 1.93, so an incompatibility seems to have been introduced with Ruby 2.0. It may be as simple as a version number conflict or unexpected encoding, but I have not been able to resolve this. Any help would be appreciated in getting Ruby 2.0, wxRuby, and Windows 7 to work together. Jamal On 4/12/2013 8:44 AM, Jamal Mazrui wrote:> Thanks for the response. > > Strangely, the gem command with the ruby platform parameter does not > work for me. I get the following error: > > ERROR: While executing gem ... (ArgumentError) > malformed format string - %) > > > To ensure I had the latest gem manager, I did do the following command > first: > > gem update --system > > > The wxRuby gem was the first gem I tried to install after a fresh > installation of 32-bit Ruby 2.0. I then tried again without the Ruby > platform parameter, and the gem seemed to install successfully. > However, when I try to run the dialogs.rb sample, I get the following > error: > > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in > `require'': incompatible library version - > c:/ruby200/lib/ruby/gems/2.0.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wxruby2.so > (LoadError) > from > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in > `require'' > from > c:/ruby200/lib/ruby/gems/2.0.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wx.rb:12:in > `<top (required)>'' > from > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in > `require'' > from > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in > `rescue in require'' > from > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in > `require'' > from dialogs.rb:8:in `<main>'' > > > On 4/12/2013 7:46 AM, Phillip and Kerrie wrote: >> I have not tried installing wx myself but from the ruby installer >> documentation you will need to use the following line >> >> gem install wxruby-ruby19 --platform=ruby >> >> after installing the dev kit. >> >> >> On 12 April 2013 19:39, Jamal Mazrui <empower@smart.net >> <mailto:empower@smart.net>> wrote: >> >> Can anyone give tips on how to get wxRuby working with Windows 7 >> (64-bit) and the Ruby 2.0 from RubyInstaller.org? >> >> I installed wxRuby with the following command: >> >> gem install wxruby-ruby19 >> >> >> No errors were reported during installation. Any sample program >> fails, however, on the following line: >> >> require ''wx'' >> >> >> I cannot figure out the cause of the load error, though think it >> may be when the require method is trying to load the DLL (if >> memory serves, that file name is wxruby2.so). >> >> Jamal >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org <mailto:wxruby-users@rubyforge.org> >> http://rubyforge.org/mailman/listinfo/wxruby-users >> >> >> >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users_______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
After testing on Linux, I found an incompatability with wxRuby''s binary gem, and Ruby 1.9.3 p392. I will be looking into creating a 2.0 Compatible Gem for Windows, and Linux systems here shortly, and see about pushing the gem to RubyForge. On Mon, Apr 15, 2013 at 7:04 AM, Jamal Mazrui <empower@smart.net> wrote:> I verified that wxRuby does work with Ruby 1.93, so an incompatibility > seems to have been introduced with Ruby 2.0. It may be as simple as a > version number conflict or unexpected encoding, but I have not been able to > resolve this. Any help would be appreciated in getting Ruby 2.0, wxRuby, > and Windows 7 to work together. > > Jamal > > > On 4/12/2013 8:44 AM, Jamal Mazrui wrote: > > Thanks for the response. > > Strangely, the gem command with the ruby platform parameter does not work > for me. I get the following error: > > ERROR: While executing gem ... (ArgumentError) > malformed format string - %) > > > To ensure I had the latest gem manager, I did do the following command > first: > > gem update --system > > > The wxRuby gem was the first gem I tried to install after a fresh > installation of 32-bit Ruby 2.0. I then tried again without the Ruby > platform parameter, and the gem seemed to install successfully. However, > when I try to run the dialogs.rb sample, I get the following error: > > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in > `require'': incompatible library version - > c:/ruby200/lib/ruby/gems/2.0.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wxruby2.so > (LoadError) > from > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in > `require'' > from > c:/ruby200/lib/ruby/gems/2.0.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wx.rb:12:in > `<top (required)>'' > from > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in > `require'' > from > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in > `rescue in require'' > from > c:/ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in > `require'' > from dialogs.rb:8:in `<main>'' > > > On 4/12/2013 7:46 AM, Phillip and Kerrie wrote: > > I have not tried installing wx myself but from the ruby installer > documentation you will need to use the following line > > gem install wxruby-ruby19 --platform=ruby > > after installing the dev kit. > > > On 12 April 2013 19:39, Jamal Mazrui <empower@smart.net> wrote: > >> Can anyone give tips on how to get wxRuby working with Windows 7 (64-bit) >> and the Ruby 2.0 from RubyInstaller.org? >> >> I installed wxRuby with the following command: >> >> gem install wxruby-ruby19 >> >> >> No errors were reported during installation. Any sample program fails, >> however, on the following line: >> >> require ''wx'' >> >> >> I cannot figure out the cause of the load error, though think it may be >> when the require method is trying to load the DLL (if memory serves, that >> file name is wxruby2.so). >> >> Jamal >> >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> > > > > _______________________________________________ > wxruby-users mailing listwxruby-users@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wxruby-users > > > > > _______________________________________________ > wxruby-users mailing listwxruby-users@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wxruby-users > > > > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >-- Mario Steele Fleet Captain CO - Geo 99 CO - USS T''hy''la XO - Diplomatic Corps - Second Life http://www.iftcommand.com/chapters/thyla/ http://www.trekfederation.com _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Hi Mario,> I will be looking into creating a 2.0 Compatible Gem for Windows, and Linux > systems here shortly, and see about pushing the gem to RubyForge.That will be wonderful! Thanks in advance. Regards, Zhimin -- Posted via http://www.ruby-forum.com/.
Mario Steele wrote in post #1105738:> After testing on Linux, I found an incompatability with wxRuby''s binary > gem, and Ruby 1.9.3 p392. I will be looking into creating a 2.0 > Compatible > Gem for Windows, and Linux systems here shortly, and see about pushing > the > gem to RubyForge. >same problem exists on OS X too. -- Posted via http://www.ruby-forum.com/.