I installed wxruby with ‘gem install wxruby’ and everything went ok.
Then I installed wxwidgets (wx2.8) and wx-common.
I run irb and write:
require ‘rubygems’
require ‘wx’
and get the following error:
#-----------------
LoadError: libwx_gtk2u_stc-2.8.so.0: cannot open shared object file: No
such file or directory -
/home/haris/.gem/ruby/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so
from
/home/haris/.gem/ruby/1.8/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in require' from /home/haris/.gem/ruby/1.8/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require’
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require’
from (irb):3
from /usr/lib/ruby/1.8/rubygems/requirement.rb:22 #--------------------
wxruby2.so is present in
/home/haris/.gem/ruby/1.8/gems/wxruby-2.0.1-x86-linux/lib/ directory
along with wx.rb
It seems you do not have at least part of the wx-widgets libraries
installed. Check in your package manager to make sure you have
wx-widgets-2.8 and (after this message) wx-widgets-stc-2.8 installed.
On Linux, the gem only installs the ruby interface to the wxWidgets
library, not the core wxWidgets library code itself.
a
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.