pt-get build-dep mercurial
wget http://mercurial.selenic.com/release/mercurial-1.5.3.tar.gz
tar zxvf mercurial-1.5.3.tar.gz
cd mercurial-1.5.3
make && make install
sudo aptitude install python-dev python-virtualenv python-setuptools
或者
首先:
sudo aptitude install python-dev python-virtualenv python-setuptools
然后:
easy_install -U mercurial
最后: hg -v
如果出现以下信息,说明安装成功了
Mercurial Distributed SCM (version 1.5) Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.