ติดตั้ง ruby on rails และ mysql บน amazon linux(EC2)


sudo yum update ruby
sudo yum install rubygems
sudo gem update --system
sudo yum install make
sudo yum install gcc
sudo gem install rails --no-ri --no-rdoc

MySql and MySql2 Gem

สำหรับ rails 3.1

sudo yum install mysql mysql-devel ruby-devel

sudo gem install mysql2 -- \
--with-mysql-include=/usr/bin/mysql \
--with-mysql-lib=/usr/lib64/mysql

สำหรับ rails 3.0

sudo gem install --version  '~>0.2.7' mysql2 -- \
--with-mysql-include=/usr/bin/mysql \
--with-mysql-lib=/usr/lib64/mysql

Nokogiri xml parser

sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel
sudo gem install nokogiri
Advertisements

4 thoughts on “ติดตั้ง ruby on rails และ mysql บน amazon linux(EC2)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s