# fxRuby and NetBeans - error

**URL:** <https://www.ruby-forum.com/t/fxruby-and-netbeans-error/135942>\
**Category:** FXRuby\
**Created:** [April 26, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/fxruby-and-netbeans-error/135942 "2008-04-26T18:28:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![inari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/838e76/32.png) [@inari](https://www.ruby-forum.com/u/inari)\
**Post date:** [April 26, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/fxruby-and-netbeans-error/135942/1 "2008-04-26T18:28:38Z")

</div>

Initial caveat: I come from a M$ VS world so … yes I’m lazy. 😛

Ok I definately think Ruby’s got a lot of potential so I’m trying to  
play with it. I bassically need two things in order to make my life  
complete. (pathetic I know… :p)

1. Code completion(intellisense)
2. Desktop GUI creation. (preferably with a GUI of it’s own.)

I just d/led NetBeans (6.01 then 6.1rc2 for TK that I can’t seem to  
find). So I’ve got code completion. Very cool.

Now all I’ve got to do is find out how to create a Desktop GUI. There  
doesn’t seem to be a simple way to do this. I installed FXRuby through  
Ruby Gems. (got an error the first time so I installed Fox 1.6.32.) I  
fired up NB again and opened my Ruby app. I’m following the tutorial  
from [http://www.fxruby.org/doc/tutorial1.html](http://www.fxruby.org/doc/tutorial1.html)  
I then got another error(I need to require ‘rubygems’) now I get the  
following error:

/usr/lib/ruby/gems/1.8/gems/fxruby-1.6.14/ext/fox16/fox16.so:  
libFOX-1.6.so.0: cannot open shared object file: No such file or  
directory - /usr/lib/ruby/gems/1.8/gems/fxruby-1.6.14/ext/fox16/fox16.so  
(LoadError)  
from  
/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in `require’  
from /root/NetBeansProjects/How2MakeAForm/lib/main.rb:5

Looking at the documentation it looks like I have to declare some kind  
of path variable so I run the good old terminal window and run:

export LD\_LIBRARY\_PATH=/usr/local/lib

I enter IRB and try out the example and it works fine. yay.

I try this in NB and I’m still not getting any love…

Help!

M

---

<div class="post-metadata">

**Author:** ![inari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/838e76/32.png) [@inari](https://www.ruby-forum.com/u/inari)\
**Post date:** [April 26, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/fxruby-and-netbeans-error/135942/2 "2008-04-26T18:31:45Z")

</div>

“I try this in NB and I’m still not getting any love…”

I mean I try and run my tiny app again and I’m still not getting any  
love…

M

The program code (so far) is:

# 

# To change this template, choose Tools | Templates

# and open the template in the editor.

require ‘rubygems’  
require ‘fox16’

include Fox

---

<div class="post-metadata">

**Author:** ![inari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/838e76/32.png) [@inari](https://www.ruby-forum.com/u/inari)\
**Post date:** [February 16, 2009, 2:06am UTC](https://www.ruby-forum.com/t/fxruby-and-netbeans-error/135942/3 "2009-02-16T02:06:15Z")

</div>

Jason C. wrote:

> “I try this in NB and I’m still not getting any love…”
> 
> I mean I try and run my tiny app again and I’m still not getting any  
> love…
> 
> M
> 
> The program code (so far) is:
> 
> # 
> 
> # To change this template, choose Tools | Templates
> 
> # and open the template in the editor.
> 
> require ‘rubygems’  
> require ‘fox16’
> 
> include Fox

I just got this working on my laptop it runs fedora 10.

After I built Fox I copied the files from /usr/local/lib to /usr/lib to  
put them on the search path.  
I also copied the include directory the same way.

this needs to be done as root

once I did that everything worked.

Alley
