Skip to content

Instantly share code, notes, and snippets.

@Nosfheratu
Last active August 25, 2020 10:03
Show Gist options
  • Save Nosfheratu/5cfe91e5feaea2b8634e to your computer and use it in GitHub Desktop.
Save Nosfheratu/5cfe91e5feaea2b8634e to your computer and use it in GitHub Desktop.
simple environment setup for ruby/rails development
sudo apt-get update
sudo apt-get install curl git-core software-properties-common
sudo apt-get install build-essential
sudo apt-get install imagemagick libmagickwand-dev
# PostgreSQL
sudo apt-get install postgresql-9.3 libpq-dev
# SQLite3
sudo apt-get install sqlite3 libsqlite3-dev
# Node.js
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
# Ruby with rbenv
curl -L https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
vim .bashrc # add rbenv to the top
. .bashrc
rbenv bootstrap-ubuntu-12-04
rbenv install 2.0.0-pXXX
rbenv global 2.0.0-pXXX
gem install bundler --no-ri --no-rdoc
gem install rails --no-ri --no-rdoc
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment