# Installing on openSUSE 11.1

**URL:** <https://www.ruby-forum.com/t/installing-on-opensuse-11-1/178048>\
**Category:** wxRuby\
**Created:** [October 28, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/installing-on-opensuse-11-1/178048 "2009-10-28T14:45:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FriedrichS\_Axel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@FriedrichS\_Axel](https://www.ruby-forum.com/u/FriedrichS_Axel)\
**Post date:** [October 28, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/installing-on-opensuse-11-1/178048/1 "2009-10-28T14:45:38Z")

</div>

Hello,

I try to install wxruby on openSUSE 11.1, but do not succeed.  
I get an error, when trying to compile wxRuby; error message please see  
at the  
bottom of this message.

Using:

- openSuse 11.1
- wxruby: wxruby-2.0.1.tar.gz from [rubyforge.org](http://rubyforge.org)
- wxWidget: “wxAll” from [wxWidgets.org/downloads](http://wxWidgets.org/downloads), compiled with  
“configure --with-gtk --enable-unicode” (no problem)
- rake version 0.8.7
- SWIG Version 1.3.36
- ruby 1.8.7 (2008-08-11 patchlevel 72) [i586-linux]

Unfortunately, I have only very limited knowledge of linux and of  
compiling and  
no knowledge of any kind of C…

Using the wxRuby-gem and using wxwidgets.rpm from the  
openSUSE-repository was  
not successfull.

I use Ruby for hardware testing (quite a lot) and need some  
graphical output of data values now.

I would be glad to get some help solving the above problem.

Axel

* * *

Output of rake --trace (partially):

rake --trace  
(in /root/myDir/wx/wxruby-2\_0\_1\_SRC)  
Enabling DYNAMIC build  
Enabling RELEASE build  
Enabling UNICODE build  
The following wxWidgets features are not available and will be skipped:  
GCDC  
GraphicsBrush  
GraphicsContext  
GraphicsFont  
GraphicsMatrix  
GraphicsObject  
GraphicsPath  
GraphicsPen  
MediaCtrl  
MediaEvent  
PrinterDC  
\*\* Invoke default (first\_time)  
\*\* Invoke lib/wxruby2.so (first\_time)  
\*\* Invoke obj/AboutDialogInfo.o (first\_time, not\_needed)  
\*\* Invoke src/AboutDialogInfo.cpp (first\_time, not\_needed)  
\*\* Invoke swig/classes/AboutDialogInfo.i (first\_time, not\_needed)

[…a lot of successfull stuff…]

\*\* Invoke  
/root/myDir/wx/wxruby-2\_0\_1\_SRC/swig/classes/include/wxEvtHandler.h  
(not\_needed)

\*\* Invoke  
/root/myDir/wx/wxruby-2\_0\_1\_SRC/swig/classes/include/wxWindow.h  
(not\_needed)

\*\* Invoke  
/root/myDir/wx/wxruby-2\_0\_1\_SRC/swig/classes/include/wxGLCanvas.h  
(first\_time, not\_needed)

\*\* Execute obj/GLCanvas.o

g++ -c -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8  
-I/usr/local/include/wx-2.8 -D\_FILE\_OFFSET\_BITS=64 -D\_LARGE\_FILES  
-D\_\_WXGTK\_\_  
-DwxABI\_VERSION=208010 -march=i586 -mtune=i686 -fmessage-length=0 -O2  
-Wall  
-D\_FORTIFY\_SOURCE=2 -fstack-protector -funwind-tables  
-fasynchronous-unwind-tables -g -g -fno-strict-aliasing -fPIC  
-Wno-unused-function -I. -I /usr/lib/ruby/1.8/i586-linux -o  
obj/GLCanvas.o  
src/GLCanvas.cpp

In file included from src/GLCanvas.cpp:2321:

src/GLCanvas.h:19: error: expected class-name before ‘,’ token

src/GLCanvas.cpp: In constructor  
‘SwigDirector\_wxGLCanvas::SwigDirector\_wxGLCanvas(VALUE, wxWindow\*,  
wxWindowID,  
const wxPoint&, const wxSize&, long int, const wxString&, int\*, const  
wxPalette&)’:

src/GLCanvas.cpp:2323: error: class ‘SwigDirector\_wxGLCanvas’ does not  
have any  
field named ‘wxGLCanvas’

## …

Line 19 of GLCanvas.h is:

class SwigDirector\_wxGLCanvas : public wxGLCanvas, public Swig::Director  
{

---

<div class="post-metadata">

**Author:** ![FriedrichS\_Axel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@FriedrichS\_Axel](https://www.ruby-forum.com/u/FriedrichS_Axel)\
**Post date:** [October 28, 2009, 9:34pm UTC](https://www.ruby-forum.com/t/installing-on-opensuse-11-1/178048/2 "2009-10-28T21:34:54Z")

</div>

Hi Friedrich

Friedrich, Axel wrote:

> I try to install wxruby on openSUSE 11.1, but do not succeed.

…

> - wxWidget: “wxAll” from [Downloads - wxWidgets](http://wxWidgets.org/downloads), compiled with  
> “configure --with-gtk --enable-unicode” (no problem)

Please could you try configuring wxWidgets with the options listed here:

[http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets](http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets)

First, ‘make clean’ in the wxWidgets directory, then ‘configure’ with  
the arguments listed on the page, then ‘make && sudo make install’.

You may need to install packages libmesa and libmesa-dev before  
configuring wxWidgets to get GLCanvas support.

In particular, I think your problem is that wxRuby is trying to build  
support for GL Canvas, but this isn’t available. The build process  
should detect this and skip this, but clearly this hasn’t worked. Sorry  
for the inconvenience.

> - rake version 0.8.7
> - SWIG Version 1.3.36
> - ruby 1.8.7 (2008-08-11 patchlevel 72) [i586-linux]

These all look fine. Please let us know if you’re still having problems.

alex
