LoginSignup
9

More than 5 years have passed since last update.

(3)EC2にrvm+rubyインストール|EC2でgit+RonR+unicorn+nginx+capistrano+Jenkins

Last updated at Posted at 2013-03-02

その3|rvmとruby1.9.3のインストール

EC2-Userで行った。

これまでの目次

  1. EC2+gitリモートサーバ構築#1
  2. [(2)EC2+gitリモートサーバ構築#2](http://qiita.com/

1.rvmインストール

sudo bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

2.ruby1.9.3のインストール

list knownでどんなものがあるかを確認してみる。
今回は、1.9.3-p385をインストールしてみる。

sudo su -
rvm list known
rvm install ruby-1.9.3-p385

エラー|
There has been an error while running configure. Halting the installation.

エラーログを見ると
no acceptable C compiler found in $PATH

Cコンパイラが入っていないみたいなので、

sudo yum -y install gcc

再度rubyのインストール。

rvm install ruby-1.9.3-p385

再度エラー。今度はmakeコマンドが入っていないと。

sudo yum -y install make

インストールコンプリート!
Install of ruby-1.9.3-p385 - #complete

ruby -v
rvm use 1.9.3-p385

ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-linux]

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9