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.
本文提供了Mercurial版本控制系统从源码安装的详细步骤。包括使用aptitude安装依赖包、下载Mercurial源码并编译安装,以及通过easy_install进行安装的方法。验证安装是否成功可以通过运行命令`hg -v`查看版本信息。
293

被折叠的 条评论
为什么被折叠?



