1.yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel

2.curl -L get.rvm.io | bash -s stable

3.就在本目录下vi .bashrc
添加source /etc/profile.d/rvm.sh

rubychina

先安装RVM

centos安装指定版本的ruby设为系统默认

/bin/bash –login

环境变量

/usr/local/rvm/gems/ruby-2.4.0/bin   fastlane```

文章来源于互联网,如有雷同请联系站长删除:centos安装rvm

发表评论