# Ruby-gnome2-all-0.19.4.tar install

**URL:** <https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740>\
**Category:** Ruby-Gnome 2\
**Created:** [February 26, 2011, 1:05am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740 "2011-02-26T01:05:27Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [February 26, 2011, 1:05am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/1 "2011-02-26T01:05:27Z")

</div>

please excuse me, i know this is probably a dumb question - but i’m  
still pretty green on linux.  
i downloaded ruby-gnome2-all-019.4.tar.gz, and in the readme i see:

== Install

% ruby extconf.rb  
% make  
% sudo make install

this seems easy enough, my question is (before i go and ruin  
everything…) - what directory should i be in when i run these  
commands? the file is now in the download directory, but that is  
obviously not where i want the files to end up. truth is, i’m not sure  
where i want the files to end up… can i just run these commands from  
the download directory, or do i need to copy the file to another dir  
first?

thanks -

j

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 26, 2011, 2:07am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/2 "2011-02-26T02:07:41Z")

</div>

2011/2/26 J. K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> this seems easy enough, my question is (before i go and ruin

After deflating the tarball, go to the top directory and perform the  
commands :

tar xzf ruby-gnome2-all-0.90.6.tar.gz  
cd ruby-gnome2-all-0.90.6/  
ruby extconf.rb  
make  
sudo make install

## Are you using a very old version (0.19) ? You should use the latest.

Vincent C.

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 26, 2011, 3:43am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/3 "2011-02-26T03:43:37Z")

</div>

> ## Are you using a very old version (0.19) ? You should use the latest.
> 
> Vincent C.

hi Vincent -  
thanks for the step-by-step, i greatly appreciate it…  
i’ve been using the version that came in the synaptic manager with  
ubuntu 10.4 lucid, gnome2-ruby1.8 0.19.3-1ubuntu3. when i found .19.4  
(while looking for the gstreamer MessageTag.parse patch,) i thought it  
was the latest and greatest… sounds like i’m behind the times!  
what’s the latest version? (for ruby 1.8.7[i486-linux], i haven’t made  
the jump to 1.9 yet) - i’ll find it and see if i can install it  
correctly.  
ah, i checked out the link to the Zik player - turns out that i had  
seen that way back when i started this thing - it served as inspiration  
for diving into an audio player with ruby…  
if you couldn’t tell by my posts, i’m a COMPLETE amateur coder - until  
about a year ago i hadn’t done any programming since back with my  
TI-994A, in basic. i saw ruby and thought it was cool (i was right…)  
but i’m really pretty clueless. again i appreciate any and all help…

thanks again,

j

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 26, 2011, 4:35am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/4 "2011-02-26T04:35:48Z")

</div>

2011/2/26 J. K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > ## Are you using a very old version (0.19) ? You should use the latest.
> > 
> > Vincent C.
> 
> hi Vincent -  
> thanks for the step-by-step, i greatly appreciate it…  
> i’ve been using the version that came in the synaptic manager with  
> ubuntu 10.4 lucid, gnome2-ruby1.8 0.19.3-1ubuntu3. when i found .19.4  
> (while looking for the gstreamer MessageTag.parse patch,) i thought it  
> was the latest and greatest… sounds like i’m behind the times!

Not really, but you can find the 0.90 series.

> **[Ruby-GNOME 2 - Browse /ruby-gnome2 at SourceForge.net](https://sourceforge.net/projects/ruby-gnome2/files/ruby-gnome2/)**
>
> Ruby-GNOME 2 /ruby-gnome2 files. Browse /ruby-gnome2 files for Ruby-GNOME 2

> what’s the latest version? (for ruby 1.8.7[i486-linux], i haven’t made  
> the jump to 1.9 yet) - i’ll find it and see if i can install it  
> correctly.  
> Just install ruby1.9.1 package! Then You will have 3 command  
> ruby (a link the default version of ruby)  
> ruby1.8  
> ruby 1.9.1 (1.9.2 version despite what it seems)

$ ruby1.9.1 --version  
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]

> ah, i checked out the link to the Zik player - turns out that i had  
> seen that way back when i started this thing - it served as inspiration  
> for diving into an audio player with ruby…  
> if you couldn’t tell by my posts, i’m a COMPLETE amateur coder - until  
> about a year ago i hadn’t done any programming since back with my  
> TI-994A, in basic. i saw ruby and thought it was cool (i was right…)  
> but i’m really pretty clueless. again i appreciate any and all help…

I am also an amateur and I find ruby a very cool language.

> generated by your applications, servers and devices whether physical, virtual  
> or in the cloud. Deliver compliance at lower cost and gain new business  
> insights. [http://p.sf.net/sfu/splunk-dev2dev](http://p.sf.net/sfu/splunk-dev2dev)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Vincent C.

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 26, 2011, 6:07am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/5 "2011-02-26T06:07:47Z")

</div>

hi vincent,

i’ll install the gtk.9 version and see how it goes… and it turns out  
i do have ruby 1.9 installed (duh…) i just haven’t done anything with  
it yet!  
one more (dumb) question - i assume i should uninstall my current gtk  
version before installing the new?

