Ubuntu 上的 RVM 问题 [英] RVM on Ubuntu Troubles
问题描述
我在尝试在 Ubuntu 9.10 上安装 RVM 时遇到了很多问题.这是我尝试过的步骤:
I've run into a lot of issues whilst attempting to install RVM on Ubuntu 9.10. Here's the steps I've tried doing:
- 安装 ruby(通过 ruby 站点,无包管理器)
- 下载 rvm
- 安装 rvm(编辑到 .bashrc)
- 使用 rvm 安装 ruby 版本 &宝石
是否有任何我似乎遗漏的关键步骤?
Is there any crucial step that I seem to be missing?
推荐答案
确保选择了一个已安装的 ruby(--default
部分告诉 rvm 你希望这个 ruby 是你的默认 ruby 版本).类似的东西:
Be sure to have selected an installed ruby (the --default
portion tells rvm you want this ruby to be your default ruby version). Something like:
rvm --default use 1.9.2
此命令还会告诉您当前选择了哪个 ruby:
Also this command will tell you which ruby is currently selected:
rvm list
希望你会看到类似的内容:
And hopefully you'll see something like:
rvm rubies
ruby-1.9.2-p0 [ x86_64 ]
=> ruby-1.8.7-p302 [ x86_64 ]
此时,您将能够安装 gems,并希望拥有一个成功的 rvm 安装和工作环境.
At this point, you'll be able to install gems and hopefully have a successful rvm install and working environment.
过去我遇到过一些问题,我没有选择 rvm ruby,但仍在使用我的发行版的 ruby 和 gems,很容易混淆.确保你的 ruby 和 gem 命令在你的 ~/.rvm 文件夹中运行,其中包含以下命令:
I've had issues in the past where I didn't have an rvm ruby selected and was still working with my distribution's ruby and gems and got mixed up easily. Make sure you're ruby and gem commands are working out of your ~/.rvm folder whith the following commands:
which ruby
which gem
祝你好运!
这篇关于Ubuntu 上的 RVM 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!