[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

rake engine_migrate ENGINE=login

AlMays

9/19/2006 7:41:00 AM

Hello.

While using the subject command I get the following error:

** Invoke engine_migrate (first_time)
** Invoke db:migrate:engines (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate:engines
Migrating engine 'login_engine'
** Invoke db_schema_dump (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
rake aborted!
undefined method `each' for #<Mysql:0x27308d8>

What can I do? I am a RoR Dummy.

1 Answer

AlMays

9/19/2006 8:19:00 AM

0

Ok.

I solved it.
Had to recompile gem mysql

Didn't come up that easy.

First I had to go to
/opt/local/lib/ruby/gems/1.8/gems/mysql-2.7
and run
sudo ruby extconf.rb
--with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config
manually from there.

That made a proper Makefile

And only after that
sudo gem install mysql
started to work.

Mysql5