1

Launching a Ruby Script from the bash does not work, even with the sahbang

view story
linux-howto

http://askubuntu.com – I am using Ubuntu 12.04 64 bits. I've recently installed the ruby1.9.1 package and the wx-ruby gem using : sudo gem install wxruby-ruby19 in order to install the ruby1.9 compatible version. So I wrote a ruby script called fenetre_wx.rb (which has already execution right) #!/usr/bin/env ruby require "wx" include Wx class FenetrePrincipale < App def on_init Frame.new(nil, -1, "My app in Ruby with WxRuby", Point.new(-1,-1), Size.new(640,480)).show end end FenetrePrincipale.new.main_loop No problem when I call ruby fenetre_wx.rb But when I do : ./fenetre_wx.rb (HowTos)