Last active
October 22, 2015 15:13
-
-
Save trondhindenes/fd4825b93cc4b294ecd4 to your computer and use it in GitHub Desktop.
Configure Ruby + Rails
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 git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev -y | |
| sudo apt-get install libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev -y | |
| sudo apt-get install libcurl4-openssl-dev python-software-properties libffi-dev -y | |
| sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev -y | |
| #Note that this key may changes | |
| gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
| #if this command fails, you should get a message containing the correct gpg command to run instead of the above | |
| curl -L https://get.rvm.io | bash -s stable | |
| source ~/.rvm/scripts/rvm | |
| rvm install 2.2.3 | |
| rvm use 2.2.3 --default | |
| ruby -v | |
| echo "gem: --no-ri --no-rdoc" > ~/.gemrc | |
| gem install bundler | |
| sudo add-apt-repository ppa:chris-lea/node.js -y | |
| sudo apt-get update | |
| sudo apt-get install nodejs -y | |
| #Install the required tools for rails | |
| sudo apt-get install libgmp-dev -y | |
| #Install rails. Could take a while! | |
| gem install rails -v 4.2.4 | |
| #Finally, run this to check that everything is installed: | |
| rails -v | |
| mkdir rails_apps | |
| cd rails_apps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment