-
Notifications
You must be signed in to change notification settings - Fork 1
/
ubuntu-14-04
executable file
·37 lines (27 loc) · 1.32 KB
/
ubuntu-14-04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# BASH SCRIPT TO SETUP RAILS DEVELOPMENT ENVIRONMENT IN UBUNTU 13.04,14.04
echo "====================================================="
echo "Installing dependencies"
echo "====================================================="
sudo apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libmysqlclient-dev libxml2-dev libxslt1-dev libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
echo "====================================================="
echo "Installing Mysql"
echo "====================================================="
sudo apt-get -y install mysql-server mysql-client
echo "====================================================="
echo "Installing RVM"
echo "====================================================="
sudo apt-get -y install gnupg2
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
curl -L https://get.rvm.io | bash -s stable
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
source ~/.bashrc
echo "====================================================="
echo "Installing Ruby"
echo "====================================================="
rvm install 2.1.2
rvm use 2.1.2 --default
echo "====================================================="
echo "Installing Rails"
echo "====================================================="
gem install rails