Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jcf
Created October 22, 2009 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jcf/215955 to your computer and use it in GitHub Desktop.
Save jcf/215955 to your computer and use it in GitHub Desktop.
Install pg gem under 1.9.1
# get rid of the pg if you have it already; you might want to do this for ruby-pg as well
gem uninstall pg
# change to some convenient working directory
cd ~/src
svn checkout http://ruby-pg.rubyforge.org/svn
cd svn/ruby-pg/trunk/ext
# download and install the patch
curl -O http://gist.github.com/raw/215956/54166b63f9cce030232b09397934315f004fb649/pg-patch.txt
patch < pg-patch.txt
# set up an important environment variable
export ARCHFLAGS='-arch i386'
ruby extconf.rb
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment