# Wxruby Installation woes on Ubuntu 9.10

**URL:** <https://www.ruby-forum.com/t/wxruby-installation-woes-on-ubuntu-9-10/179022>\
**Category:** wxRuby\
**Created:** [November 15, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/wxruby-installation-woes-on-ubuntu-9-10/179022 "2009-11-15T23:56:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pnomolos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/85f322/32.png) [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Post date:** [November 15, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/wxruby-installation-woes-on-ubuntu-9-10/179022/1 "2009-11-15T23:56:07Z")

</div>

I have been having problems installing wxRuby and having it work on  
Ubuntu 9.10. To reproduce the problem I followed the following steps:

1 Backed up Ubuntu system  
2 Installed Ubuntu 9.10  
3 setup an internet connection  
4 opened update manager  
5 opened up a terminal:  
6 sudo apt-get install ruby  
7 sudo apt-get install rubygems  
8 sudo apt-get install libwxgtk2.8-0  
9 sudo apt-gets install libwxgtk2.8-dev  
10 sudo gem install wxruby  
11 ruby EyesApp.rb

from EyesApp.rb

begin  
require ‘rubygems’  
rescue LoadError  
end  
require ‘wx’

Note: EyesApp.rb was working before upgrading to Ubuntu karmic (9.10)

/var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:  
/var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so: symbol  
\_ZN13wxAuiNotebook14ShowWindowMenuEv, version WXU\_2.8.5 not defined in  
file  
libwx\_gtk2u\_aui-2.8.so.0 with link time reference -  
/var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so (LoadError)  
from /usr/lib/ruby/1.8/rubygems/custom\_require.rb:31:in `require' from /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in`gem\_original\_require’  
from /usr/lib/ruby/1.8/rubygems/custom\_require.rb:36:in `require’  
from EyesApp.rb:5

wx-config --version  
2.8.10

I’ve tried to compile wxRuby from scratch but no luck. What do I need  
to  
do?

Philip

---

<div class="post-metadata">

**Author:** ![pnomolos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/85f322/32.png) [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Post date:** [November 17, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/wxruby-installation-woes-on-ubuntu-9-10/179022/2 "2009-11-17T19:42:16Z")

</div>

Hi Philip,

2009/11/15 Philip S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I have been having problems installing wxRuby and having it work on  
> Ubuntu 9.10. To reproduce the problem I followed the following steps:
> 
> 6 sudo apt-get install ruby  
> 7 sudo apt-get install rubygems  
> 8 sudo apt-get install libwxgtk2.8-0  
> 9 sudo apt-gets install libwxgtk2.8-dev  
> 10 sudo gem install wxruby

> /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:  
> /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so: symbol  
> \_ZN13wxAuiNotebook14ShowWindowMenuEv, version WXU\_2.8.5 not defined in file  
> libwx\_gtk2u\_aui-2.8.so.0 with link time reference -

The wxruby Linux gem has been built with/for Ubuntu 9.04.  
A different C++ compiler version is shipped with Ubuntu 9.10 (g++  
4.4.1).  
So the gem is not compatible with Ubuntu 9.10.

We may provide a Ubuntu-9.10 binary gem in the future but in the  
meantime you have to build wxRuby yourself.

> I’ve tried to compile wxRuby from scratch but no luck. What do I need to  
> do?

I’ve added detailed steps to do that in the Wiki :  
[http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages](http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages)

Cheers.  
Chauk-Mean.

---

<div class="post-metadata">

**Author:** ![pnomolos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/85f322/32.png) [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Post date:** [November 23, 2009, 8:11am UTC](https://www.ruby-forum.com/t/wxruby-installation-woes-on-ubuntu-9-10/179022/3 "2009-11-23T08:11:05Z")

</div>

Hey all, I’m having similar problems with getting wxRuby to work on  
Karmic. I only need Wx for the MediaCtrl class, but I need it  
nonetheless.

> We may provide a Ubuntu-9.10 binary gem in the future but in the  
> meantime you have to build wxRuby yourself.
> 
> > I’ve tried to compile wxRuby from scratch but no luck. What do I need to  
> > do?
> 
> I’ve added detailed steps to do that in the Wiki :  
> [http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages](http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages)

This doesn’t seem like a good solution to me. If you are writing an  
application, the last thing you want is for end-users to be forced  
through manual compilation (which, incidentally, did not work for me). I  
am eagerly anticipating a wxRuby binary gem for Ubuntu 9.10.

---

<div class="post-metadata">

**Author:** ![pnomolos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/85f322/32.png) [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Post date:** [November 24, 2009, 6:30am UTC](https://www.ruby-forum.com/t/wxruby-installation-woes-on-ubuntu-9-10/179022/4 "2009-11-24T06:30:52Z")

</div>

Hey Mario,

Thanks for your effort. I’ve finally managed to compile wxRuby myself,  
and ended up with a ~3 MiB gem. Since your gem is a bit larger, have you  
somehow made it work more consistently on different machines? I’m really  
not good when it comes to binary stuff as I’ve always worked with  
languages such as Java and Ruby.

---

<div class="post-metadata">

**Author:** ![pnomolos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/85f322/32.png) [@pnomolos](https://www.ruby-forum.com/u/pnomolos)\
**Post date:** [November 23, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/wxruby-installation-woes-on-ubuntu-9-10/179022/5 "2009-11-23T13:06:51Z")

</div>

Since there’s been many problems with Ubuntu Karmic Kola and getting  
wxRuby  
2.0.1 working, I’ve uploaded a Gem for wxRuby specifically for Ubuntu  
9.10,  
at [http://www.trilake.net/wxRuby/wxruby-2.0.1-x86-linux.gem](http://www.trilake.net/wxRuby/wxruby-2.0.1-x86-linux.gem). I won’t  
release this gem on RubyForge as it may mess up the current Gem for  
Ubuntu  
8.04, with the naming limitations. You can download it with wget, or  
your  
fav browser, and install it by going into the directory where you  
downloaded  
it from, and typing:

gem install --local wxruby-2.0.1-x86-linux.gem

This gem is not meant to be used with Ruby 1.9, 64Bit Processor, or any  
other Version of Ubuntu, or Linux distrobution, that doesn’t use GCC 4.x  
series of compilers. I garuntee nothing with this file, only the chance  
to  
be able to continue your work on Ubuntu 9.10, as I have tested, and been  
able to make it work just fine.

hth,

Mario
