Rails 2.2.2 con mysql


#1

Buenas.
no he podido poner a funcionar una pequeña aplicacion hecha en rails
2.2.2, me genera el problema de la gema de mysql. la cual no he podido
instalar o no lo he hecho como debe ser, el servidor me sube, pero
cuando ingreso a una pagina me genera el siguiente error:

c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_a
dapters/abstract_adapter.rb:38: [BUG] Segmentation fault
ruby 1.8.6 (2008-08-11) [i386-mswin32]

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.

he realizado los pasos que dice este hilo, pero no me funciona.

http://www.ruby-forum.com/topic/171640

por favor me ayudan?

saludos


#2

encontre la solucion en este hilo:
http://www.ruby-forum.com/topic/172179#new

y fue esta:

I noticed that you’ve already managed to resolve the issue, but I also
had a similar problem upgrading to 2.2.2 and found a quick work-
around. Here is my solution in case others need help (if this doesn’t
work, try Jason S.'s method).


If you are having problems with MySQL, getting errors like: �The
bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.� �C:/ruby/lib/
ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so�

Here is the solution: 1) First, gem install mysql. If this doesn�t
help continue� 2) Copy libmysql.dll from InstantRails (see below) to
your mysql directory (C:\mysql\bin). Restart your computer and it
should be working.

InstantRails libmysql.dll:
http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/

On Dec 5, 12:49�pm, Jason S. removed_email_address@domain.invalid

saludos