Require 'gtk2' fails

require ‘gtk2’ results in :

/home/dml/.rvm/gems/ruby-1.9.2-p180/gems/gtk2-1.1.5/lib/gtk2.rb: line 13
Gtk-MESSAGE **:Failed to load module “canberra-gtk-module”: cannot open shared object file: No such file
or directory

I have 2 laptops with the same application. I have only used 1 for some
I updated the second with latest application and also updated it to
opensuse 12.2 .

Both laptops are running opensuse 12.2 and gtk2 gem 1.1.5 .

The environment has:


ls -l /usr/lib/gtk-2.0/modules/

-rwxr-xr-x 1 root root 22252 Jul 15 23:12
-rwxr-xr-x 1 root root 332056 Jul 15 19:08

and ls -l /usr/lib64/gtk-2.0/modules/

-rwxr-xr-x 1 root root 23256 Jul 16 19:18
-rwxr-xr-x 1 root root 57104 Jul 16 12:22
-rwxr-xr-x 1 root root 327544 Jul 16 12:22

So why does one system work and the other not. How do I tell where ruby
is searching for the shared object file?

I can get past the gtk problem by adding /usr/lib64/gtk-2.0/modules/ to
$LD_LIBRARY_PATH which was previously undefined. Note that is also
undefined on the working system.

Now I get a segmentation on openssl.

I noticed that the working system has 1.9.2-290 and the broken has
1.9.2=p180 . I have updated the p180 system bu now need to add the
required gems.

After installing 1.9.2-p290 I loaded the gems gtk2 & mysql. The program
now runs. So why does this system need LD_LIBRARY_PATH and why did I
need p290?