mvz/ruby-gir-ffi — Issue #24: Error loading gir_ffi
Author: glaville
Created: 2012-02-27 12:08:16+00:00
State: open

I get the following error when trying to load gir_ffi on my Ubuntu 11.04 system using ruby 1.9.3-p0.

```
$ irb -r gir_ffi
gems/ruby-1.9.3-p0/gems/gir_ffi-0.2.3/lib/gir_ffi/module_base.rb:5:in `method_missing': undefined method `strv_get_type' for GLib:Module (NoMethodError)
from gems/ruby-1.9.3-p0/gems/gir_ffi-0.2.3/lib/ffi-gobject/base.rb:25:in `'
from gems/ruby-1.9.3-p0/gems/gir_ffi-0.2.3/lib/ffi-gobject/base.rb:1:in `'
from rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from gems/ruby-1.9.3-p0/gems/gir_ffi-0.2.3/lib/ffi-gobject.rb:3:in `'
from rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from gems/ruby-1.9.3-p0/gems/gir_ffi-0.2.3/lib/gir_ffi.rb:19:in `'
from rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/init.rb:281:in `block in load_modules'
from rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/init.rb:279:in `each'
from rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/init.rb:279:in `load_modules'
from rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/init.rb:20:in `setup'
from rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb.rb:53:in `start'
from rubies/ruby-1.9.3-p0/bin/irb:16:in `

'

```

All the recommanded introspection packages in the README are installed on my system,
and I installed the corresponding *-dev to try to solve the problem, without effect.

The library worked before on my system and works on another computer using ArchLinux :
Could this be related to an update of glib or ruby-gir-ffi ? (I tried to reinstall the gem, without success).

Regards