RVM: How to use gems from a different ruby?

前端 未结 4 1363
故里飘歌
故里飘歌 2021-02-04 10:56

I have been using RVM to manage my Rubies and gems.

When I first installed RVM, the Ruby version that I installed was 1.9.2-p0. I recently installed Ruby <

4条回答
  •  没有蜡笔的小新
    2021-02-04 11:29

    You can use copy in rvm

    $ rvm gemset copy 1.9.2-p0 1.9.2-p136
    

    See more about the rvm copy command

    This is the fastest way to get your gems moved over and it wont reinstall everything, just copy them over. But once you've got that squared away I'd do as the others are suggesting and start using gemsets. It's a nice way to group the gems you use in your projects.

提交回复
热议问题