RE: Rake not working in JRuby 1.1.2

Thanks for the hint on exposing the stacktrace to a file. The problem is
I
didn’t install active-record-jdbc-adapter gem.

Best regards,

Hi Joshua,

On Fri, May 30, 2008 at 4:30 PM, Partogi, Joshua
[email protected] wrote:

Thanks for the hint on exposing the stacktrace to a file. The problem is I
didn’t install active-record-jdbc-adapter gem.

Ah, cool! Typically, you don’t really need to install that gem
directly. If you work with mysql, the following command will install
everything you need, with dependences (among those deps will be that
gem):

jruby -S gem install rake activerecord-jdbcmysql-adapter rails

I’m a bit surprised by the long exception you’re seeing, since for
me, if the jdbc adapter and jdbcmysql adapter gems are not installed,
I immediately getting the friendly reminder:

jruby -S rake db:migrate
(in D:/work/jruby-dev/hello)
rake aborted!
Please install the jdbcmysql adapter: gem install activerecord-jdbcmysql-adapter (no such file to load – ac
tive_record/connection_adapters/jdbcmysql_adapter)

Maybe something else in your setup is not quite right?
Do you have JRUBY_HOME defined by any chance? If yes,
please undefine it, it’s not needed anymore and often causes
problems (when it points to the wrong version of JRUBY).

Thanks,
–Vladimir


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email