From: Stefan Mahlitz Date: 2007-08-23T06:16:25+09:00 Subject: Re: wxruby and rubygems seems not to work? kazaam schrieb: > okay I'm a bit further. I found out that this here: > > #!/usr/bin/env ruby > > $Verbose=true > > require 'wx' > include Wx > > class MinimalApp < App > def on_init > Frame.new(nil, -1, "The Bare Minimum").show() > end > end > > > MinimalApp.new.main_loop > > Works perfectly if I start it with "ruby -rubygems gui.rb" but I can't get it to run if I wanna start it simple with ./gui.rb ?!? Also if I include: > require 'rubygems' > it refuses to work... that's really weired?!? Can you show the error message? If it is "permission denied" you'd have to change the file permission to executable. Make sure that you include a shebang line in your gui.rb Running ruby -rrubygems should be equal to having 'require "rubygems"' in your file. Stefan