Last active
August 1, 2016 11:08
-
-
Save ukadev/32724381172e7dae147903bd18b91c30 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y git-core curl zlib1g zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev libsqlite3-0 sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev apache2 | |
sudo apt-get --ignore-missing install -y git-core curl openssl libssl-dev libcurl4-openssl-dev libreadline6 libreadline6-dev libgdm-dev libncurses5-dev automake autoconf libtool bison postgresql postgresql-contrib libpq-dev pgadmin3 | |
gpg --keyserver hkp://keys.gnupg.net --recv-k 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm install 2.3.1 | |
rvm use 2.3.1 --default | |
echo "gem: --no-ri --no-rdoc" > ~/.gemrc | |
gem install bundler | |
gem install rails | |
echo -e "\n- - - - - -\n" | |
echo -e "Checking versions:\n" | |
echo -n "Should be sqlite 3.8.1 or higher: sqlite "; | |
sqlite3 --version; | |
echo -n "Should be rvm 1.27.0 or higher: "; | |
rvm --version | sed '/^.*$/N;s/\n//g' | cut -c 1-11; | |
echo -n "Should be ruby 2.3.1: "; | |
ruby -v | cut -d " " -f 2; | |
echo -n "Should be Rails 5.0.0 or higher: "; | |
rails -v; | |
echo -e "\n- - - - - -\n"; | |
echo "If the versions match, everything is installed correctly. If the versions | |
don't match or errors are shown, something went wrong with the automated process | |
and we will help you do the installation the manual way at the event. | |
Congrats! | |
Make sure that all works well by running the application generator command: | |
$ rails new project | |
If you encounter the message: | |
The program 'rails' is currently not installed. | |
It is just a hiccup with the shell, solutions: | |
$ source ~/.rvm/scripts/rvm | |
Allow login shell, example http://rvm.io/integration/gnome-terminal/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment