Skip to content

Instantly share code, notes, and snippets.

@camilosampedro
Last active September 1, 2015 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camilosampedro/e8bee239041fd8c75c35 to your computer and use it in GitHub Desktop.
Save camilosampedro/e8bee239041fd8c75c35 to your computer and use it in GitHub Desktop.
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
# Versión 2.2.1
rbenv install -v 2.2.1
rbenv global 2.2.1
# Sin documentación
echo "gem: --no-document" > ~/.gemrc
gem install bundler
# Instalación RAILS
gem install rails
rbenv rehash
# Instalación Javascript
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
else
echo "You are not running a Debian-based distribution of Linux"
echo "Exiting..."
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment