# Compilation errors on build Ruby-Gnome2

**URL:** <https://www.ruby-forum.com/t/compilation-errors-on-build-ruby-gnome2/149895>\
**Category:** Ruby-Gnome 2\
**Created:** [September 30, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/compilation-errors-on-build-ruby-gnome2/149895 "2008-09-30T22:23:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frandieguez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c2a13f/32.png) [@frandieguez](https://www.ruby-forum.com/u/frandieguez)\
**Post date:** [September 30, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/compilation-errors-on-build-ruby-gnome2/149895/1 "2008-09-30T22:23:53Z")

</div>

Hi to all,

I have a problem at the installation of the Ruby-gnome2 at Mac OS X  
Leopard. After searching a lot at the internet how to solve this, I try  
asking here.

I have installed the lastest packet of gtk for Mac OS downloaded from  
[http://www.gtk-osx.org/](http://www.gtk-osx.org/) and when I try to compile the  
ruby-gnome2-all-0.18.0 packet downloaded from sourceforge I have the  
next error:

##############################################  
maxim.ruby-gnome2-all-0.18.0 \>ruby extconf.rb  
Checking for GCC… yes  
checking for rb\_define\_alloc\_func() in ruby.h… yes  
checking for rb\_block\_proc() in ruby.h… yes  
checking for new allocation framework… yes  
checking for attribute assignment… yes  
checking for gobject-2.0… no  
\*\*\* /Users/fran/Downloads/gtk/ruby-gnome2-all-0.18.0/glib/extconf.rb  
failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

Provided configuration options:  
–with-opt-dir  
–without-opt-dir  
–with-opt-include  
–without-opt-include=${opt-dir}/include  
–with-opt-lib  
–without-opt-lib=${opt-dir}/lib  
–with-make-prog  
–without-make-prog  
–srcdir=/Users/fran/Downloads/gtk/ruby-gnome2-all-0.18.0/glib  
–curdir  
–ruby=/usr/local/bin/ruby  
–with-pkg-config  
–without-pkg-config  
extconf.rb: Leaving directory ‘glib’

The errors continues until the final statement:  
Ignored libraries: glib, gdkpixbuf, pango, atk, gtk, bonobo, bonoboui,  
gconf, gnome, gnomecanvas, gnomeprint, gnomeprintui, gnomevfs,  
goocanvas, gstreamer, gtkglext, gtkhtml2, gtkmozembed, gtksourceview,  
gtksourceview2, libart, libglade, panel-applet, poppler, rsvg, vte

##############################################

This is a problem of the makefile generator that don’t find the gtk  
libraries, so I try with

ruby extconf.rb --wit-opt-dir=/Library/Frameworks/Gtk.framework/

and variants but continues with errors

This could be a stupid question but I have an little app made with ruby  
and ruby-gnome2 and the last week I saw the release of the native GTK+  
for Mac OS, and I try to probe my app at this platform. Usually I run on  
a Linux box.

Thanks after all.
