i'm workin with RoR just 3 days, and i have this trouble:
# rake gems
(in /opt/SDK/domains/domain1/autodeploy/jruby_deploy_test)
rake aborted!
Please install the jdbcmysql adapter: `gem install activerecord-
jdbcmysql-adapter` (no such file to load -- java)
maybe i should write PATH to java in my .bashrc? or smth. else? thx
i'm workin with RoR just 3 days, and i have this trouble:
# rake gems
(in /opt/SDK/domains/domain1/autodeploy/jruby_deploy_test)
rake aborted!
Please install the jdbcmysql adapter: `gem install activerecord-
jdbcmysql-adapter` (no such file to load -- java)
maybe i should write PATH to java in my .bashrc? or smth. else? thx
Did you follow the instructions in the error message?
luthien@luthien-laptop:~$ jruby -S rake gems
/opt/jruby-1.3.1/bin/jruby: line 337: /etc/java//bin/java: No such
file or directory
/opt/jruby-1.3.1/bin/jruby: line 337: exec: /etc/java//bin/java:
cannot execute: No such file or directory
luthien@luthien-laptop:~$ which ruby
/usr/local/bin/ruby
luthien@luthien-laptop:~$ which java
/usr/bin/java
luthien@luthien-laptop:~$ which gem
/usr/local/bin/gem
luthien@luthien-laptop:~$ which rake
/usr/local/bin/rake
luthien@luthien-laptop:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/
games:/opt/jruby-1.3.1/lib/ruby/gems/1.8/gems/glassfish-0.9.5-
universal-java/bin:/opt/jruby-1.3.1/bin/:/opt/jruby-1.3.1/lib/ruby/
gems/1.8/gems/
I would:
delete => /opt/jruby-1.3.1/lib/ruby/gems/1.8/gems/glassfish-0.9.5-universal-java/bin
put this first in your path => /opt/jruby-1.3.1/bin
delete => /opt/jruby-1.3.1/lib/ruby/gems/1.8/gems
And try again, using the "jruby -S" command format
my guess:
you are trying to call your cruby rake ("rake gems", see my post
above) in a jruby rails application which requires activerecord-
jdbcmysql-adapter which requires java (gem) which is only available
for jruby...