当前位置: > CentOS > CentOS教程 >

Centos搭建Ruby环境

时间:2016-12-03 19:55来源:blog.csdn.net 作者:MoYummy

安装rvm和ruby

sudo -i
yum groupinstall -y development # or yum groupinstall -y 'development tools'
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L get.rvm.io | bash -s stable
rvm install 2.3.1 # rvm install [version]
usermod -aG rvm administrator # usermod -aG rvm [user]

确认group,切换ruby

id # uid=502(administrator) gid=502(administrator) groups=502(administrator),5669(rvm)
rvm use 2.3.1
ruby -v # ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
irb # 2.3.1 :001 > 
(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容