Forum: wxRuby Running... libwx_gtk2u_gl-2.8.so.0

E9cd1fb041c0f6af9aa0ec336cbc40ad?d=identicon&s=25 Gugão (Guest)
on 2010-02-26 18:11
(Received via mailing list)
Hi all, i´m new at wxruby on Linux so when i run my first program:

require 'rubygems'
require 'wx'
include Wx

class MyFrame < Frame
        def initialize()
                super(nil, -1, 'Hi')
        end
end

----

$ ruby oi.rb
/usr/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-linux/lib/wxruby2.so:
libwx_gtk2u_gl-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 oi.rb:2

How to fix it ?
thanks any help
00109e19a784b64f81b483a5dbec690a?d=identicon&s=25 Chauk-Mean Proum (chauk-mean)
on 2010-03-01 23:34
(Received via mailing list)
Hi,

2010/2/26 Gugão <gugui.sarubi.macchi@gmail.com>:
>       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 oi.rb:2
>
> How to fix it ?

The wxWidgets library is probably not installed on your system.
On Ubuntu, try :
sudo apt-get install libwxgtk2.8-0

It seems also that you're using an old wxRuby package (1.9.9).
You should use the latest stable release (2.0.1).

Cheers.
Chauk-Mean
This topic is locked and can not be replied to.