AWS設定 ec2:Tokyo:t1.micro AMI: amzn-ami-pv-2013.03.1.x86_64-ebs (ami-39b23d38)

Railsインストール 参照:http://tsuchikazu.net/linux_ruby_on_rails_install/

$ sudo yum install git

$ sudo yum -y install make 
$ sudo yum -y install gcc 
$ sudo yum -y install gcc-c++ 
$ sudo yum -y install zlib-devel 
$ sudo yum -y install openssl-devel 
$ sudo yum -y install httpd-devel 
$ sudo yum -y install curl 
$ sudo yum -y install curl-devel 
$ sudo yum -y install readline-devel 
$ git clone git://github.com/sstephenson/rbenv.git .rbenv

$ echo ‘export PATH=”$HOME/.rbenv/bin:$PATH”‘ >> ~/.bash_profile
$ echo ‘eval “$(rbenv init -)”‘ >> ~/.bash_profile
$ source .bash_profile 
$ rbenv (確認)
$ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

$ rbenv install (確認)
$ rbenv install -l (確認)

$ rbenv install 2.0.0-p247
$ rbenv install 1.9.3-p448
$ rbenv versions (確認)
$ rbenv global 2.0.0-p247(切替) 
$ rbenv versions (確認)
$ ruby -v (確認)
$ gem search -r rails

$ gem install rails –no-ri –no-rdoc
$ source ~/.bash_profile
$ sudo yum install sqlite-devel

$ gem install sqlite3
$ gem install spring
$ gem install therubyracer
$ rails -v

$ rails new sample1
$ cd sample1
$ vi Gemfile
(追記)
gem ‘execjs’
gem ‘therubyracer’
$ rails server