# Which versions of GTK, Glib, ATK etc to use?

**URL:** <https://www.ruby-forum.com/t/which-versions-of-gtk-glib-atk-etc-to-use/225239>\
**Category:** Ruby-Gnome 2\
**Created:** [December 23, 2012, 7:28am UTC](https://www.ruby-forum.com/t/which-versions-of-gtk-glib-atk-etc-to-use/225239 "2012-12-23T07:28:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 23, 2012, 7:28am UTC](https://www.ruby-forum.com/t/which-versions-of-gtk-glib-atk-etc-to-use/225239/1 "2012-12-23T07:28:51Z")

</div>

Hi guys,

With so many different versions of GTK, GLIB Pango etc… all about,  
could anyone tell me which versions are supported and which not?

Or where to look for this information?

If this would take you too much time, perhaps you could tell me which  
versions YOU use and which work?

I have not been using ruby-gnome since perhaps 2 years, but I really  
want a GUI again with ruby, and ruby-gnome used to be the best  
GUI by far (ruby-qt is dead, FXRUBY is dead, ruby-tk is ugly, and  
shoes is no longer the same after \_why left)

And, how do you actually install ruby-gnome? Do you use the gem  
version, or the official tarball?

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [December 24, 2012, 6:55am UTC](https://www.ruby-forum.com/t/which-versions-of-gtk-glib-atk-etc-to-use/225239/2 "2012-12-24T06:55:37Z")

</div>

Hi:

I think if you install the bindings, all the gtk stuff installs  
automatically:

gem install gtk2

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [December 28, 2012, 6:54am UTC](https://www.ruby-forum.com/t/which-versions-of-gtk-glib-atk-etc-to-use/225239/3 "2012-12-28T06:54:39Z")

</div>

When doing the above command you said:

gcc -I.  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I. -I/Programs/Ruby/1.8.7p370/lib/ruby/1.8/i686-linux -I.  
-I/Programs/Ruby/1.8.7p370/lib/ruby/site\_ruby/1.8/i686-linux  
-I/Programs/Ruby/1.8.7p370/lib/ruby/vendor\_ruby/1.8/i686-linux  
-DHAVE\_RB\_DEFINE\_ALLOC\_FUNC -DHAVE\_RB\_BLOCK\_PROC -DHAVE\_OBJECT\_ALLOCATE  
-DHAVE\_NODE\_ATTRASGN -DHAVE\_GDK\_PIXBUF\_GDK\_PIXBUF\_IO\_H  
-D\_FILE\_OFFSET\_BITS=64 -fPIC -fomit-frame-pointer -pipe -fPIC -pthread  
-fno-strict-overflow -O1 -fomit-frame-pointer -pipe -fPIC -pthread  
-fno-strict-overflow -O1 -Wall -Waggregate-return -Wcast-align -Wextra  
-Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations  
-Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn  
-Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked  
-Wp,-D\_FORTIFY\_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum  
-Wundef -Wunsafe-loop-optimizations -Wwrite-strings -pthread  
-I/Programs/Gdkpixbuf/2.26.5/include/gdk-pixbuf-2.0  
-I/Programs/Glib/2.35.3/include/glib-2.0  
-I/Programs/Glib/2.35.3/lib/glib-2.0/include  
-I/Programs/Libpng/1.5.12/include/libpng15 -c rbgdk-pixbufanimation.c  
gcc -I.  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/glib2-1.1.8/ext/glib2  
-I. -I/Programs/Ruby/1.8.7p370/lib/ruby/1.8/i686-linux -I.  
-I/Programs/Ruby/1.8.7p370/lib/ruby/site\_ruby/1.8/i686-linux  
-I/Programs/Ruby/1.8.7p370/lib/ruby/vendor\_ruby/1.8/i686-linux  
-DHAVE\_RB\_DEFINE\_ALLOC\_FUNC -DHAVE\_RB\_BLOCK\_PROC -DHAVE\_OBJECT\_ALLOCATE  
-DHAVE\_NODE\_ATTRASGN -DHAVE\_GDK\_PIXBUF\_GDK\_PIXBUF\_IO\_H  
-D\_FILE\_OFFSET\_BITS=64 -fPIC -fomit-frame-pointer -pipe -fPIC -pthread  
-fno-strict-overflow -O1 -fomit-frame-pointer -pipe -fPIC -pthread  
-fno-strict-overflow -O1 -Wall -Waggregate-return -Wcast-align -Wextra  
-Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations  
-Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn  
-Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked  
-Wp,-D\_FORTIFY\_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum  
-Wundef -Wunsafe-loop-optimizations -Wwrite-strings -pthread  
-I/Programs/Gdkpixbuf/2.26.5/include/gdk-pixbuf-2.0  
-I/Programs/Glib/2.35.3/include/glib-2.0  
-I/Programs/Glib/2.35.3/lib/glib-2.0/include  
-I/Programs/Libpng/1.5.12/include/libpng15 -c rbgdk-pixbuf.c  
rbgdk-pixbuf.c: In function ‘Init\_gdk\_pixbuf2’:  
rbgdk-pixbuf.c:731:1: error: ‘rg\_set\_option’ undeclared (first use in  
this function)  
rbgdk-pixbuf.c:731:1: note: each undeclared identifier is reported only  
once for each function it appears in  
rbgdk-pixbuf.c: At top level:  
rbgdk-pixbuf.c:628:1: warning: ‘rb\_set\_option’ defined but not used  
[-Wunused-function]  
make: \*\*\* [rbgdk-pixbuf.o] Error 1

Gem files will remain installed in  
/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/gdk\_pixbuf2-1.1.8 for  
inspection.  
Results logged to  
/Programs/Ruby/1.8.7p370/lib/ruby/gems/1.8/gems/gdk\_pixbuf2-1.1.8/ext/gdk\_pixbuf2/gem\_make.out

I know, I used old Ruby version, but if I use the more recent version of  
ruby, I am sure I will still get errors.

The problem is, I simply do not know what versions are reliable to use.

This has been my problem with ruby-gnome for the last 2 years by now, I  
just can not get things to work reliably anymore. :\

---

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [December 29, 2012, 1:49am UTC](https://www.ruby-forum.com/t/which-versions-of-gtk-glib-atk-etc-to-use/225239/4 "2012-12-29T01:49:29Z")

</div>

Here a session which install gtk2/ruby-gtk on a Mint/KDE  
(ruby/gtk2 is installed via Ruiby)

> uname -a  
> Linux bb-VirtualBox 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08  
> UTC 2012 i686 i686 i686 GNU/Linux

> sudo apt-get install build-essential  
> sudo aptitude install ruby1.9.1-dev  
> sudo apt-get install gtksourceview  
> sudo gem install gtksourceview2  
> sudo gem install Ruiby  
> ruiby button ~Hello~ do exit! 0 end
