Sunday, September 6, 2009

Abort: couldn't find mercurial libraries

I've been setting up my fresh Snow Leopard installation today.

I followed the guide from Hivelogic: Compiling Mercurial on Snow Leopard. The installation completed without issue and 'which hg' showed everything was in place.

However, when I tried to issue an 'hg' command the following error popped up:

"abort: couldn't find mercurial libraries"

Google came to the rescue, and revealed these tweets:


For Snow Leopard, I just needed:

export PYTHONPATH=/usr/local/lib/python2.6/site-packages

If you hit the same, hope this works for you.

3 comments:

  1. Thanks! That fixed my problem.

    ReplyDelete
  2. Thanks! Solved my problem as well!

    ReplyDelete
  3. And mine, on OS X 10.4:

    export PYTHONPATH=/usr/local/lib/python2.3/site-packages/

    (added to ~/.bashrc)

    ReplyDelete