This makes installation of all versions of jruby impossible(and pretty hard to debug:) on dists where this flag is set by default in /etc/gemrc ex. ArchLinux.
what was your selected ruby at this time ?
by default /etc should not be read by rubies compiled by rvm, there was a bug in rubygems that lead to reading /etc - but it was fixed in 1.8.20
you could try to reproduce after:
rvm rubygems latest-1.8
@DeltaKilo you need to use ruby before installing rubygems, you can not use rvm to install rubygems in system, rvm has no knowledge of the system ruby configuration
ok, i'll test in couple minutes
Yes. It is reproducible.
As you can see, jruby installator tries to install basic gems in ~/.gem
As of mine, we should make test before installing jruby on environment that this issue hurts and display warning if so. It have taken a day for me to find and comment out this flag in gemrc.
@DeltaKilo this is bug of rubygems included in jruby, I have already talked to #jruby IRC and we agreed that it should be quite safe to include a patch to fix it - i will create this patch shortly
patch for jruby's rubygems etc problem, fix #848
the error occurs only for 1.8 compatibility mode, use the command bellow to fix it:
rvm reinstall jruby-head --1.8 --patch rubygems_etc
Ha. I just have tried to make the same file in home dir .gemrc for those who can accidentally set it user-wide and i got using given oneliner above.
Anyway. Let the Google index and help those.
I need to add few warnings for the bad settings in gemrc like:
scheduled for 1.11.2
ready -> #855