On Thu, May 6, 2010 at 9:29 AM, Pen Ttt <myocean135 / yahoo.cn> wrote:
> pt@pt-laptop:~$ sudo gem install fxruby
> Successfully installed fxruby-1.6.20-x86-linux
> 1 gem installed
> Installing ri documentation for fxruby-1.6.20-x86-linux...
> Updating class cache with 2834 classes...
> Installing RDoc documentation for fxruby-1.6.20-x86-linux...
> pt@pt-laptop:~$ irb
> irb(main):001:0> require 'fox16'
> LoadError:
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox1=
6.so:
> undefined symbol: rb_thread_pending -

Resurrecting this thread because I faced the same issue - the solution
is simply to go to fxruby's rubyforge download page:

http://rubyforge.org/frs/?group_id=3D300&release_id=3D41247

And download fxruby-1.6.20-gem (the one labelled "any" rather than
"linux"). Manually downloading and installing this will recompile the
extension from source against ruby 1.9, rather than using the
fxruby-linux gem which is presumably compiled against ruby 1.8.

martin

> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox1=
6.so
> =A0from
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox1=
6.rb:6:in
> `require'
> =A0from
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox1=
6.rb:6:in
> `<top (required)>'
> =A0from (irb):1:in `require'
> =A0from (irb):1
> =A0from /usr/local/ruby/bin/irb:12:in `<main>'
> irb(main):002:0>
> --
> Posted via http://www.ruby-forum.com/.
>
>