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.
然后就可使用了