Created
October 29, 2014 10:59
-
-
Save samklr/5e0ba78c763c1cd21a8e to your computer and use it in GitHub Desktop.
This file contains 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
#! /bin/bash | |
sudo apt-get update | |
sudo apt-get install -yq git-core | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
# type rbenv ===> should print rbenv is a function | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash | |
sudo git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash | |
rbenv install --list | |
rbenv install 2.1.4 -k | |
rbenv global 2.1.4 | |
ruby -v | |
# Rails | |
sudo apt-get install -y sqlite3 libsqlite3-dev | |
#sudo nano /etc/apt/sources.list | |
sudo echo 'deb http://ftp.us.debian.org/debian/ wheezy-backports main' >> /etc/apt/sources.list | |
sudo echo 'deb-src http://ftp.us.debian.org/debian/ wheezy-backports main' >> /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get -t wheezy-backports install #nodejs | |
gem install rails | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment