Strange Symphonies Don’t worry, be happy

11Jan/081

Installing do_postgres on MacPorts

Ensure that pg_config is in your $PATH.

[block:important]This expects you are using PostgreSQL 8.2. Alter the directories as required.[/block]

To test if pg_config is included, execute which pg_config [image16x16:terminal]:

Expected Result:
[block:terminal]/opt/local/lib/postgresql82/bin/pg_config[/block]

Including pg_config into your $PATH

If you don't get anything, then it isn't in your path. Append the following to your ~/.profile file:
[block:terminal]export PATH=$PATH:/opt/local/lib/postgresql82/bin[/block]

Now it will be included in all new terminal sessions.

Installing do_postgres

Now feel free to install the do_postgres gem.
[block:terminal]sudo gem install do_postgres -- \
--with-pgsql-include-dir=/opt/local/include/postgresql82/ \
--with-pgsql-lib-dir=/opt/local/lib/postgresql82/[/block]

Related posts

Tags

Comments (1) Trackbacks (0)
  1. If it was me , I’d use JRuby. It’s fast these days, and works the same on all platforms.


Leave a comment


No trackbacks yet.