在ubuntu上安装ruby环境

root@ubutnu:~# apt-get install curl

安装ruby管理工具rvm

root@ubutnu:~# \curl -sSL https://get.rvm.io | bash -s stable

Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
Creating group 'rvm'


Installing RVM to /usr/local/rvm/
Installation of RVM in /usr/local/rvm/ is almost complete:


  * First you need to add all users that will be using rvm to 'rvm' group,
    and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.


  * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
    in all your open shell windows, in rare cases you need to reopen all shell windows.


# Administrator,
#
#   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

执行下下面这句(由于没有配置环境变量,每次启动主机估计都要执行这句)

root@ubutnu:~# source /etc/profile.d/rvm.sh

安装ruby

root@ubutnu:~# rvm install ruby
Searching for binary rubies, this might take some time.

然后就可使用了



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值