# Installing wxruby 2.0.1. missing lwx\_gtk2u\_media-2.8

**URL:** <https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492>\
**Category:** wxRuby\
**Created:** [November 5, 2009, 11:34am UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492 "2009-11-05T11:34:34Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 5, 2009, 11:34am UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/1 "2009-11-05T11:34:34Z")

</div>

Hi,

i tried too install wxruby-2.0.1 on opensuse 11.2 from the rake command  
I get the following error:  
…

usr/lib/gcc/i586-suse-linux/4.4/…/…/…/…/i586-suse-linux/bin/ld:  
cannot find -lwx\_gtk2u\_media-2.8  
collect2: ld returned 1 exit status  
rake aborted!  
Command failed with status (1): [g++ -shared -fPIC -o -L. -rdynamic  
-Wl,-…]  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in`call’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in`sh’  
./rake/rakewx.rb:101  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:634:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:634:in`execute’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in`execute’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in  
`invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in`synchronize’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in  
`invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in`invoke\_prerequisites’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in`invoke\_prerequisites’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in  
`invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in`synchronize’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in  
`invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in`invoke’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in`top\_level’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in`top\_level’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in  
`standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in`top\_level’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in`standard\_exception\_handling’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in`load’  
/usr/bin/rake:19

an  
dirk@linuxe:~\> ls -la /usr/lib/libwx\_gtk2u\_mmedia-2.8.so.0  
lrwxrwxrwx 1 root root 31 28. Okt 11:24  
/usr/lib/libwx\_gtk2u\_mmedia-2.8.so.0 -\> libwx\_gtk2u\_mmedia-2.8.so.0.6.0  
shows everything is there so what can I do?

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 5, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/2 "2009-11-05T18:42:05Z")

</div>

Hi Dirk,

2009/11/5 Dirk H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hi,
> 
> i tried too install wxruby-2.0.1 on opensuse 11.2 from the rake command  
> I get the following error:  
> …
> 
> usr/lib/gcc/i586-suse-linux/4.4/../../../../i586-suse-linux/bin/ld:  
> cannot find -lwx\_gtk2u\_media-2.8  
> collect2: ld returned 1 exit status

> dirk@linuxe:~\> ls -la /usr/lib/libwx\_gtk2u\_mmedia-2.8.so.0  
> lrwxrwxrwx 1 root root 31 28. Okt 11:24  
> /usr/lib/libwx\_gtk2u\_mmedia-2.8.so.0 → libwx\_gtk2u\_mmedia-2.8.so.0.6.0  
> shows everything is there so what can I do?

The missing lib is libwx\_gtk2u\_media-2.8 and not  
libwx\_gtk2u\_mmedia-2.8 (mmedia is an optional package).  
Check that you have a libwx\_gtk2u\_media-2.8.so accessible through your  
LD\_LIBRARY\_PATH and that points to the actual lib through symbolic  
links.

Cheers.  
Chauk-Mean.

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 9, 2009, 8:57am UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/3 "2009-11-09T08:57:50Z")

</div>

Hello Dirk,

did you get wxruby installed on opensuse 11.2?

Axel

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 9, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/4 "2009-11-09T13:39:03Z")

</div>

Hi Axel,

thx for you support, but unfortunatly it dosen#t work.In the meantime I  
started from scratch, and compiled wxWidgets 2.8-10 and wxruby again  
from source.

for wxWidget I use the following con./configure --disable-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 --without-libmspack  
figure:

If I now run a simple test program i get a segmentation fault:

usr/lib/ruby/site\_ruby/1.8/i586-linux/wxruby2.so: [BUG] Segmentation  
fault  
ruby 1.8.7 (2008-08-11 patchlevel 72) [i586-linux]

Abgebrochen  
the ruby program looks like:

# 

# encoding: UTF-8

require ‘rubygems’  
require ‘wx’  
include Wx

class MyFrane \< App  
def on\_init  
Frame.new(nil,-1,“yoyo”).show()  
end  
end

So any help is appreciated

Dirk

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 9, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/5 "2009-11-09T15:20:42Z")

</div>

Hi Alex,

auch mit den 2 Zeilen zusÃ¤tlich hab ich das gleiche Problem

> myApp = MyFrane.new() # Fran/me ?  
> myApp.main\_loop()

Unter Windows hab ich es noch nicht getestet

GrÃ¼ssle

Dirk

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 9, 2009, 3:45pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/6 "2009-11-09T15:45:55Z")

</div>

Hallo Dirk,

for you are getting “segfault”-error, I think, the reason is _not_ in  
your ruby script.

And I think you realy need these additional two lines (but I’m wxruby  
beginner…).

If you want to answer in German, maybe it is better that you write  
directly to my email address.

Viele Gruesse,  
Axel

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 9, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/7 "2009-11-09T16:03:47Z")

</div>

Friedrich, Axel wrote:

> Hallo Dirk,
> 
> for you are getting “segfault”-error, I think, the reason is _not_ in  
> your ruby script.
> 
> And I think you realy need these additional two lines (but I’m wxruby  
> beginner…).
> 
> If you want to answer in German, maybe it is better that you write  
> directly to my email address.
> 
> Viele Gruesse,  
> Axel

Hi Alex,

I agree with you that the script should not the reason, to be honest I  
copied this script from some webpage for testing purpose.  
I found via Internet some reports about random segmentation faults but  
no solution yet.I experience always this segmentation fault regardless  
what I do, with the original libs supplied with opensuse (11.2) I got  
only some missing libs errors, so compiling wxWidgets was a must.  
I had several problems with gtk stuff in this new Version so let’s see  
if there is a solution is available.

The language at least for my understanding doesn’t matter if its English  
or German.

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 9, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/8 "2009-11-09T16:59:06Z")

</div>

> I got  
> only some missing libs errors, so compiling wxWidgets was a must.

After compiling wxWidgets, did you compile wxRuby?  
If so, were you able to run “rake” in the wxRuby-Source-dir without  
errors?  
That’s where I stuck.

-Axel

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 9, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/9 "2009-11-09T14:09:19Z")

</div>

Hello Dirk,

> thx for you support, but unfortunately it doesn’t work.

My apologizes, but I can’t give you help. Myself, I have problems, too,  
installing wxruby on openSUSE (11.1). If you would have said, that you  
have  
got it running, I would have asked you, how you did it 😉 .

I installed wxRuby on Windows (that was _very_ easy) and did run your  
code (I  
added two lines…)

require ‘rubygems’  
require ‘wx’  
include Wx

class MyFrane \< App  
def on\_init  
Frame.new(nil,-1,“yoyo”).show()  
end  
end

myApp = MyFrane.new() # Fran/me ?  
myApp.main\_loop()

That run fine on Windows.

BTW, my native language is German…

Viele Gruesse,  
Axel

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 10, 2009, 5:57pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/10 "2009-11-10T17:57:30Z")

</div>

Hallo Dirk,

I wonder, why at your side rake run without error, while on my side rake  
aborts with error.  
I don’t think, that it’s a difference between openSuse 11.1 and 11.2.

Comparing your compile-options for wxWidgets with mine,  
You gave the following:

> for wxWidget I use the following con./configure --disable-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 --without-libmspack

Did you realy use “–enable-graphics\_ctx” and “–enable-mediactrl”  
_without_ a blank in between?

I used the same options, but not " --without-libmspack".  
If I’ve enough time tomorrow, I’ll try it with this option.

-Axel

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 10, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/11 "2009-11-10T14:21:29Z")

</div>

Friedrich, Axel wrote:

> > I got  
> > only some missing libs errors, so compiling wxWidgets was a must.
> 
> After compiling wxWidgets, did you compile wxRuby?  
> If so, were you able to run “rake” in the wxRuby-Source-dir without  
> errors?  
> That’s where I stuck.
> 
> -Axel

Hi Axel,

the wxRUby build woked after wxWidgets

irk@linuxe:~/wxruby-2.0.1\> rake  
(in /home/dirk/wxruby-2.0.1)  
Enabling STATIC 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  
StyledTextCtrl  
StyledTextEvent  
dirk@linuxe:~/wxruby-2.0.1\>

Dirk

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 16, 2009, 9:39am UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/12 "2009-11-16T09:39:36Z")

</div>

Hi Dirk,

hmm, I compiled wxWidgets exactly with the configure-options you gave.  
No problem.

But running rake gave me the same error message as before:

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…]

Which version of wxWidgets-Source did you use?  
I used wxWidgets 2.8.10, the “wxAll”-version, from

> **[wxWidgets - Browse Files at SourceForge.net](https://sourceforge.net/projects/wxwindows/files/)**
>
> A cross-platform GUI library

I didn’t try Ruby 1.9. I was thinking about using 1.9, because of the  
better threads support of 1.9, but that’s another story…  
Do you know, that there is a special Ruby-1.9-version of wxRuby?  
[http://rubyforge.org/frs/?group\_id=35](http://rubyforge.org/frs/?group_id=35)  
wxruby-ruby19-2.0.1…

I’m still using:

- ruby 1.8.7 (2008-08-11 patchlevel 72) [i586-linux]
- wxruby: wxruby-2.0.1.tar.gz from [rubyforge.org](http://rubyforge.org)
- openSuse 11.1

Axel

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 15, 2009, 11:17am UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/13 "2009-11-15T11:17:32Z")

</div>

Hi Axel,

any progress ?

In the meantime I compiled ruby 1.9 and now I get several problem:  
(in /home/dirk/wxruby-2.0.1)  
Enabling STATIC 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  
StyledTextCtrl  
StyledTextEvent  
dirk@linuxe:~/wxruby-2.0.1\> rake  
(in /home/dirk/wxruby-2.0.1)  
Enabling STATIC 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  
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 -O2 -g -Wall -Wno-parentheses  
-Wno-unused-function -I. -I /usr/local/include/ruby-1.9.1 -I  
/usr/local/include/ruby-1.9.1/site\_ruby -I  
/usr/local/include/ruby-1.9.1/vendor\_ruby -I  
/usr/local/include/ruby-1.9.1/i686-linux -o obj/AboutDialogInfo.o  
src/AboutDialogInfo.cpp  
src/AboutDialogInfo.cpp:1788:20: error: rubyio.h: Datei oder Verzeichnis  
nicht gefunden  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetName(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:1898: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:1898: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetVersion(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:1971: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:1971: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetDescription(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2044: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2044: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetCopyright(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2117: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2117: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetLicence(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2215: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2215: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetWebSiteURL(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2375: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2375: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetWebSiteDescription(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2399: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2399: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetDevelopers(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2520: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2520: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetDocWriters(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2643: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2643: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetArtists(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2766: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2766: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetTranslators(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2889: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2889: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
rake aborted!  
Command failed with status (1): [g++ -c  
-I/usr/local/lib/wx/include/gtk2-…]

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 17, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/14 "2009-11-17T19:59:49Z")

</div>

Hi Axel,

2009/11/10 Friedrich, Axel [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I wonder, why at your side rake run without error, while on my side rake aborts with error.  
> I don’t think, that it’s a difference between openSuse 11.1 and 11.2.

Well, I don’t use openSuse but for Ubuntu, 9.10 is really different from  
9.04.  
The C++ compiler has changed (now g++ 4.4.1).  
With Ubuntu 9.04, I’ve been able to build myself wxWidgets-2.8.10.  
With Ubuntu 9.10, this was unsuccessful so I’m using the “official”  
wxWidgets package provided with Ubuntu.

I’ve added the detailed steps for building wxRuby on Ubuntu-9.10 on  
the Wiki  
([http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages](http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages)).  
May be this can help.

Cheers.  
Chauk-Mean.

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 16, 2009, 9:50am UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/15 "2009-11-16T09:50:43Z")

</div>

Hi Alex,

I use wxWidget 2.8.10.1.1 ON OPENsUSE 11.2

dIRK

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 18, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/16 "2009-11-18T18:48:40Z")

</div>

Hi Chauk-Mean

thx for your suggestion I followed them as far as possible but  
unfortunately I got some problems:  
dirk@linuxe:~/wxruby-2.0.1\> rake WXRUBY\_VERSION=2.0.1  
(in /home/dirk/wxruby-2.0.1)  
Enabling STATIC 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  
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 -O2 -g -Wall -Wno-parentheses  
-Wno-unused-function -I. -I /usr/local/include/ruby-1.9.1 -I  
/usr/local/include/ruby-1.9.1/site\_ruby -I  
/usr/local/include/ruby-1.9.1/vendor\_ruby -I  
/usr/local/include/ruby-1.9.1/i686-linux -o obj/AboutDialogInfo.o  
src/AboutDialogInfo.cpp  
src/AboutDialogInfo.cpp:1788:20: error: rubyio.h: Datei oder Verzeichnis  
nicht gefunden  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetName(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:1898: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:1898: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetVersion(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:1971: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:1971: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetDescription(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2044: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2044: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetCopyright(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2117: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2117: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetLicence(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2215: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2215: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetWebSiteURL(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2375: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2375: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetWebSiteDescription(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2399: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2399: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetDevelopers(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2520: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2520: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetDocWriters(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2643: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2643: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetArtists(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2766: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2766: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp: In function â€˜VALUE  
\_wrap\_wxAboutDialogInfo\_GetTranslators(int, VALUE\*, VALUE)â€™:  
src/AboutDialogInfo.cpp:2889: error: â€˜rb\_utf8\_encodingâ€™ was not declared  
in this scope  
src/AboutDialogInfo.cpp:2889: error: â€˜rb\_enc\_str\_newâ€™ was not declared  
in this scope  
rake aborted!  
Command failed with status (1): [g++ -c  
-I/usr/local/lib/wx/include/gtk2-…]

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

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 30, 2009, 8:57am UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/17 "2009-11-30T08:57:26Z")

</div>

Hi,

I just want to tell you the outcome.

I tried using Chauk-Mean’s Ubuntu instruction on my openSUSE 11.1. But:  
The Linux-PC has _no_ connection to the web (isn’t allowed to). Hence,  
I downloaded a lot of dependencies with my Windows-PC, transfered them  
to the Linux-PC by flash drive and installed them manually. But because  
the dependencies themselves required other dependencies, I gave up at  
some point. 😕

Because Dirk H. had some more success with openSUSE 11.2, I  
installed openSUSE 11.2. and tried compiling wxWidgets from source,  
which worked without problems on openSUSE 11.1. But this time I got an  
error:

…  
In file included from …/src/gtk/gsockgtk.cpp:21:  
…/include/wx/gsocket.h:40: error: using typedef-name ‘GSocket’ after  
‘class’  
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a  
previous declaration here  
…

That’s the condensed description.

I give up for now.

Axel

---

<div class="post-metadata">

**Author:** ![dherzhau](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/779978/32.png) [@dherzhau](https://www.ruby-forum.com/u/dherzhau)\
**Post date:** [November 19, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/installing-wxruby-2-0-1-missing-lwx-gtk2u-media-2-8/178492/18 "2009-11-19T18:41:40Z")

</div>

Hi Dirk

Dirk H. wrote:

> src/AboutDialogInfo.cpp:1788:20: error: rubyio.h: Datei oder Verzeichnis  
> nicht gefunden

I haven’t followed all this thread, but it looks like you’re missing the  
ruby headers which are required.

I’d guess there’s a package something like “ruby-1.9-dev” which you  
should install.

alex
