# wxRuby 2.0.1 on Fedora 11

**URL:** <https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316>\
**Category:** wxRuby\
**Created:** [September 11, 2009, 5:40am UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316 "2009-09-11T05:40:59Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [September 11, 2009, 5:40am UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/1 "2009-09-11T05:40:59Z")

</div>

I just installed wxruby and tryed to run the minimal test. This is the  
result i get

ruby -rubygems minimal.rb  
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:  
/usr/lib/ruby/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 -  
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so  
(LoadError)  
from  
/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require' from /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem\_original\_require’  
from  
/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:36:in  
`require’  
from minimal.rb:8

i have wxgtk 2.8.10 installed. am i missing somthing? what can i do to  
fix  
this?

Thanks  
Allan

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [September 27, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/2 "2009-09-27T15:21:29Z")

</div>

On Ubuntu 9.10 with ruby 1.8.6 and 1.9.1

/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)

/opt/ruby191/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wx.rb:12:in  
`require’:  
/opt/ruby191/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-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 -  
/opt/ruby191/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-linux/lib/wxruby2.so  
(LoadError)

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [October 23, 2009, 5:05am UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/3 "2009-10-23T05:05:48Z")

</div>

Ran into this today on Ubuntu 9.10, ruby 1.8.7. Not having much success  
finding solutions.

/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:  
/usr/lib/ruby/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 -  
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so  
(LoadError)

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [September 11, 2009, 6:43am UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/4 "2009-09-11T06:43:38Z")

</div>

Hello Allan,

I am getting the same thing on DreamLinux, which is a Debian based  
Distro,  
with Ruby based system management scripts. Only my error is slightly  
different then yours:

LoadError: /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:  
symbol \_ZN9wxListBox13EnsureVisibleEi, version WXU\_2.8 not defined in  
file  
libwx\_gtk2u\_core-2.8.so.0 with link time reference -  
/var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so  
from /var/lib/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so  
from /usr/lib/ruby/1.8/rubygems/custom\_require.rb:27: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:32:in`gem\_original\_require’  
from /usr/lib/ruby/1.8/rubygems/custom\_require.rb:32:in `require’  
from (irb):2  
from :0

The Version I had installed at the time was wxGTK 2.8.7, which is the  
default in the Lenny Apt Repos. After I followed some instructions on  
how  
to get 2.8.10, I removed the previous install, and installed 2.8.10, and  
everything works, so you will need 2.8.10 in order to run the gem, or  
build  
from source. I do believe there are some yum repos out there, that have  
wxGTK 2.8.10, you just need to look them up on google. Once you get the  
2.8.10 version installed, you should be able to run the gem without any  
problems.

HTH,

Mario

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [October 23, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/5 "2009-10-23T15:38:24Z")

</div>

After reading around, I’ve tried to compile from source following the  
wiki but it’s not working out.

SWIG Version 1.3.36  
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)  
wx-config --version  
2.8.10

…  
Class: GLCanvas  
: Window  
class wxGLCanvas  
g++ -c -I/usr/lib/wx/include/gtk2-unicode-release-2.8  
-I/usr/include/wx-2.8 -D\_FILE\_OFFSET\_BITS=64 -D\_LARGE\_FILES -D\_\_WXGTK\_\_  
-DwxABI\_VERSION=208010 -fno-strict-aliasing -g -g -O2 -fPIC  
-Wno-unused-function -I. -I /usr/lib/ruby/1.8/i486-linux -o  
obj/GLCanvas.o src/GLCanvas.cpp  
In file included from /usr/include/wx-2.8/wx/glcanvas.h:54,  
from src/GLCanvas.cpp:2207:  
/usr/include/wx-2.8/wx/gtk/glcanvas.h:19:19: error: GL/gl.h: No such  
file or directory  
/usr/include/wx-2.8/wx/gtk/glcanvas.h:20:20: error: GL/glx.h: No such  
file or directory  
/usr/include/wx-2.8/wx/gtk/glcanvas.h:21:20: error: GL/glu.h: No such  
file or directory  
In file included from /usr/include/wx-2.8/wx/glcanvas.h:54,  
from src/GLCanvas.cpp:2207:  
/usr/include/wx-2.8/wx/gtk/glcanvas.h:47: error: â€˜GLXContextâ€™ does not  
name a type  
/usr/include/wx-2.8/wx/gtk/glcanvas.h:124: error: ISO C++ forbids  
declaration of â€˜GLXFBConfigâ€™ with no type  
/usr/include/wx-2.8/wx/gtk/glcanvas.h:124: error: expected â€˜;â€™ before  
â€˜\*â€™ token  
rake aborted!  
Command failed with status (1): [g++ -c  
-I/usr/lib/wx/include/gtk2-unicod…]

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [November 6, 2009, 12:27pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/6 "2009-11-06T12:27:41Z")

