Caution: New to Jruby and Rails !!!
So I am trying this simple tutorial to get Jruby on Rails going against
mySQL servever
http://blog.emptyway.com/2008/04/08/120-seconds-guide-to-jruby-on-rails|/http://blog.emptyway.com/2008/04/08/120-seconds-guide-to-jruby-on-rails|/
I am getting struck here
C:\personal\mylab\jruby\myapp>jruby -S rake db:create:all
(in C:/personal/mylab/jruby/myapp)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install
the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load – mysql
Any ideas ?
I downloaded JRuby today - so I guess I have the latest
JRuby 1.5 to be exact
jruby -S gem install mysql
On Fri, May 21, 2010 at 3:16 PM, Rajiv N. [email protected]
wrote:
the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load – mysql
Any ideas ?
I downloaded JRuby today - so I guess I have the latest
JRuby 1.5 to be exact
–
-Rajiv
www.rajivnarula.com
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Kyle, that won’t solve the problem, the mysql gem needs native
extensions
that jruby can handle.
Rajiv, that tutorial is quite out of date. I recommend you to follow
this
guide that Nick wrote to configure the latest versions of activerecord:
http://blog.nicksieger.com/articles/2009/10/12/fresh-0-9-2-activerecord-jdbc-adapter-release
Basically you have to remove the word “jdbc” from the adapter name, so:
adapter: jdbcmysql
will be:
adapter: mysql
and execute the jdbc generator:
jruby script/generate jdbc
Thanks guys !
I am out of the woods for now- I think
My discovery of the day ? The application I created using JRuby runs
with
Ruby as well!
Thats so cool !!!
(I know it may look like a big deal to you all :))