Steps to install ec2 amazon linux with rails
Steps
sudo -s
An old ruby version is required, currently it is intalled by default (v1.8.7), if not, install it using "yum install ruby" .
Steps
sudo -s
yum install -y git gcc-c++ autoconf automake make patch
yum install -y bzip2 readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel iconv-devel
curl -L get.rvm.io | bash -s stable
gpasswd -a ec2-user rvm
source /etc/profile.d/rvm.sh
yum install -y bison
run the follwing to see that things are OK:
rvm requirements
## for problems with rvm and kernel header file:
vi /etc/yum.conf
change the line to comment :
#exclude=kernel*
yum install kernel-headers
======
Install ruby
Install ruby
rvm install 1.9.3-head
## create a new gemset and set the ruby and gemset to be default by rvm
rvm gemset create mygemset
rvm use 1.9.3-head@mygemset
--default
# ruby is ready with rvm , now install rails (without documentation)
gem install rails -v 3.2.2 --no-rdoc --no-ri
next steps:
- install database
- install passanger with apache
No comments:
Post a Comment