# Ruby-gnome2/gtk error on mac

**URL:** <https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570>\
**Category:** Ruby\
**Created:** [February 24, 2006, 12:25am UTC](https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570 "2006-02-24T00:25:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 24, 2006, 12:25am UTC](https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570/1 "2006-02-24T00:25:16Z")

</div>

I’m running Ruby 1.8.4 (installed via darwinports) on OS 10.4 with gtk  
2.8.12 (installed via darwinports) and ruby-gnome2 0.14.1 (configured  
using extconf.rb and installed in the /opt/local location of ruby).  
When I run a simple button test program I get the following message:

gtktest.rb: line 1  
GLib-GObject-WARNING \*\*:Two different plugins tried to register  
‘BasicEngineFc’.  
gtktest.rb: line 1  
GLib-GObject-CRITICAL \*\*:g\_object\_new: assertion `G\_TYPE\_IS\_OBJECT  
(object\_type)’ failed  
Failed to load Pango module for id: 'BasicScriptEngineFc’gtktest.rb:  
line 1

The test program still seems to run despite this message. I’m new to  
Ruby, so if someone could help me out, I would really appreciate it.  
Getting a Ruby GUI to work on a Mac is incredibly frustrating.

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 24, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570/2 "2006-02-24T15:33:55Z")

</div>

Hi,

On Fri, 24 Feb 2006 08:25:31 +0900  
john k [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> (object\_type)’ failed  
> Failed to load Pango module for id: 'BasicScriptEngineFc’gtktest.rb:  
> line 1
> 
> The test program still seems to run despite this message. I’m new to  
> Ruby, so if someone could help me out, I would really appreciate it.  
> Getting a Ruby GUI to work on a Mac is incredibly frustrating.

It’s very difficult not to check your gtktest.rb…

But I think these messages are occured by Pango(not by Ruby-GNOME2).  
I suspect gtk-demo occurs same error.

If so, could you re-install pango and then re-compile ruby-gnome2?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 24, 2006, 10:07pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570/3 "2006-02-24T22:07:29Z")

</div>

> It’s very difficult not to check your gtktest.rb…

This is the “Hello World” program on the website tutorial.

> But I think these messages are occured by Pango(not by Ruby-GNOME2).  
> I suspect gtk-demo occurs same error.
> 
> If so, could you re-install pango and then re-compile ruby-gnome2?

I reinstalled pango and gtk2, then recompiled ruby-gnome2 and still got  
the same exact error.

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 25, 2006, 2:26am UTC](https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570/4 "2006-02-25T02:26:51Z")

</div>

Hi,

On Sat, 25 Feb 2006 06:07:45 +0900  
john k [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I reinstalled pango and gtk2, then recompiled ruby-gnome2 and still got  
> the same exact error.

How about gtk-demo ?

# It’s provided by gtk2.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 27, 2006, 12:20am UTC](https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570/5 "2006-02-27T00:20:24Z")

</div>

> How about gtk-demo ?
> 
> # It’s provided by gtk2.

Same error message multiple times when I start it. Every demo seems to  
work, but I frequently get the error message again.

- John

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 27, 2006, 1:05pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-gtk-error-on-mac/72570/6 "2006-02-27T13:05:33Z")

</div>

john k wrote:

> gtktest.rb: line 1  
> GLib-GObject-WARNING \*\*:Two different plugins tried to register  
> ‘BasicEngineFc’.  
> gtktest.rb: line 1  
> GLib-GObject-CRITICAL \*\*:g\_object\_new: assertion `G\_TYPE\_IS\_OBJECT  
> (object\_type)’ failed  
> Failed to load Pango module for id: 'BasicScriptEngineFc’gtktest.rb:  
> line 1

Try this:  
[http://opendarwin.org/pipermail/darwinports/2006-February/032382.html](http://opendarwin.org/pipermail/darwinports/2006-February/032382.html)

– Daniel
