From 0cb2abe6288f53c439a80e66ec69aa128171a2a3 Mon Sep 17 00:00:00 2001 From: Benjamin Ward Date: Sun, 31 May 2015 11:12:32 -0400 Subject: [PATCH] Update deps, nodejs, versions --- rails-install-ubuntu.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/rails-install-ubuntu.sh b/rails-install-ubuntu.sh index cbb66ef..0b1f0e4 100644 --- a/rails-install-ubuntu.sh +++ b/rails-install-ubuntu.sh @@ -2,39 +2,40 @@ set -e +echo "Adding PPA for up-to-date Node.js runtime. Give your password when asked." +sudo add-apt-repository ppa:chris-lea/node.js + echo "Updates packages. Asks for your password." sudo apt-get update -y echo "Installs packages. Give your password when asked." -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 +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 echo "Installs ImageMagick for image processing" sudo apt-get install imagemagick --fix-missing -y echo "Installs RVM (Ruby Version Manager) for handling Ruby installation" gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 -curl -sSL https://get.rvm.io | bash -s -- --version 1.26.11 +curl -sSL https://get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm echo "Installs Ruby" -rvm install 2.2.1 -rvm use 2.2.1 --default +rvm install 2.2.2 +rvm use 2.2.2 --default -gem install bundler --no-rdoc --no-ri -gem install rails --no-rdoc --no-ri +echo "gem: --no-ri --no-rdoc" > ~/.gemrc +gem install bundler +gem install rails echo -e "\n- - - - - -\n" echo -e "Now we are going to print some information to check that everything is done:\n" -# brew in ubuntu? -# echo -n "Should be brew 0.8 or higher: brew " -# brew -v echo -n "Should be sqlite 3.8.1 or higher: sqlite " sqlite3 --version -echo -n "Should be rvm 1.26.11: " +echo -n "Should be rvm 1.26.11 or higher: " rvm --version | sed '/^.*$/N;s/\n//g' | cut -c 1-10 -echo -n "Should be ruby 2.2.1: " +echo -n "Should be ruby 2.2.2: " ruby -v | cut -d " " -f 2 echo -n "Should be Rails 4.2.1 or higher: " rails -v