Ruby gems gone after after jruby install

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-03-12T05:27:55Z Indexed on 2010/03/12 5:37 UTC
Read the original article Hit count: 315

Filed under:
|
|

Today I installed jruby by downloading it, extracting it to /home/james/jruby-1.4.0

and adding the following line to .bashrc

export JRUBY_HOME=/home/james/jruby-1.4.0
export PATH=$JRUBY_HOME/bin:$PATH

And then I installed some jruby gems via jruby -S gem install ...

Jruby works fine, but this seemed to have cause two problems:

1) When I try to run a ruby (not jruby) on rails migration, I see:

Missing the Rails  gem. Please `gem install -v= rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

2) when I do gem list --local, I only see the gems that I've installed for jruby.

Launching web applications via ruby script/server succeeds without any warnings.

Please help.

© Stack Overflow or respective owner

Related posts about rubygems

Related posts about jruby