RVM:如何使用来自不同红宝石的宝石? [英] RVM: How to use gems from a different ruby?

查看:46
本文介绍了RVM:如何使用来自不同红宝石的宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 RVM 来管理我的红宝石和宝石.

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

当我第一次安装 RVM 时,我安装的 Ruby 版本是 1.9.2-p0.我最近安装了 Ruby 1.9.2-p136,它在 RVM 中创建了一个新的 Ruby.

When I first installed RVM, the Ruby version that I installed was 1.9.2-p0. I recently installed Ruby 1.9.2-p136, which created a new Ruby in the RVM.

我的问题是我想使用最新版本的 Ruby 但我安装的所有 gems 都安装在 1.9.2-p0 目录下,因为 RVM 使 gems 在 Ruby 之间完全分开,并且我希望能够在我的新版本 p-136 中使用这些 gem,而无需重新安装它们.

My problem is I want to use the latest version of Ruby but all of the gems I installed were installed under the 1.9.2-p0 directory, because RVM keeps gems completely separate between Rubies, and I want to be able to use those gems with my new version, p-136 without having to reinstall them all.

有没有办法让我的 p-0 Ruby 中的 gems 与我的 p-136 Ruby 一起工作?

Is there a way I can get my gems from my p-0 Ruby to work with my p-136 Ruby?

推荐答案

您需要查看 gemset 并导出您当前的宝石.

You need to check out gemsets and export your current gems.

rvm gemset export

阅读 gemset 文档了解更多信息.

Read the gemset docs for more information.

这篇关于RVM:如何使用来自不同红宝石的宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