您好,登錄后才能下訂單哦!
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 perl
2. 安裝RVM
\curl -sSL https://get.rvm.io | bash -s stable
3. 添加rvm環(huán)境變量
source /etc/profile.d/rvm.sh
4. 安裝openssl
rvm pkg install openssl
如果出現(xiàn)RPM-GPG-KEY-EPEL-6: import read failed(2)
epel-release-6-8.noarch.rpm failed: no such file or directory
增加yum源
rpm -ivh https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
5. 安裝ruby
rvm install ruby
默認(rèn)安裝最新版,目前是2.0.0-p247
把gem鏡像換到淘寶
$ gem sources --remove https://rubygems.org/
1. 設(shè)置源
$ gem sources --remove https://rubygems.org/
$ gem sources -a http://ruby.taobao.org/
$ gem sources -l
6. 安裝Net SSH Gem(可用于登陸服務(wù)器以及上傳文件)
gem install net-ssh
gem install net-scp
$ gem sources -a http://ruby.taobao.org/
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。