Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After deleting Macports, I've had some strange behaviour. When I try to run PostgreSQL via CLI, I get:

pawel:~ pawel$ psql
dyld: Library not loaded: /opt/local/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/bin/psql
  Reason: image not found
Trace/BPT trap

This is strange because I've installed Postgresql through Homebrew and running brew list confirms that it's there. How would I get psql to work again?

Additionally, trying to install the pg gem fails due to an file not found: /opt/local/lib/libssl.1.0.0.dylib error. I need to make Postgres not look in the /opt/local/ directory for this file.

share|improve this question
up vote 8 down vote accepted

Since I'm answering my own question, I was just going to delete it but others may find it useful in future.

The solution is to brew uninstall postgresql then install it again. The reason it wasn't working was that the Macports install messed with some of the configs.

share|improve this answer
This answer helped..!! Thanks :) – Sankalp Singha Jul 28 '13 at 10:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .