How to upgrade to a newer version of jruby

谁说胖子不能爱 提交于 2019-12-11 06:25:24

问题


I used the jruby zip executable to install 1.6.2, but it looks like they have released 1.6.4. How should I migrate from 1.6.2 to 1.6.4, should I have to re-install or is there a different command.


回答1:


Mostly all you need to do is reinstall gems on the newly-unpacked JRuby (recommended), or migrate your existing gem installs by copying the lib/ruby/gems/* over to the new location. There's no automated update tool for JRuby itself right now.




回答2:


Unpack new Jruby

export JRUBY_HOME=/path/to/jruby
export PATH=$PATH:$JRUBY_HOME/bin

Maybe even push the above to .bashrc

Add a list of required Gems to your Gemfile.

To reinstall Gems if needed the best way to do it is as follows

Jruby -S gem install bundler 
Cd to /path/to/Gemfile
bundle install


来源:https://stackoverflow.com/questions/7360451/how-to-upgrade-to-a-newer-version-of-jruby

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!