I try to run menu.rb from gtk2/ sample directory:
rb menu.rb
Error is this:
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require': /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/x86_64-linux/glib2.so: undefined symbol: rb_thread_critical - /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/x86_64-linux/glib2.so (LoadError) from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/glib2.rb:100:in rescue in <top (required)>' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/glib2.rb:96:in
<top (required)>’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/gtk2/base.rb:12:in <top (required)>' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/gtk2.rb:11:in
<top (required)>’
from
/pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /pkg/Ruby/1.9.3p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from menu.rb:11:in `’
(My ruby prefix is /pkg/Ruby/1.9.3 etc…)
My glib.so probably does not have glib2.so rb_thread_critical symbol.
Does one of you know how to get this symbol? Or is there a workaround?
So far, everything else seems to work ok when I compile the rubygnome
bindings.