Jonathan Maasland wrote:> I just tried to start a bit of testing of the binary Linux gem (Kevin
> sent me a link) and I quickly ran into a problem:
> -----
> jonathan at weatherlight ~/ruby-dev/wxruby/cvs_current/wxruby2/samples $
> ruby test.rb
> /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.0-i486-linux/lib/wx.rb:22:
> uninitialized constant Wxruby2 (NameError)
> from
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require''
> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:182:in
`activate''
> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:181:in
`activate''
> from
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:26:in
`require''
> from test.rb:4
> -----
Definitely looks like a ruby/gem installation problem. It is finding
wx.rb, which is the little loader that pulls in wxruby.so.
First, try downloading the new gem I just put on rubyforge. It will
probably be the same, but perhaps not.
Then, try running:
gemwhich wx
gemwhich wxruby2
I have discovered on my system that if I ever had the non-gem version of
wxruby installed ("rake install"), it makes the gem version unable to
run.
> After gem-testing I tried to grab the latest cvs and ran into a small
> issue I already fixed once. Just thought you might like to know about.
> I have both Wx-2.4 and Wx-2.6 installed, however wx-config is linked to 2.4
> After changing `wx-config` ...'' to `wx-config-2.6 ...` everything
worked
> fine, up until the linking which failed:
My system doesn''t have wx-config-2.6, so that might be a gentoo
packaging thing. But if/when we have the wxWidgets version checking in
our rakefile, at least you would quickly and clearly be told what the
problem is. Solving it might be harder.
At a minimum, we should probably extract "wx-config" out as an easily
configurable parameter. A patch to do that would be welcome, although I
haven''t yet thought through where it should be defined (rakefile,
environment, or somewhere else).
> --
> ld: cannot find -lwx_gtk2ud_xrc-2.6
> --
>
> If I list the libs for wx with wx-config-2.6 --libs, it of course lists
> the above library. And the library-file exists in /usr/lib. Any ideas?
> ''Cause I really don''t have a clue. I thought I might try
to recompile wx.
I don''t know. The very latest (in cvs and 0.0.35 source tarball)
attempts to build statically vs. dynamically, so maybe that will work
around the problem for you.
> Thank you all (Kevin, Roy, Sean and Alex) very very much for all the
> hard work and free time you spent on this project. I can''t say
nothing
> more than: You guys ROCK!
Thanks for the words of encouragement!
Kevin