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 `<main>'
(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.
on 2012-08-24 20:37
on 2012-08-27 14:00
Hi, In <498e73e7dff3f1c49969a438113c41ec@ruby-forum.com> "[ruby-gnome2-devel-en] rb_thread_critical - anyone knows this error?" on Fri, 24 Aug 2012 20:37:06 +0200, Marc Heiler <ruby-forum-incoming@andreas-s.net> wrote: > 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 - ... > My glib.so probably does not have glib2.so rb_thread_critical symbol. It seems that your build has a problem. Could you show how to install Ruby/GLib2? > 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. rb_thread_critical is defined in Ruby 1.8 but it's not defined in Ruby 1.9. So it's strange that your Ruby/GLib2 on Ruby 1.9 refers the symbol. Thanks, -- kou
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.