186d696474a52bb40dd78409482df973

gem安装rvm

ekim_sgra RVM 节点 中发起
最后由 azhao回复 , 263次阅读

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

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

截止 , 共收到 6 条回复
Normal_6c5369e0e1aa53683c00434d76019800
huacnlee 1楼, 于回复

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

186d696474a52bb40dd78409482df973
ekim_sgra 2楼, 于回复

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

……
rvm (1.9.2)
……

2aecf26411e58c87df4625b7ff1ae5d8
skandhas 3楼, 于回复

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

2aecf26411e58c87df4625b7ff1ae5d8
skandhas 4楼, 于回复

安装完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

186d696474a52bb40dd78409482df973
ekim_sgra 5楼, 于回复

@skandhas THX

096fbde2c2ad4278847dfe5b51cc5276
azhao 6楼, 于回复

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

需要 登录 后回复方可回复, 如果你还没有账号你可以 注册 一个帐号。