在ubuntu上安装ruby环境

来源:互联网 发布:mac 休眠后断网 编辑:程序博客网 时间:2024/05/21 04:18

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.

然后就可使用了



0 0
原创粉丝点击