安装RVM(ruby版本控制)

2 篇文章 0 订阅
2 篇文章 0 订阅
curl -L get.rvm.io | bash -s stable

curl: (6) Couldn't resolve host 'get.rvm.io'

在浏览器上访问get.rvm.io,实际跳转到如下地址

https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer

所以,修改命令:

curl -L https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable

安装成功之后,会有如下的提示

 curl -L https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20511  100 20511    0     0   3181      0  0:00:06  0:00:06 --:--:-- 37428
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz

Installing RVM to /home/test/.rvm/
    Adding rvm PATH line to /home/test/.profile /home/test/.bashrc /home/test/.zshrc.
    Adding rvm loading line to /home/test/.bash_profile /home/test/.zlogin.
Installation of RVM in /home/teset/.rvm/ is almost complete:

  * To start using RVM you need to run `source /home/test/.rvm/scripts/rvm`
    in all your open shell windows, in rare cases you need to reopen all shell windows.

# test,
#
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io

  * WARNING: You have '~/.profile' file, you might want to load it,
    to do that add the following line to '/home/test/.bash_profile':

      source ~/.profile

/home/test/.bashrc:10:export PATH=/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/test/bin:${M2_HOME}/bin

  * WARNING: Above files contains `PATH=` with no `$PATH` inside, this can break RVM,
    for details check https://github.com/wayneeseguin/rvm/issues/1351#issuecomment-10939525
    to avoid this warning append #PATH.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值