Require FireRuby

Hi,

following script:

require ‘rubygems’
require ‘fireruby’

include FireRuby

sql= “foo”
db= Database.new(" … “)
db_fire= db.connect(” … ", " … ")
tx= Transaction.new(db_fire)
tx= db_fire.start_transaction
s= Statement.new(db_fire, tx, sql, 3);
s.execute

works fine on machine A, but failed with a
“uninitialized constant Database (NameError)” error on machine B.

Both have a Debian SID with
ruby 1.8.4 (2005-12-24) [i486-linux]
~:/tmp$ ruby -e ‘puts $:’
/usr/local/lib/site_ruby/1.8
/usr/local/lib/site_ruby/1.8/i486-linux
/usr/local/lib/site_ruby/1.8/i386-linux
/usr/local/lib/site_ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/i486-linux
/usr/lib/ruby/1.8/i386-linux

~:/tmp$ gem environment
Rubygems Environment:

  • VERSION: 0.8.11 (0.8.11)
  • INSTALLATION DIRECTORY: /var/lib/gems/1.8
  • GEM PATH:
    • /var/lib/gems/1.8
  • REMOTE SOURCES:

FireRuby is avaibable via gem in Version 0.4.1

What else can cause the problem?

Best regards,
Tomas

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs