56347d1b:~ tools$ sudo gem install wxruby Successfully installed wxruby-1.9.3-universal-darwin 1 gem installed Installing ri documentation for wxruby-1.9.3-universal-darwin... Installing RDoc documentation for wxruby-1.9.3-universal-darwin... 56347d1b:~ tools$
And the way I test it like this:
#!/usr/bin/env ruby
require "rubygems"
require "wx"
include Wx
class MinimalApp < App
def on_init
Frame.new(nil, -1, "The bare Minimum").show()
end
end
MinimalApp.new.main_loop
And I get the following error:
/Users/tools/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/tools/RubymineProjects/Test/Test.rb Testing started at 12:41 AM ... /Users/tools/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- wx (LoadError) from /Users/tools/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /Users/tools/RubymineProjects/Test/Test.rb:4:in `<top (required)>' from -e:1:in `load' from -e:1:in `<main>'
Can anyone help me, it happens to everything I have installed since 1.9.3

New Topic/Question
Reply



MultiQuote






|