Hi, I am having problems with running wxruby2 on windows. I have installed ruby through cygwin and have also installed the latest version of the wxRuby2 gem [wxruby2-preview (0.0.38)] When I try running this command ruby -rubygems minimal/minimal.rb I get this error message: /usr/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.38-i386-mswin32/lib/wxruby2.so: Permission denied - /usr/lib/ruby/gems/1.8/gems/wxruby2- preview-0.0.38-i386-mswin32/lib/wxruby2.so (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require. rb:33:in `require'' from /usr/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.38-i386-mswin32 /lib/wx.rb:12 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require. rb:33:in `gem_original_require'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require. rb:33:in `require'' from minimal/minimal.rb:6 So i decided to install the previous stable release of wxruby2 for windows as a gem [wxruby2-preview ( 0.0.36)] and this time i try running the same command again. However, i get this error message. Unable to load wxruby. Searched: /usr/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/bin /usr/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/lib /usr/lib/ruby/site_ruby/1.8 /usr/lib/ruby/site_ruby/1.8/i386-cygwin /usr/lib/ruby/site_ruby /usr/lib/ruby/1.8 /usr/lib/ruby/1.8/i386-cygwin I''ve also tried running ruby -rubygems -e "require ''wxruby2''" /usr/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/lib/wxruby2.so: Permission denied - /usr/lib/ruby/gems/1.8/gems/wxruby2- preview-0.0.36-i386-mswin32/lib/wxruby2.so (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require'' from -e:1 There actually is a file named wxruby2.so, and it''s file permission in the lib folder is as follows: total 7.0M drwxr-xr-x+ 2 Owner None 0 Jan 14 22:08 wx/ -rw-r--r-- 1 Owner None 775 Jan 14 22:08 wx.rb -rw-r--r-- 1 Owner None 7.0M Jan 14 22:08 wxruby2.so Can anyone please help me? I''m new to both ruby and wxwidgets but i''d really like to get this working. -- Thanks, Disha Al Baqui _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Disha Al Baqui wrote:> Hi, > > I am having problems with running wxruby2 on windows. > I have installed ruby through cygwin and have also installed the > latest version of the wxRuby2 gem [wxruby2-preview (0.0.38)]Hello Disha, The issue could be that the wxRuby2 gem is created for the native Windows build of Ruby, not the cygwin version. If you want Cygwin support you''ll have to compile wxRuby2 yourself, I believe. Otherwise, use the Ruby 1 click installer and then install the gem. Roy