Skip to content

Instantly share code, notes, and snippets.

@shripadk
Forked from jeffersongirao/gist:542289
Created August 22, 2010 09:25
Show Gist options
  • Save shripadk/543572 to your computer and use it in GitHub Desktop.
Save shripadk/543572 to your computer and use it in GitHub Desktop.
Rails 3 with PostgreSQL working (pg gem)
This example shows how to setup an environment running Rails 3 beta 3 under ree-1.8.7-head with a 'rails3' gem set.
# pg gem does not seem to work with 1.9.2-head. Hence, reverting back to ree.
∴ rvm update --head
# ((Open a new shell)) or do 'rvm reload'
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install ree-1.8.7-head
# Switch to ree-1.8.7-head and gemset rails3, create if it doesn't exist.
∴ rvm --create use ree-1.8.7-head@rails3
∴ gem install rails --pre
# Check to see we now have Rails 3.0.0 rc3
∴ rails --version
Rails 3.0.0.rc3
∴ gem install pg -- --with-pg-dir=YOUR_PG_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment