Forum: Ruby-Gnome 2 newbie: can't install on to os x 10.8.2

9aa744808c8d7f31dccbde1f57e985f1?d=identicon&s=25 Charles Monteiro (amiracam)
on 2013-03-14 16:14
I am very eager basically excited to use VisualRuby unfortunately:

went thru the entire homebrew , gtk , vr install , and it all seemed to
have installed ok, but when I tried to launch vr I got the following

process:53754): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:53754): GLib-CRITICAL **: void g_once_init_leave(volatile void
*, gsize): assertion `result != 0' failed

(process:53754): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:53754): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:53754): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:53754): GLib-GObject-CRITICAL **: void
g_type_add_interface_static(GType, GType, const GInterfaceInfo *):
assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:53754): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:53754): GLib-GObject-CRITICAL **: void
g_type_interface_add_prerequisite(GType, GType): assertion
`G_TYPE_IS_INTERFACE (interface_type)' failed

(process:53754): GLib-CRITICAL **: void g_once_init_leave(volatile void
*, gsize): assertion `result != 0' failed

(process:53754): GLib-GObject-CRITICAL **: void
g_type_add_interface_static(GType, GType, const GInterfaceInfo *):
assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:53754): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()



what do I need to do  ?

thanks
9aa744808c8d7f31dccbde1f57e985f1?d=identicon&s=25 Charles Monteiro (amiracam)
on 2013-03-14 16:57
first of all I should mention that on my Mac attempt that X11 starts
when I try to run VR. I had to install X11 to install and run a
diagramming app called DIA.

so I also tried on a Windows 7 Pro 64 bit installation , followed all
the steps which provided no error output and then attempted to launch vr
, got the following:

ruby 1.9.3p392 (2013-02-22) [i386-mingw32]

C:\Users\Charles Monteiro>vr
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in
`require':
126: The specified module could not be found.   -
C:/Ruby193/lib/ruby/gems/1.9.1
/gems/glib2-1.2.2-x86-mingw32/lib/glib2.so (LoadError)
        from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:i
n `rescue in require'
        from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:i
n `require'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/glib2-1.2.2-x86-mingw32/lib/gli
b2.rb:100:in `rescue in <top (required)>'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/glib2-1.2.2-x86-mingw32/lib/gli
b2.rb:96:in `<top (required)>'
        from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
        from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/gtk2-1.2.2-x86-mingw32/lib/gtk2
/base.rb:12:in `<top (required)>'
        from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
        from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/gtk2-1.2.2-x86-mingw32/lib/gtk2
.rb:11:in `<top (required)>'
        from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
        from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
n `require'
        from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/visualruby-0.1.2/vr:5:in `<top
(required)>'
        from C:/Ruby193/bin/vr:23:in `load'
        from C:/Ruby193/bin/vr:23:in `<main>'

C:\Users\Charles Monteiro>
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2013-03-17 11:36
(Received via mailing list)
Hi,

In <ab05771de02f8569f2d011d5ade63ad2@ruby-forum.com>
  "Re: [ruby-gnome2-devel-en] newbie: can't install on to os x 10.8.2"
on Thu, 14 Mar 2013 16:57:36 +0100,
  Charles Monteiro <ruby-forum-incoming@andreas-s.net> wrote:

> C:/Ruby193/lib/ruby/gems/1.9.1
> /gems/glib2-1.2.2-x86-mingw32/lib/glib2.so (LoadError)
>         from
> C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:i
> n `rescue in require'

Sorry. The package is broken. I've released a new
package. Could you try again?

Thanks
--
kou
9aa744808c8d7f31dccbde1f57e985f1?d=identicon&s=25 Charles Monteiro (amiracam)
on 2013-03-18 14:55
by package do we mean the VisualRuby package that has the GTK gem
referenced or to install GTK via homebrew again ?

thanks
9aa744808c8d7f31dccbde1f57e985f1?d=identicon&s=25 Charles Monteiro (amiracam)
on 2013-03-18 15:04
homebrew would not reinstall gtk nor gtksourceview i.e. it thinks it has
the latest installed

I went ahead and re-installed VisualRuby via gem install visualruby

and it went through its process and all native extensions built without
complaint. However, when I try to to launch vr i.e. via the command line
, all that happens is that the XQuartz 2.7.4 Server is launched and in
the shell I get the following errors which seem to be the same as
previously reported:

monteiro:~ charles$ vr

(process:11910): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:11910): GLib-CRITICAL **: void g_once_init_leave(volatile void
*, gsize): assertion `result != 0' failed

(process:11910): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:11910): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:11910): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:11910): GLib-GObject-CRITICAL **: void
g_type_add_interface_static(GType, GType, const GInterfaceInfo *):
assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:11910): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()

(process:11910): GLib-GObject-CRITICAL **: void
g_type_interface_add_prerequisite(GType, GType): assertion
`G_TYPE_IS_INTERFACE (interface_type)' failed

(process:11910): GLib-CRITICAL **: void g_once_init_leave(volatile void
*, gsize): assertion `result != 0' failed

(process:11910): GLib-GObject-CRITICAL **: void
g_type_add_interface_static(GType, GType, const GInterfaceInfo *):
assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:11910): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to
call g_type_init()
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.