mvz/ruby-gir-ffi — Issue #19: undefined method `add' for `GLib::PtrArray'
Author: PhilT
Created: 2011-11-26 16:55:32+00:00
State: open

I'm running a minimal install of Ubuntu 11.04 and I've installed the following:

apt-get install -y libgtk-3-dev gir1.2-gtk-3.0 libgirepository1.0-dev

gem install gir_ffi

When I do:

require 'ffi-gtk3'

I get:

NameError: undefined method `add' for `GLib::PtrArray'
from .../gems/gir_ffi-0.2.1/lib/ffi-glib/ptr_array.rb:19:in `singletonclass'
from .../gems/gir_ffi-0.2.1/lib/ffi-glib/ptr_array.rb:11:in `'
from .../gems/gir_ffi-0.2.1/lib/ffi-glib/ptr_array.rb:6:in `'
from .../gems/gir_ffi-0.2.1/lib/ffi-glib/ptr_array.rb:1:in `'
from ...lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from ...lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from .../gems/gir_ffi-0.2.1/lib/ffi-glib.rb:8:in `'
from ...lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from ...lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from .../gems/gir_ffi-0.2.1/lib/gir_ffi.rb:18:in `'
from ...lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from ...lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from .../gems/gir_ffi-0.2.1/lib/ffi-gtk3.rb:1:in `'
from ...lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from ...lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from ...lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'

Any ideas?