</div>

Steve cd wrote:

> Ran into this today on Ubuntu 9.10, ruby 1.8.7. Not having much success  
> finding solutions.
> 
> /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:  
> /usr/lib/ruby/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 -  
> /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so  
> (LoadError)

I had a similar problem. I has installed libwxgtk2.8-dbg and  
wx2.8-headers. Nowadays all work successfully.

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [January 8, 2010, 11:14am UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/7 "2010-01-08T11:14:19Z")

</div>

This is a Google translation.

My system is:

- Ubuntu 9.10,
- C++ compiler version g+±4.4.1-4ubuntu8,
- wx 2.8.10,
- Swig 1.3.38,
- Ruby 1.9.1p376,
- wxRuby 2.0.1.

Everything’s fine until the compilation and installation of SWIG as  
indicated in the Guide  
[http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages](http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages),  
when compiling wxRuby 2.0.1, it ends with a large number of warnings and  
errors, citing the end:

/usr/include/GL/glxext.h:847: error: typedef  
â€˜PFNGLXENUMERATEVIDEODEVICESNVPROCâ€™ is initialized (use decltype  
instead)  
/usr/include/GL/glxext.h:847: error: â€˜Displayâ€™ was not declared in this  
scope  
/usr/include/GL/glxext.h:847: error: â€˜dpyâ€™ was not declared in this  
scope  
/usr/include/GL/glxext.h:848: error: expected primary-expression before  
â€˜intâ€™  
/usr/include/GL/glxext.h:849: error: expected primary-expression before  
â€˜intâ€™  
/usr/include/GL/glxext.h:850: error: typedef  
â€˜PFNGLXBINDVIDEODEVICENVPROCâ€™ is initialized (use decltype instead)  
/usr/include/GL/glxext.h:850: error: â€˜Displayâ€™ was not declared in this  
scope  
/usr/include/GL/glxext.h:850: error: â€˜dpyâ€™ was not declared in this  
scope  
/usr/include/GL/glxext.h:851: error: expected primary-expression before  
â€˜unsignedâ€™  
/usr/include/GL/glxext.h:852: error: expected primary-expression before  
â€˜unsignedâ€™  
/usr/include/GL/glxext.h:853: error: expected primary-expression before  
â€˜constâ€™  
src/GLCanvas.cpp: In function â€˜VALUE \_wrap\_new\_wxGLCanvas(int, VALUE\*,  
VALUE)â€™:  
src/GLCanvas.cpp:2742: warning: format not a string literal and no  
format arguments  
src/GLCanvas.cpp:2748: warning: format not a string literal and no  
format arguments  
src/GLCanvas.cpp:2799: warning: format not a string literal and no  
format arguments  
src/GLCanvas.cpp:2819: warning: format not a string literal and no  
format arguments  
src/GLCanvas.cpp:2822: warning: format not a string literal and no  
format arguments  
src/GLCanvas.cpp: In function â€˜VALUE \_wrap\_wxGLCanvas\_SetCurrent(int,  
VALUE\*, VALUE)â€™:  
src/GLCanvas.cpp:2872: warning: format not a string literal and no  
format arguments  
src/GLCanvas.cpp: In function â€˜VALUE \_wrap\_wxGLCanvas\_SetColour(int,  
VALUE\*, VALUE)â€™:  
src/GLCanvas.cpp:2896: warning: format not a string literal and no  
format arguments  
src/GLCanvas.cpp:2901: warning: format not a string literal and no  
format arguments  
src/GLCanvas.cpp: In function â€˜VALUE \_wrap\_wxGLCanvas\_SwapBuffers(int,  
VALUE\*, VALUE)â€™:  
src/GLCanvas.cpp:2922: warning: format not a string literal and no  
format arguments  
src/GLCanvas.cpp: In function â€˜VALUE \_wrap\_disown\_wxGLCanvas(int,  
VALUE\*, VALUE)â€™:  
src/GLCanvas.cpp:2943: warning: format not a string literal and no  
format arguments  
rake aborted!  
Command failed with status (1): [g++ -c  
-I/usr/lib/wx/include/gtk2-unicod…]

(See full trace by running task with --trace)

I also tried to install libwxgtk2.8-dbg and wx2.8-headers, but the  
result does not change. Can you help me in any way?  
For example, you can have a Ruby gem that is specific to Ubuntu 9.10  
help non-expert like me to compile from source?  
wxRuby is a great and beautiful GUI toolkit for the Ruby, I regret very  
much not using it.

Thanks to all and please excuse the bad English.

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [January 8, 2010, 12:57pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/8 "2010-01-08T12:57:22Z")

</div>

To all:

You can download the version of wxRuby 2.0.1 that I have compiled  
specifically for Ubuntu 9.10. This version was compiled for Ruby 1.8.7  
p174, which is the default available in the Ubuntu Repositories. Run  
the  
following commands in your Console:

