RVM/rbenv gem 安装 rvm

ekim_sgra · 2012年01月09日 · 最后由 azhao 回复于 2012年02月04日 · 10316 次阅读

我用 gem 安装了 rvm,但是系统里并没有 rvm 命令,难道只能用 shell 安装?

那么 rvm 自身的版本如何管理?

RVM 能用 Gem 来安装? 关于 RVM 看 WIKI http://ruby-china.org/wiki/rvm-guide

问题是我的确用 gem 安装成功了…… $ gem list *** LOCAL GEMS ***

…… rvm (1.9.2) ……

从 rubygems.org 中搜索了一下,还真有这个 gem. 没从 gem 安装过。 都是按 rvm 的官方网站的方法安装的。

安装完 rvm gem 时的提示:


This gem contains only the Ruby libraries for the RVM Ruby API.

In order to install RVM please use one of the methods listed in the documentation:

https://rvm.beginrescueend.com/rvm/install/

such as,

bash < <(curl -s -B https://rvm.beginrescueend.com/install/rvm)

followed by placing the sourcing line in your ~/.bash_profile or wherever may be appropriate for your setup (example, .zshenv, /etc/profile, ...):

# Load RVM into a shell session as a function [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

After completing setup please open a new shell to use RVM and be sure to run 'rvm notes' to gain a list of dependencies to install before installing the first Ruby. You can read more details about this process on the above mentioned install page as well as the basics page:

https://rvm.beginrescueend.com/rvm/basics/

Enjoy!

~Wayne


我也没有从 gem 安装过,你找一下 rvm 的命令在什么地方,然后把路径加入到 PATH 里就可以了,比如我的在~/.rvm/bin 下,你看看在没有,还是在 ruby 的 gem 目录下 说实话,rvm 是用来管理 ruby 和 gems 的,所以还是用命令来装比较好

需要 登录 后方可回复, 如果你还没有账号请 注册新账号