After getting past my last issue, I can compile gtk2 just fine But
when I do a require ‘gtk2’, I get an error.
Here’s a quick example of the error from just doing the require by
itself in irb.
irb(main):001:0> require ‘gtk2’
NameError: undefined method color_selection' for class
Gtk::ColorSelectionDialog’
from
/mytest/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /mytest/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from /mytest/ruby/lib/ruby/site_ruby/1.9.1/gtk2/base.rb:25:in
rescue in <top (required)>' from /mytest/ruby/lib/ruby/site_ruby/1.9.1/gtk2/base.rb:21:in
<top (required)>’
from
/mytest/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from /mytest/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from /mytest/ruby/lib/ruby/site_ruby/1.9.1/gtk2.rb:11:in <top (required)>' from /mytest/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require’
from
/mytest/ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require' from (irb):1 from /mytest/ruby/bin/irb:12:in
’
I’m using a rather basic ruby install to reproduce this.
ruby-1.9.3p0 (built myself)
pkg-config-1.1.3.gem (from gem)
cairo-1.10.2.gem (from gem)
I see this with both the ruby-gnome2-1.1.2 release, and the latest
snapshot(as of Feb 05, 2012) from github
The machine it is running on is RHEL 5.7, which has
gcc 4.1.2 (Red Hat 4.1.2-51)
gtk2-2.10.4-21.el5_5.6
cairo-1.2.4-5.el5
So I see RG_DEF_ALIAS(“colorsel”, “color_selection”); in
“rbgtkcolorselectiondialog.c”
Indeed, I don’t see, I’m guessing, a rg_color_selection method?
I dug on this for a bit, but got tired. Maybe I’ll get luck and figure
it out, any ideas?
Thanks