thanks,

j

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 26, 2011, 10:37am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/6 "2011-02-26T10:37:14Z")

</div>

Hi,

You should not uninstall Gtk+, gnome and other stuff are built on that.  
You however want to install the ruby-gnome2 binding, which connects your  
ruby program to the gnome2/gtk2 libs.  
And I suggest use the gems, it’s a lot easier to maintain.  
Try theese commands, for ruby 1.8, if they don’t work please send me  
your solution:

sudo apt-get install ruby1.8-dev ruby-gnome2 rubygems patch  
gem install gtk2

For my app’s install i tested and wrote a small howto, even for ubuntu,  
check it out here for more information:  
[http://manqod.sourceforge.net/index.php/Install#Ubuntu](http://manqod.sourceforge.net/index.php/Install#Ubuntu)

Regards  
Balint

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 26, 2011, 7:27pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/7 "2011-02-26T19:27:38Z")

</div>

“Dobai-Pataky Bálint” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote in post #984089:

> sudo apt-get install ruby1.8-dev ruby-gnome2 rubygems patch  
> gem install gtk2

thanks for the tip, worked like a charm -

“Successfully installed gtk2-0.90.7”

should have thought to look for a gem myself - they are certainly  
easier to maintain…

thanks again-

j

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 27, 2011, 1:22am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/8 "2011-02-27T01:22:44Z")

</div>

2011/2/26 J. K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Gdk::Drawable (NameError)
> 
> j

If you install severals versions at the same time, you should  
know/check which one is called.  
Do you have read README file in tarball ? You have to install gtk2  
dependancies (i.e. glib2, atk, pango, gdk\_pixbuf…).  
Something like :

ruby1.8 extconf.rb glib2 atk pango gdk\_pixbuf  
make  
sudo make install  
make distclean  
ruby1.9.1 extconf.rb glib2 atk pango gdk\_pixbuf  
make  
sudo make install  
make distclean

## The extconf command lines are given from memory (not a good omen at this late hour), check with README.

Vincent C.

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 27, 2011, 5:58am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/9 "2011-02-27T05:58:48Z")

</div>

hey all,

well, seems like i nuked something good. i checked out the readme,  
followed everything to the letter, and nothing… same error:

/usr/local/lib/site\_ruby/1.8/glib2.rb:56: uninitialized constant  
Gdk::Drawable (NameError)

so… i uninstalled ruby and everything along with it, and tried  
fresh, making sure to install all the dependencies too. no dice, same  
error. did it again, this time reinstalling the  
gtk2 library that comes in the ubuntu repository. no sir, nothing.  
same old same old.

maybe the gem version and the repository version are unhappy together,  
and i haven’t been able to completely uninstall one or the other?  
synaptic tells me that i’ve got gtk2 installed, but ruby doesn’t buy  
it…

ugh. i just want gtk back - what the heck have i done? any  
suggestions to save my sorry butt?

thanks -

jk

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 27, 2011, 4:31pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/10 "2011-02-27T16:31:32Z")

</div>

2011/2/27 J. K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> hey all,
> 
> well, seems like i nuked something good. i checked out the readme,  
> followed everything to the letter, and nothing… same error:
> 
> /usr/local/lib/site\_ruby/1.8/glib2.rb:56: uninitialized constant  
> Gdk::Drawable (NameError)

The error seems to be in glib/gtk bindings. Try to reinstall  
ruby-gnome2 from the tarball. I guess it is the tarball installation  
that populated /usr/local/lib/site\_ruby. Check if  
/usr/local/lib/site\_ruby/1.8/glib2.rb is updated.

> insights. [http://p.sf.net/sfu/splunk-dev2dev](http://p.sf.net/sfu/splunk-dev2dev)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Vincent C.

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 27, 2011, 6:58pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/11 "2011-02-27T18:58:16Z")

</div>

the saga continues…

i did as you suggested, and got a bit further. now the error i’m  
getting seems to be with atk:

ruby: symbol lookup error:  
/usr/local/lib/site\_ruby/1.8/i486-linux/atk.so: undefined symbol:  
Init\_atk\_inits

the thing that confuses me is that i’ve tried completely uninstalling  
ruby, then re-installing it with the setup that i had been using, and it  
doesn’t work. i imagine that all of my fiddling has left some files  
around that are causing problems. any ideas how i might undo the  
tarball install? can i just delete the /usr/local/lib/site\_ruby  
directory after uninstalling and start from scratch?

argh… thanks for helping

jk

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 27, 2011, 7:12pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/12 "2011-02-27T19:12:13Z")

</div>

