Skip to content

Instantly share code, notes, and snippets.

@skull-squadron
Created April 26, 2011 02:31
Show Gist options
  • Save skull-squadron/941686 to your computer and use it in GitHub Desktop.
Save skull-squadron/941686 to your computer and use it in GitHub Desktop.
Build pg gem with macports, rvm and postgresql 9.0.3 running locally
sudo port install postgresql90 postgresql90-server
env ARCHFLAGS="-arch x86_64" \
gem install pg -- \
--with-pg-include=/usr/local/include/postgresql90/ \
--with-pg-lib=/usr/local/lib/postgresql90/ \
--with-pg-config=/opt/local/lib/postgresql90/bin/pg_config
@skull-squadron
Copy link
Author

Successful output:

Building native extensions.  This could take a while...
Successfully installed pg-0.11.0
1 gem installed
Installing ri documentation for pg-0.11.0...
Installing RDoc documentation for pg-0.11.0...

@skull-squadron
Copy link
Author

Untested with JRuby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment