# What 's wrong with my fxruby?

**URL:** <https://rubytalk.org/t/what-s-wrong-with-my-fxruby/58422>\
**Category:** ruby-talk\
**Created:** [6 May 2010 03:59 UTC](https://rubytalk.org/t/what-s-wrong-with-my-fxruby/58422 "2010-05-06T03:59:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pen\_Ttt](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@Pen\_Ttt](https://rubytalk.org/u/Pen_Ttt)\
**Post date:** [6 May 2010 03:59 UTC](https://rubytalk.org/t/what-s-wrong-with-my-fxruby/58422/1 "2010-05-06T03:59:29Z")

</div>

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

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Pen\_Ttt](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@Pen\_Ttt](https://rubytalk.org/u/Pen_Ttt)\
**Post date:** [6 May 2010 05:30 UTC](https://rubytalk.org/t/what-s-wrong-with-my-fxruby/58422/2 "2010-05-06T05:30:07Z")

</div>

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  
&nbsp;&nbsp;from (irb):1:in `require'  
&nbsp;&nbsp;from (irb):1  
irb(main):002:0\>

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

> **···**
>
> from :0  
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://rubytalk.org/u/Martin_DeMello)\
**Post date:** [28 May 2010 14:15 UTC](https://rubytalk.org/t/what-s-wrong-with-my-fxruby/58422/3 "2010-05-28T14:15:27Z")

</div>

> 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 -

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=300&release\_id=41247](http://rubyforge.org/frs/?group_id=300&release_id=41247)

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

> **···**
>
> On Thu, May 6, 2010 at 9:29 AM, Pen Ttt \<myocean135@yahoo.cn\> wrote:
> 
> > /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\>  
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Daniel\_Bye](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@Daniel\_Bye](https://rubytalk.org/u/Daniel_Bye)\
**Post date:** [6 May 2010 12:06 UTC](https://rubytalk.org/t/what-s-wrong-with-my-fxruby/58422/4 "2010-05-06T12:06:04Z")

</div>

> 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  
> &nbsp;&nbsp;from (irb):1:in `require'  
> &nbsp;&nbsp;from (irb):1  
> &nbsp;&nbsp;from :0  
> irb(main):002:0\>
> 
> you can see fox16 is installed on my system,but i can't require  
> it,why?

irb(main):001:0\> require 'fox16'  
LoadError: no such file to load -- fox16  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from (irb):1:in `require'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from (irb):1  
irb(main):002:0\> require 'rubygems'  
=\> true  
irb(main):003:0\> require 'fox16'  
=\> true  
irb(main):004:0\>

You first need to load rubygems.

Dan

> **···**
>
> On Thu, May 06, 2010 at 02:30:07PM +0900, Pen Ttt wrote:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from :0
> 
> --  
> Daniel Bye  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\_  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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