Error running gem install rails on jruby 1.6.0 and 1.5.6

When I try to execute “gem install rails” on a new installed jruby I got
the following error: `arraycopy’: java.lang.ArrayIndexOutOfBoundsException

I have tried to run the command on different machines with ubuntu 10.10
and centos 5.5. always with the same result.

just ran into that myself yesterday with rspec-1.3.2 but was able to
fix the version on 1.3.1 which worked. and there is another thread
earlier today in that mailing list. the related bug is:

maybe you are able to use jruby-head until a jruby-1.6.2 gets released.


If you’re unable to use jruby-head another temporary workaround is to
‘gem install arel-2.0.9’ before installing rails 3.

sorry, ‘gem install arel -v=2.0.9’

Thanks a lot, fixed the problem :slight_smile: