我用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的,所以还是用命令来装比较好