Subject RE: [firebird-support] Fireruby problem (RubyOnRails)
Author Yusuf Celik
Hi Lee,
The following works for me

require 'rubygems'
require_gem 'activerecord'
include Benchmark

ActiveRecord::Base.establish_connection(
:adapter => "firebird",
:host => "localhost",
:database => "D:\\Projects\\Junk\\TEST.FDB",
:username => "SYSDBA",
:password => "masterkey"
)
class Personel < ActiveRecord::Base
set_table_name "TBL_PERSONEL" #override table name
end
p Personel.column_names()
Personel.benchmark("Creating project") do
pers = Personel.find(:all)
puts "Total: #{pers.length}"

pers.each do |p|
puts "Name/Surname: #{p.name+' '+p.surname}."
end
end


Regards
Yusuf Celik



________________________________

From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of lee_longmore
Sent: Saturday, September 15, 2007 9:06 PM
To: firebird-support@yahoogroups.com
Subject: [firebird-support] Fireruby problem (RubyOnRails)



I am getting the following RoR controller exception when trying to
access my newly installed Firebird DB (v2.0.1) (to replace MySQL) from
my RubyOnRails application.

libfbclient.so.1: cannot open shared object file: No such file or
directory - /usr/local/lib/ruby/gems/1.8/gems/fireruby-0.4.0-i586-
linux/lib/fr_lib.so

I have installed the fireruby gem using "sudo gem install fireruby".

I am running ruby 1.8.5 and rails 1.2.3.

Any ideas most appreciated.

Thanks,
Lee.






[Non-text portions of this message have been removed]