Skip to content

Commit 82e4e91

Browse files
committed
Merge pull request #25 from WardBenjamin/patch-1
Update deps, nodejs, versions
2 parents 862e436 + 0cb2abe commit 82e4e91

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

rails-install-ubuntu.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,40 @@
22

33
set -e
44

5+
echo "Adding PPA for up-to-date Node.js runtime. Give your password when asked."
6+
sudo add-apt-repository ppa:chris-lea/node.js
7+
58
echo "Updates packages. Asks for your password."
69
sudo apt-get update -y
710

811
echo "Installs packages. Give your password when asked."
9-
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev nodejs -y
12+
sudo apt-get install build-essential git-core curl openssl libssl-dev libcurl4-openssl-dev zlib1g zlib1g-dev libreadline libreadline-dev libreadline6 libreadline6-dev libyaml-dev libsqlite3-dev libsqlite3-0 sqlite3 libxml2-dev libxslt1-dev python-software-properties libffi-dev libgdm-dev libncurses5-dev automake autoconf libtool bison postgresql postgresql-contrib libpq-dev pgadmin3 libc6-dev nodejs -y
1013

1114
echo "Installs ImageMagick for image processing"
1215
sudo apt-get install imagemagick --fix-missing -y
1316

1417
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
1518
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
16-
curl -sSL https://get.rvm.io | bash -s -- --version 1.26.11
19+
curl -sSL https://get.rvm.io | bash -s stable
1720
source ~/.rvm/scripts/rvm
1821

1922
echo "Installs Ruby"
20-
rvm install 2.2.1
21-
rvm use 2.2.1 --default
23+
rvm install 2.2.2
24+
rvm use 2.2.2 --default
2225

23-
gem install bundler --no-rdoc --no-ri
24-
gem install rails --no-rdoc --no-ri
26+
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
27+
gem install bundler
28+
gem install rails
2529

2630
echo -e "\n- - - - - -\n"
2731
echo -e "Now we are going to print some information to check that everything is done:\n"
2832

29-
# brew in ubuntu?
30-
# echo -n "Should be brew 0.8 or higher: brew "
31-
# brew -v
3233

3334
echo -n "Should be sqlite 3.8.1 or higher: sqlite "
3435
sqlite3 --version
35-
echo -n "Should be rvm 1.26.11: "
36+
echo -n "Should be rvm 1.26.11 or higher: "
3637
rvm --version | sed '/^.*$/N;s/\n//g' | cut -c 1-10
37-
echo -n "Should be ruby 2.2.1: "
38+
echo -n "Should be ruby 2.2.2: "
3839
ruby -v | cut -d " " -f 2
3940
echo -n "Should be Rails 4.2.1 or higher: "
4041
rails -v

0 commit comments

Comments
 (0)