Monday, February 20, 2012

Installing PostgreSQL on Lion with Brew

I had some issues with Python when trying to upgrade PostgreSQL install on OSX Lion.

Basically the configure script is saying that my system version of Python doesn't have 64-bit support.

Warning: Detected a framework Python that does not have 64-bit support in:

To fix this issue, you may need to either delete the version of Python shown above, or move it out of the way before brewing PostgreSQL.

I don't like those solutions very much, and I don't need Python support in Postgres anyway. To get around the problem and build Postgres without Python support at all, just...

brew upgrade --no-python postgresql

Muskets at dawn!

Wednesday, January 25, 2012

Bundler invalid byte sequence

Running "bundle install" today gave me...

ArgumentError: invalid byte sequence in US-ASCII

Normally I use but I recently switched to iTerm as I'm finding it is quite a bit faster, so this little issue caught me out. iTerm doesn't enable UTF-8 by default.

Adding this to ~/.bash_profile will set it no matter what terminal app you're using.

export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8