安装curl
sudo yum install curl
然后在在终端中输入命令
curl -L get.rvm.io | bash -s stable有可能会失败
按照提示使用使用命令
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
继续在终端中
curl -L get.rvm.io | bash -s stable
查找配置文件
find / -name rvm.sh并使配置文件生效
source /etc/profile.d/rvm.sh
下载RVM依赖
rvm requirements
继续
rvmsudo 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
到这就应该搞定了,若是若是还不行继续参考How To Install Ruby on Rails on CentOS 6 with RVM
本文详细介绍如何在CentOS上安装curl并利用RVM管理Ruby环境。从安装curl开始,逐步介绍如何导入RVM的公钥,安装RVM及其依赖项,确保Ruby环境配置正确无误。
6070

被折叠的 条评论
为什么被折叠?



