fxRuby and NetBeans - error

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

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

“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

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