views:

126

answers:

1

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?

A: 

I hope that, when you followed those instructions, on the line:

ruby extconf.rb —ruby=`which ruby`

You actually:

  • used two dashes -- (the code in the page replaced those two dashes with a long one)
  • replaced the `which ruby` (note the backticks) with the actual output of running that command on your OS (with no backticks)

If not, that's your error.

If you actually did all those, please post the output you got from the ruby extconf.rb ... line.

Porta