set_title "Center"
signal_connect "destroy" do
Gtk.main_quit
end
set_default_size 250, 200
set_window_position Gtk::Window::POS_CENTER
show
end
end
Gtk.init
window = RubyApp.new
Gtk.main
I get error :
/home/giovi/NetBeansProjects/center/lib/main.rb:12:in `require’: no such
file to load – gtk2 (LoadError)
from /home/giovi/NetBeansProjects/center/lib/main.rb:12
Does anyone now why? I looked up in Synaptic if package gtk2 is
installed
but I can not find it there.
I uninstalled package ruby1.8 and installed
ruby1.8-dev instead (the first one is missing
a few important files as suggested in topic http://railsforum.com/viewtopic.php?id=22116)
I then installed RubyGems (vers. 1.3.5) with Synaptic.
I finally typed in a terminal:
sudo gem install gtk2
and installation went fine.
Anyway when I compile the program the
error arises again.