# Re: linking gem to wx on Linux

**URL:** <https://www.ruby-forum.com/t/re-linking-gem-to-wx-on-linux/200877>\
**Category:** wxRuby\
**Created:** [December 23, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/re-linking-gem-to-wx-on-linux/200877 "2010-12-23T18:03:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikuSESS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f17d59/32.png) [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Post date:** [December 23, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/re-linking-gem-to-wx-on-linux/200877/1 "2010-12-23T18:03:32Z")

</div>

By compiling wxWidgets from source, enabling the shared library option  
and  
using 2.8.11 wxGTK as follows:

…/configure --enable-shared --with-gtk --enable-monolithic   
–enable-unicode --disable-debug --enable-catch\_segvs  
–enable-graphics\_ctx  
  
–enable-mediactrl --with-opengl --with-libjpeg=builtin  
–with-libpng=builtin   
–with-libtiff=builtin --with-zlib=builtin --with-expat=builtin  
–enable-gui   
–enable-xrc --enable-mdi --enable-gif   
–enable-pcx --enable-iff --enable-pnm --enable-xpm

I now get this error on my own machine (Ubuntu 9,10) which was working:

/usr/local/lib/ruby/site\_ruby/1.8/i686-linux/wxruby2.so:  
/usr/local/lib/ruby/site\_ruby/1.8/i686-linux/wxruby2.so: undefined  
symbol:  
\_ZN8wxWindow12ApplyToolTipEP12\_GtkTooltipsPKc -  
/usr/local/lib/ruby/site\_ruby/1.8/i686-linux/wxruby2.so (LoadError)  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require' from /usr/local/lib/ruby/site_ruby/1.8/wx.rb:12 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`gem\_original\_require’  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require’  
from ./smarttvmark.rb:11

I know I had it working, so I’ll keep pushing forward. 😃
