I am trying to create a simple Rails 2.2.2 app using jruby 1.1.5. The
application is using mysql DB. The gems installed are:
$jruby -S gem list
*** LOCAL GEMS ***
During migration I get this error from Rails that 2.2.2 no longer ships
$jruby -S rake db:create
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
he mysql gem and try again: gem install mysql.
no such file to load – mysql
When I try to do: jruby -S gem install mysql, it can’t install as jruby
not support native extension. So the only option I have is to
install activerecord-jdbcmysql-adapter or someone got any better way to
past these errors?
$jruby -S gem install mysql
JRuby limited openssl loaded. gem install jruby-openssl for full
Building native extensions. This could take a while…
C:/tools/jruby/lib/ruby/1.8/mkmf.rb:7: JRuby does not support native
Check wiki.jruby.org for alternatives. (NotImplementedError)
from C:/tools/jruby/lib/ruby/1.8/mkmf.rb:1:in `require’
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.