CentOS 6.2 setup rails shell script
# yum install rubygems ruby-devel make gcc gcc-c++ sqlite-devel
# gem update
# gem install pkg-config
# gem install rails
# gem install coffee-script-source -v '1.3.3'
# gem install execjs -v '1.4.0'
# gem install coffee-script -v '2.2.0'
# gem install coffee-rails -v '3.2.2'
# gem install jquery-rails -v '2.0.2'
# gem install sass -v '3.1.19'
# gem install sass-rails -v '3.2.5'
# gem install sqlite3 -v '1.3.6'
# gem install uglifier -v '1.2.4'
# gem install libv8 -v '3.3.10.4'
# gem install therubyracer -v '0.10.1'
# rails --version
Rails 3.2.5
$ gem list
abstract (1.0.0)
actionmailer (3.2.5, 3.1.5, 3.0.13)
actionpack (3.2.5, 3.1.5, 3.0.13)
activemodel (3.2.5, 3.1.5, 3.0.13)
activerecord (3.2.5, 3.1.5, 3.0.13)
activeresource (3.2.5, 3.1.5, 3.0.13)
activesupport (3.2.5, 3.1.5, 3.1.0, 3.0.13)
arel (3.0.2, 2.2.3, 2.0.10)
builder (3.0.0, 2.1.2)
bundler (1.1.4)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
erubis (2.7.0, 2.6.6)
execjs (1.4.0)
hike (1.2.1)
i18n (0.6.0, 0.5.0)
journey (1.0.3)
jquery-rails (2.0.2)
json (1.7.3)
libv8 (3.3.10.4 x86-linux)
mail (2.4.4, 2.3.3, 2.2.19)
mime-types (1.18)
multi_json (1.3.6, 1.2.0)
pkg-config (1.1.3)
polyglot (0.3.3)
rack (1.4.1, 1.3.6, 1.2.5)
rack-cache (1.2)
rack-mount (0.8.3, 0.6.14)
rack-ssl (1.3.2)
rack-test (0.6.1, 0.5.7)
rails (3.2.5)
railties (3.2.5)
rake (0.9.2.2)
rdoc (3.12)
sass (3.1.19)
sass-rails (3.2.5)
sprockets (2.1.3, 2.0.4)
sqlite3 (1.3.6)
therubyracer (0.10.1)
thor (0.15.2, 0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
uglifier (1.2.4)
Gemfilesに以下を追加
----------------------------------------
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'json'
gem 'execjs'
gem 'therubyracer'
----------------------------------------
$ bundle install
$ rails server &
※コメント投稿者のブログIDはブログ作成者のみに通知されます