what 's wrong with my fxruby?

P

Pen Ttt

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/fox16.so:
undefined symbol: rb_thread_pending -
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox16.so
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox16.rb:6:in
`require'
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/fxruby-1.6.20-x86-linux/lib/fox16.rb:6:in
`<top (required)>'
from (irb):1:in `require'
from (irb):1
from /usr/local/ruby/bin/irb:12:in `<main>'
irb(main):002:0>
 
P

Pen Ttt

somen people say ruby1.9 don't surpport wxruby,so i change into ruby
1.8
there is problem too:
pt@pt-laptop:~$ sudo find / -name 'fox16'
[sudo] password for pt:
/var/lib/gems/1.8/gems/fxruby-1.6.20-x86-linux/ext/fox16
/var/lib/gems/1.8/gems/fxruby-1.6.20-x86-linux/lib/fox16
/var/lib/gems/1.8/doc/fxruby-1.6.20-x86-linux/rdoc/files/lib/fox16
pt@pt-laptop:~$ irb
irb(main):001:0> require 'fox16'
LoadError: no such file to load -- fox16
from (irb):1:in `require'
from (irb):1
from :0
irb(main):002:0>

you can see fox16 is installed on my system,but i can't require
it,why?
 
M

Martin DeMello

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top