require FireRuby

T

Tomas Fischer

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:
- http://gems.rubyforge.org

FireRuby is avaibable via gem in Version 0.4.1

What else can cause the problem?

Best regards,
Tomas
 

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,787
Messages
2,569,627
Members
45,328
Latest member
66Teonna9

Latest Threads

Top