# Re: Installing on openSUSE 11.1

**URL:** <https://www.ruby-forum.com/t/re-installing-on-opensuse-11-1/178122>\
**Category:** wxRuby\
**Created:** [October 29, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/re-installing-on-opensuse-11-1/178122 "2009-10-29T13:55:53Z")\
**Posts on this page:** 3\
**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 29, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/re-installing-on-opensuse-11-1/178122/1 "2009-10-29T13:55:53Z")

</div>

Hello Alex,

thank you for your help!

“make clean” returned “… no such rule …”,  
so according to a collegue’s hint I deleted all o-files in  
the buildgtk-dir.

I installed Mesa-Development (Mesa was already installed) and did  
your suggested steps.

Unfortunately, rake ended up with the following error:

[… lot of successfull things…]  
ruby swig/renamer.rb src/dc.cpp  
ruby swig/fixplatform.rb src/dc.cpp  
ruby swig/fixmodule.rb src/dc.cpp  
Class: dc  
class wxdc  
ERROR! swig/fixmodule.rb Didn’t find init  
rake aborted!  
Command failed with status (1): [ruby swig/fixmodule.rb src/dc.cpp…]

Can you give me some help again?

Regards,  
Axel

---

<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 29, 2009, 10:29pm UTC](https://www.ruby-forum.com/t/re-installing-on-opensuse-11-1/178122/2 "2009-10-29T22:29:52Z")

</div>

My suggestion, is to delete the entire wxruby\_2\_0\_1\_SRC directory, then  
re-checkout/extract the source code, and try rake again. If that  
doens’t  
help, then there is some problems, more then likely a chance in the  
headers,  
then what we are using. Check to see what version of wxGTK/Base you  
have  
installed, and ensure that it is one that we support. If it is, it may  
be  
that SUSE made modifications to the headers, that are incompatable with  
what  
we use to do the compile.

If need be, I’ll fire up my Virtual Box, install openSUSE on it, and see  
if  
I can get a compile of wxRuby going for openSUSE.

On Thu, Oct 29, 2009 at 7:55 AM, Friedrich, Axel  
\<removed\_email\_address@domain.invalid

---

<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 30, 2009, 10:05am UTC](https://www.ruby-forum.com/t/re-installing-on-opensuse-11-1/178122/3 "2009-10-30T10:05:16Z")

</div>

Hello Mario,

> My suggestion, is to delete the entire wxruby\_2\_0\_1\_SRC  
> directory, then re-checkout/extract the source code, and try  
> rake again.

I did it. It gives me an error again:

[… lot of successfull lines…]  
ruby swig/renamer.rb src/dc.cpp  
ruby swig/fixplatform.rb src/dc.cpp  
ruby swig/fixmodule.rb src/dc.cpp  
Class: dc  
class wxdc  
ERROR! swig/fixmodule.rb Didn’t find init  
rake aborted!  
Command failed with status (1): [ruby swig/fixmodule.rb src/dc.cpp…]

> Check to see what version of wxGTK/Base you have installed,  
> and ensure that it is one that we support.

Don’t know, how to look for this version number. I looked  
into YAST (repository manager) and found, that wxGTK  
(description: " … for development…") was unckecked  
(= not installed).  
I installed it from the openSUSE-DVD,  
deleted wxRuby-SRC,  
placed a new copy of wxRuby-SRC,  
and run again ‘rake’.  
This time, rake stopped almost immediately with this error:

rake  
(in /root/.local/share/Trash/files/wxruby-2\_1.0.1)  
Enabling STATIC build  
Enabling RELEASE build  
Enabling UNICODE build  
The following wxWidgets features are not available and will be skipped:  
MediaCtrl  
MediaEvent  
PrinterDC  
StyledTextCtrl  
StyledTextEvent  
g++ -c -I/usr/local/lib/wx/include/gtk2-unicode-release-static-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  
-oobj/dc.o src/dc.cpp  
src/dc.cpp: In function ‘void Init\_wxDC()’:  
src/dc.cpp:7576: error: ‘mWxdc’ was not declared in this scope  
rake aborted!  
Command failed with status (1): [g++ -c  
-I/usr/local/lib/wx/include/gtk2-…]

Not so easy, for Windows users…

Axel
