Hello everyone,
I am a newbie (started learning ruby 3 weeks ago) :icon_redface:
and I can not get out from this comiling error.
when I try to run this sample program:
#!/usr/bin/ruby
# ZetCode Ruby GTK tutorial
#
# This program centers a window on
# the screen
#
# author: jan bodnar
# website: [url]www.zetcode.com[/url]
# last modified: April 2009
require 'rubygems'
require 'gtk2'
class RubyApp < Gtk::Window
def initialize
super
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?
Thank you for your help, regards
Giovanni