2011/2/27 J. K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> the saga continues…
> 
> i did as you suggested, and got a bit further. now the error i’m  
> getting seems to be with atk:
> 
> ruby: symbol lookup error:  
> /usr/local/lib/site\_ruby/1.8/i486-linux/atk.so: undefined symbol:  
> Init\_atk\_inits  
> I recognize this error it is a bug fixed very recently in ruby-gnome2.  
> Delete the top directory of ruby-gnome2 source and re-untar the source  
> tarball before installation.
> 
> the thing that confuses me is that i’ve tried completely uninstalling  
> ruby, then re-installing it with the setup that i had been using, and it  
> doesn’t work. i imagine that all of my fiddling has left some files  
> around that are causing problems. any ideas how i might undo the  
> tarball install? can i just delete the /usr/local/lib/site\_ruby  
> directory after uninstalling and start from scratch?  
> Only if you don’t need any of the files in /usr/local/lib/site\_ruby.  
> It could be the solution but a dangerous one. Try reinstall from  
> fresh untarred sources.

> generated by your applications, servers and devices whether physical, virtual  
> or in the cloud. Deliver compliance at lower cost and gain new business  
> insights. [http://p.sf.net/sfu/splunk-dev2dev](http://p.sf.net/sfu/splunk-dev2dev)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Vincent C.

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 26, 2011, 11:57pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/13 "2011-02-26T23:57:17Z")

</div>

ugh… now i’ve done it…

so i “successfully” installed gtk2-0.90.7 through the gem, but when i  
checked the Gtk::BINDING\_VERSION i was still showing 0.19.3 - i decided  
to go ahead and install the 0.90.7 tarball, which seemed to all go  
smoothly until i checked it…

now “require gtk2” raises this error:

/usr/local/lib/site\_ruby/1.8/glib2.rb:56: uninitialized constant  
Gdk::Drawable (NameError)

looks like i’ve screwed it up pretty good if it can’t find  
Gdk::Drawable

figure i should start over with an uninstall and fresh install of  
ruby, gtk, and the whole works -

other ideas?

thanks

j

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 27, 2011, 8:44pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/14 "2011-02-27T20:44:38Z")

</div>

Vincent C. wrote in post #984271:

> I recognize this error it is a bug fixed very recently in ruby-gnome2.  
> Delete the top directory of ruby-gnome2 source and re-untar the source  
> tarball before installation.  
> Try reinstall from fresh untarred sources.

hi vince, thanks for all the help… want to make sure i do this  
correctly - what exactly do you mean by:  
"Delete the top directory of ruby-gnome2 source and re-untar the source

> tarball before installation."?

when i download from sourceforge i don’t see a list of  
directories/files to choose, the download starts automatically.  
sorry again if this is a stupid question.

thanks,

jk

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 27, 2011, 10:25pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/15 "2011-02-27T22:25:20Z")

</div>

hi vincent,

well, after many hours and headaches i managed to get myself back to  
where i was: ruby 1.8.7 and gtk2 0.19.3 through the synaptic manager.

i followed your advice above, but the libraries were not targeted this  
time in the extconf and the make failed. no freakin clue.

through all of this, i’ve installed rvm - and i’m planning on trying  
the upgrade now on the version of ruby i’ve got through the rvm, so as  
to not bork my system again!

i’ll let you know how that goes - can’t for the life of me understand  
why it was so difficult for me to install, oh well. thanks again for  
all the help.

-jk

p.s. going to switch over to Timeout rather than Thread for the  
progress bar as per your advice in the other post. i know that Threads  
can get messy, and that may be what’s causing some of my occasional  
segmentation faults.

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 28, 2011, 12:51am UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/16 "2011-02-28T00:51:28Z")

</div>

On 28 February 2011 06:25, J. K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> p.s. going to switch over to Timeout rather than Thread for the  
> progress bar as per your advice in the other post. i know that Threads  
> can get messy, and that may be what’s causing some of my occasional  
> segmentation faults.

I tried long and hard to get the progress bar to work with multiple  
threads and kept getting strange problems as well. I ended up  
partitioning my problem and putting it in the the GTK on\_idle() loop.  
Basically, I was parsing a file in the background. So instead  
of using a thread I parsed 100 lines of the file at a time in  
the on\_idle() loop. In the end, not only did I get rid of my strange  
problems, but I got much better interactivity as well because  
GTK events are guaranteed to be handled after a set time  
(which you can’t do using threads).

I’ve tried to champion this approach before, but people are  
enamoured with threads 😉 I think the biggest problem that  
people don’t realise is that Ruby threads are _not_ native threads.  
So you get all the disadvantages of using a thread and very  
little advantage (as long at your problem is partitionable).  
And since GTK threads _are_ native threads you seem to run  
into problems even if you work very hard to make sure the  
GTK calls only happen in the GTK threads.

```
      MikeC

```

---

<div class="post-metadata">

**Author:** ![j\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@j\_k](https://www.ruby-forum.com/u/j_k)\
**Post date:** [February 27, 2011, 9:06pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-all-0-19-4-tar-install/203740/17 "2011-02-27T21:06:29Z")

</div>

2011/2/27 J. K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > tarball before installation."?

Better to ask than doing something ugly.  
I mean delete the directory you have obtained by untarring the sources  
tarball. Then untar the sources once again and reinstall ruby-gnome2.

> 

–  
Vincent C.
