Table of Contents



Install Mercurial Mac, Leopard.

You can download the Mac binary package, but sometimes you need to install from source to get the latest version.

After you download the source and extract it, type (from the extracted directory):

$ make all
$ sudo make install

Note: you will have to install Asciidoc too.


You may get an error

ImportError: No module named mercurial

You need to have set

export PYTHONPATH=/Library/Python/2.5/site-packages:${PYTHONPATH}

You may still get the error though. You need to type

$ locate mercurial

and you may find that /usr/local/lib/python2.5/site-packages exists. This is standard on Linux, but not Mac. To fix this, point the Linux standard path to the Mac path.

$ cd /usr/local/lib
$ sudo ln -s /Library/Python/2.5 python2.5

64-bit Ubuntu#

Install Mercurial 64-bit linux.

If you get errors installing Mercurial, try

$ CC=gcc-4.1 CXX=g++-4.1 easy_install mercurial

or you can download the source, extract it, and type

$ CC=gcc-4.1 CXX=g++-4.1 python install

HG - Python.Mac - Python.Linux