wget [http://www.trilake.net/wxRuby/wxruby-2.0.1-x86-linux.gem](http://www.trilake.net/wxRuby/wxruby-2.0.1-x86-linux.gem)  
sudo gem install --local wxruby-2.0.1-x86-linux.gem  
sudo apt-get install libwxgtk2.8-0 libwxbase2.8-0

irb  
require ‘rubygems’  
require ‘wx’  
exit

If everything installed properly, the above irb require statements  
should  
have outputted 2 “=\> true” results. Which means that wxRuby is now  
installed, and working for you.

hth,

Mario

P.S. Anyone looking for a version for Ruby 1.9 series of interpreter,  
let  
me know, and I’ll get a compile out there.

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [January 8, 2010, 4:14pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/9 "2010-01-08T16:14:35Z")

</div>

I will work on it tonight, and hopefully have it then. I will send an  
email  
out when I get it done.

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [January 8, 2010, 3:28pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/10 "2010-01-08T15:28:26Z")

</div>

Mario S. wrote:  
P.S. Anyone looking for a version for Ruby 1.9 series of interpreter,

> let  
> me know, and I’ll get a compile out there.

Hello Mario. I would be really grateful if you could have a version of  
wxRuby for Ruby 1.9 series of interpreter.

Thanks in advance. 🙂

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [January 18, 2010, 9:09am UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/11 "2010-01-18T09:09:18Z")

</div>

Mario S. wrote:

> I will work on it tonight, and hopefully have it then. I will send an  
> email  
> out when I get it done.

Hi Mario. Any news on this?

Thanks.

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [January 18, 2010, 3:06pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/12 "2010-01-18T15:06:43Z")

</div>

Sorry, seems that the gem is messed up, please don’t download from that  
URL  
till I say it is alright.

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [March 19, 2010, 9:52am UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/13 "2010-03-19T09:52:34Z")

</div>

Mario S. wrote:

> Sorry, seems that the gem is messed up, please don’t download from that  
> URL  
> till I say it is alright.

I do not lose hope. 🙂  
Bye bye.

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [January 18, 2010, 2:59pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/14 "2010-01-18T14:59:41Z")

</div>

My apologizes Nome,

I had been working on upgrading my system, and getting Ruby 1.9 gem made  
was  
on the back burner. I have finished it, after I got everything setup  
again  
with the new hardware.

[http://www.trilake.net/wxRuby/wxruby-ruby19-2.0.1-x86-linux.gem](http://www.trilake.net/wxRuby/wxruby-ruby19-2.0.1-x86-linux.gem)

This gem will be compatible with Ubuntu 9.10, with everything (Except  
SWIG),  
taken directly from the Repositories. If you have any problems with  
this  
version, please feel free to let me know.

Remember to install via:

sudo gem1.9 install --local wxruby-ruby19-2.0.1-x86-linux.gem

If the gem command attains the 1.9 part, otherwise, just use the gem  
command.

hth,

Mario

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [March 24, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/wxruby-2-0-1-on-fedora-11/175316/15 "2010-03-24T18:58:53Z")

</div>

Nome C. wrote:

> This is a Google translation.
> 
> My system is:
> 
> - Ubuntu 9.10,
> - C++ compiler version g+±4.4.1-4ubuntu8,
> - wx 2.8.10,
> - Swig 1.3.38,
> - Ruby 1.9.1p376,
> - wxRuby 2.0.1.
> 
> Everything’s fine until the compilation and installation of SWIG as  
> indicated in the Guide  
> [http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages](http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages),  
> when compiling wxRuby 2.0.1, it ends with a large number of warnings and  
> errors, citing the end:
> 
> src/GLCanvas.cpp:2943: warning: format not a string literal and no  
> format arguments  
> rake aborted!  
> Command failed with status (1): [g++ -c  
> -I/usr/lib/wx/include/gtk2-unicod…]
> 
> (See full trace by running task with --trace)

(This is a Google translation)

I solved! 😃  
The problem exists only on Ubuntu 9.10 migrated from Ubuntu 9.04.

1. Following the instructions found at  
[http://wxruby.rubyforge.org/wiki/wiki.pl?InstallingFromSource](http://wxruby.rubyforge.org/wiki/wiki.pl?InstallingFromSource) on Ubuntu  
9.10 new installation (in a VirtualBox virtual machine), I created a new  
gem wxRuby version 2.0.1.

2. The same instructions also on Ubuntu 9.10 migrated, but before  
compiling wxruby, I took the new gem created in step 1) and install this  
with command:

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

(I have installed only Ruby 1.9, otherwise command  
sudo gem1.9 install --local wxruby-ruby19-2.0.1-x86-linux.gem)

Thanks to all, bye bye.
