I have RVM running and it is working brilliantly, but I can't seem to figure out how to install ruby-gnome2. I have followed the steps on this tutorial, which are:
rvm use 1.9.1 # I use 1.9.1 which should work with ruby-gnome2
wget http://downloads.sourceforge.net/ruby-gnome2/ruby-gnome2-all-0.19.4.tar.gz
tar zxf ruby-gnome2-all-0.19.4.tar.gz
cd ruby-gnome2-all-0.19.4/
ruby extconf.rb —ruby=`which ruby`
make
make install
This produces no errors, so I assume it worked. So I try to test it with:
$ irb
irb(main):001:0> require 'gtk2'
Which gives me this error:
irb(main):001:0> require 'gtk2'
LoadError: no such file to load -- gtk2
Why am I not able to install ruby-gnome2?
Install system dependecies:
sudo apt-get install libglib2.0-dev libatk1.0-dev libcairo-dev libsqlite3-dev libpango1.0-dev libgtk2.0-dev libgdk-pixbuf2.0
Install gtk2 gem which is ruby-gnome2:
gem install gtk2
You can run this tiny script to verify that gtk2 is installed:
require 'gtk2'
win = Gtk::Window.new("My ruby-gnome2 project")
win.show_all
Gtk.main
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With