You are not logged in.

#1 2008-12-03 20:23:05

icetonic
Member
From: Germany
Registered: 2008-10-21
Posts: 104

WXRuby refuses to work

I installed rubygems and over gems I installed wxruby... then I wanted to run the first test project from here:
http://wxruby.rubyforge.org/wiki/wiki.p … ng_Started

well I added require "rubygems" to not to have add -rubygems parameter when trying to execute..
and this error comes up everytime I try to run it:

/usr/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-linux/lib/wxruby2.so: libwx_gtk2u_media-2.8.so.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.9-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-1.9.9-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 wxrubyminimum.rb:4

The library is really not there... Then I tried to compile wxgtk on my own - worked perfect, but still there was no such library generated... is this a wxruby mistake or am I doing something wrong?

Last edited by icetonic (2008-12-03 20:23:44)

Offline

#2 2008-12-09 14:04:30

markusle
Member
Registered: 2008-11-25
Posts: 4

Re: WXRuby refuses to work

It might be that wxGTK does not build shared libraries by default. Have you tried
passing --enable-shared during the configure step?

Offline

#3 2009-06-30 16:19:00

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

Re: WXRuby refuses to work

[ignore this post]

Last edited by yossarianuk (2009-06-30 17:01:27)

Offline

#4 2009-06-30 17:01:10

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

Re: WXRuby refuses to work

I've tried to compile wxgtk with the  --enable-mediactrl   enabled as outlined

http://bugs.archlinux.org/task/14254?opened=4109&status[0]=

But the files libwx_gtk2u_media-2.8.so.0 is still not installed - i have tried --enabled-shared also...

libwx_gtk2u_media-2.6.so.0 is installed from the wxgtk-2.6 package....

[morgan@arch64 iplayer-dl]$ ruby -rubygems -Ilib bin/iplayer-dl-gui
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86_64-linux/lib/wxruby2.so: libwx_gtk2u_media-2.8.so.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-x86_64-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.0-x86_64-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 ./lib/iplayer/gui/app.rb:1
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from bin/iplayer-dl-gui:11


This works in other distros - gentoo / ubuntu  ...

Last edited by yossarianuk (2009-06-30 17:04:18)

Offline

#5 2009-06-30 18:29:14

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: WXRuby refuses to work

Is your system fully up-to-date?

You said that you have libwx_gtk2u_media-2.6.so.0 is on your system but ruby is trying to find libwx_gtk2u_media-2.8.so.0

The version of wxgtk on my system (from [extra]) is 2.8 which has a build date of 6th June so you might want to check your mirrors for an update.  If you are rebuilding wxgtk as suggested in the bug report you might want to update your ABS tree to make sure you have the latest version of the PKGBUILD.

Offline

#6 2009-06-30 19:11:53

yossarianuk
Member
Registered: 2007-05-02
Posts: 103

Re: WXRuby refuses to work

Hi

My System is up  to date and I did an abs sync before...

I have 2 packages installed

extra/wxgtk 2.8.10.1-1 [installed]
     wxGTK - GTK+ implementation of wxWidgets API for GUI
extra/wxgtk-2.6 2.6.4-2 [installed]
     wxGTK - GTK+ implementation of wxWidgets API for GUI


I have fixed it however:-

The issue seems to be that the source that abs/arch is using is wxPython-src rather than wxgtk-src  - its set by default in the pkgbuild

(I am on amd64 Arch linux if that helps...)

I manually compiled it from the arch linux source and it was missing, I then got the tar.gz file direct from the wxgtk homepage - compiled with the exact same options and it then includes the missing

libwx_gtk2u_media-2.8.so files....

Its like the arch package is missing them on purpose?

Anyway to use wxruby I have to use pacman -Rd wxgtk then compile the source version from the home page - its a bit messy...

Offline

Board footer

Powered by FluxBB