Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mostlyobvious/3815175 to your computer and use it in GitHub Desktop.
Save mostlyobvious/3815175 to your computer and use it in GitHub Desktop.
Steps to get up'n'running with Rails on OS X and Ubuntu

Steps to set up a Rails development environment on OS X:

  • install Apple Command Line Tools
  • install homebrew[1]: ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
  • install rvm: curl -L https://get.rvm.io | bash -s stable
  • source $HOME/.rvm/scripts/rvm
  • rvm install --disable-binary 1.9.3
  • rvm use --default 1.9.3
  • gem i rails

[1] Use brew command to install whatever database engine you need, ie brew install sqlite

Steps to set up a Rails development environment on Ubuntu:

  • install development dependencies with apt-get:
sudo apt-get update
sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison pkg-config
  • install rvm: curl -L https://get.rvm.io | bash -s stable
  • source $HOME/.rvm/scripts/rvm
  • rvm install --disable-binary 1.9.3
  • rvm use --default 1.9.3
  • gem i rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment