# I do not configure firebird

**URL:** <https://www.ruby-forum.com/t/i-do-not-configure-firebird/80948>\
**Category:** Rails\
**Created:** [January 2, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/i-do-not-configure-firebird/80948 "2007-01-02T13:37:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_brownstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Post date:** [January 2, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/i-do-not-configure-firebird/80948/1 "2007-01-02T13:37:34Z")

</div>

I load the fireruby, copy the fbclient.dll for C:\Windows\System32, I  
placed in aliases.conf the path for arquive .fdb “testefb =  
localhost:C:\Teste\DADOS.FDB” and configure de database.yml:

1. development:
2. adapter: firebird
3. database: testefb
4. username: sysdba
5. password: masterkey
6. host: localhost
7. 
8. test:
9. development
10. 
11. production:
12. development

I create a migrate:

1. def self.up
2. create\_table :usuario do |t|
3. 

```
 t.column :nome, :string, :limit => 30

```

4. 

```
 t.column :email, :string

```

5. 

```
 t.column :cript_senha, :string, :null => false

```

6. 

```
 t.column :nivel, :integer

```

7. end
8. end

And when execute the rake migrate, appear the following error:

rake aborted!  
Error opening database connection.  
I/O error for file “testefb”  
Error while trying to open file  
O sistema nÃ’o pode encontrar o arquivo especificado.

Unsuccessful execution caused by a system error that precludes  
successful execution of subsequent statements  
SQL Code = -902  
Firebird Code = 335544344

What I am making a mistake, therefore I tried im my notebook, and on  
micro here of work, and both appear the exactly error.

ps.: In aliases.conf I am making to place the path without the  
localhost, but appear the following error:

rake aborted!  
You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]

---

<div class="post-metadata">

**Author:** ![mr\_brownstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Post date:** [January 2, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/i-do-not-configure-firebird/80948/2 "2007-01-02T17:35:51Z")

</div>

help.

---

<div class="post-metadata">

**Author:** ![mr\_brownstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Post date:** [January 2, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/i-do-not-configure-firebird/80948/3 "2007-01-02T17:44:50Z")

</div>

I have no experience with Firebird, but it looks like you’re running  
it in “classic” mode (or that may be what the binding is configured  
for) and it wants a database FILE rather than a database CONNECTION.

I suggest reading up on the docs for the binding you’re using:  
[http://fireruby.rubyforge.org/](http://fireruby.rubyforge.org/)

–Jeremy

On 1/2/07, Marcelo J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 1. host: localhost
> 2. create\_table :usuario do |t|  
> Error opening database connection.  
> What I am making a mistake, therefore I tried im my notebook, and on  
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
My free Ruby e-book:  
[http://www.humblelittlerubybook.com/book/](http://www.humblelittlerubybook.com/book/)

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)

---

<div class="post-metadata">

**Author:** ![mr\_brownstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Post date:** [January 2, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/i-do-not-configure-firebird/80948/4 "2007-01-02T18:24:54Z")

</div>

I am running in classic, but I tested with super server and also not  
executed de rake migrate, appear the exctly message.

---

<div class="post-metadata">

**Author:** ![mr\_brownstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Post date:** [January 3, 2007, 8:22pm UTC](https://www.ruby-forum.com/t/i-do-not-configure-firebird/80948/5 "2007-01-03T20:22:25Z")

</div>

up
