Forum: Ruby on Rails Firebird adapter HELP???????

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Rick F. (Guest)
on 2009-03-31 17:50
Hi All,

Is anyone successfully using ROR 2.x with Firebird 2.x in a production
environment? The support seems to have dwindled.

I would greatly appreciate any installation guidelines, comments or
tips. What is somewhat confusing is what is required to for ROR to play
nicely with firebird.

I have come across fireruby, fb_adapter, fb-0.5.9...there does not seem
to be cohesive install / requirement steps...I certainly don't mind
working through all this but would appreciate any help to nudge me
along.

Thanks,
Rick
Fidel V. (Guest)
on 2009-03-31 18:13
(Received via mailing list)
On Tue, Mar 31, 2009 at 2:50 PM, Rick F.
<removed_email_address@domain.invalid> wrote:
> I have come across fireruby, fb_adapter, fb-0.5.9...there does not seem
> to be cohesive install / requirement steps...I certainly don't mind
> working through all this but would appreciate any help to nudge me
> along.
>

Hi Rick,

I actually asked the same question a while ago
http://www.ruby-forum.com/topic/181473. And as you can see there was
no answers for that. But, after some trial and error I managed to get
it to work.

Before I posted the thread asking for help, I went through the
following tutorial
http://mapopa.blogspot.com/2009/02/installing-fire...,
but I did not get it to work, and that is when I got that error
message. But, I found out what was missing.

I installed it under Ubuntu Linux, and first I made sure that
libfbclient.so was in /usr/lib. In other words, if you installed from
the repository, then make sure that you install firebird-dev. I always
install from the archives.

Next, you do the following:

1) install fb-0.5.9
2) install fb_adapter
3) go to the folder where fb-0.5.9 is (in my case it is under
/usr/lib/ruby/gems/1.8/gems/fb-0.5.9), and do a sudo make install.
That should install fb-0.5.9.

That's it, you can now follow the rest of the tutorial from
http://mapopa.blogspot.com/2009/02/installing-fire...

Migrations aren't yet working.

Good luck!

Fidel.
Fidel V. (Guest)
on 2009-03-31 18:24
(Received via mailing list)
On Tue, Mar 31, 2009 at 3:12 PM, Fidel V. <removed_email_address@domain.invalid>
wrote:

> That's it, you can now follow the rest of the tutorial from
> http://mapopa.blogspot.com/2009/02/installing-fire...

Sorry, wrong link. Here is the correct one
http://mapopa.blogspot.com/2009/02/rails-on-firebi...

All the best,

Fidel.
Rick F. (Guest)
on 2009-03-31 21:20
Thanks for sharing the knowledge, you're a life-saver.

Best regards,
Rick
Fidel V. (Guest)
on 2009-04-01 12:36
(Received via mailing list)
On Tue, Mar 31, 2009 at 6:20 PM, Rick F.
<removed_email_address@domain.invalid> wrote:
>
> Thanks for sharing the knowledge, you're a life-saver.

No problem. I am working on the code to add support for migrations,
and will share that as well soon. Right now, I am able to do some
migrations, but I still have to do a fair bit of testing. I am not
really a Ruby expert, so it takes a little more time, because I have
to read about certain features.

Anyway, I will share after I finish.

All the best,

Fidel.
Alejandro P. (Guest)
on 2012-10-03 23:36
Does anyone have an example of how to connect to a database and execute
a simple query using Ruby?
Adrian Marius Popa (Guest)
on 2012-10-05 13:31
(Received via mailing list)
On Wednesday, October 3, 2012 10:37:26 PM UTC+3, Ruby-Forum.com User
wrote:
>
> Does anyone have an example of how to connect to a database and execute
> a simple query using Ruby?
>


I have explained at the end of the article
http://mapopa.blogspot.ro/2009/02/fireruby-howto-s...

All you need to do is to install firebird2.5-dev headers and after that
gem install fb should do all the work for you

I recommend to use rvm and a current ruby 1.9.3
Alejandro P. (Guest)
on 2012-10-05 16:15
Adrian Marius Popa wrote in post #1078698:
> On Wednesday, October 3, 2012 10:37:26 PM UTC+3, Ruby-Forum.com User
> wrote:
>>
>> Does anyone have an example of how to connect to a database and execute
>> a simple query using Ruby?
>>
>
>
> I have explained at the end of the article
> http://mapopa.blogspot.ro/2009/02/fireruby-howto-s...
>
> All you need to do is to install firebird2.5-dev headers and after that
> gem install fb should do all the work for you
>
> I recommend to use rvm and a current ruby 1.9.3

Thanks for your reply, I read your blog. Only what i need connect to
firebird from Windows.
Adrian Marius Popa (Guest)
on 2012-10-09 00:00
(Received via mailing list)
On Friday, October 5, 2012 3:16:25 PM UTC+3, Ruby-Forum.com User wrote:
> > I have explained at the end of the article
>
I don't use windows but my guess is you need devkit from rails installer
also the firebird headers

http://railsinstaller.org/

ps: on windows usually it's easier to install ubuntu in a virtualbox and
work from there
I will try to write some steps for the railsinstalller+devkit
installations
and firebird
This topic is locked and can not be replied to.