Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从Ubuntu上的源文件安装Mercurial_Ubuntu_Mercurial_Installation - Fatal编程技术网

从Ubuntu上的源文件安装Mercurial

从Ubuntu上的源文件安装Mercurial,ubuntu,mercurial,installation,Ubuntu,Mercurial,Installation,我是Ubuntu和Mercurial的新手,所以我想看看是否有人有从源代码安装Mercurial的经验,因为它没有特定于Ubuntu的发行版 从源代码安装Mercurial的最佳方式是什么?有什么想法吗?:) 谢谢, 亚历克斯是的。它叫。你可以做: sudo apt-get install mercurial 或者使用图形 如果需要更高版本,可以使用。如果需要,您当然可以从源代码构建它。最简单的方法是使用apt-get-source,然后构建包。如果您想从上游源代码构建它,这也是可能的。在Ub

我是Ubuntu和Mercurial的新手,所以我想看看是否有人有从源代码安装Mercurial的经验,因为它没有特定于Ubuntu的发行版

从源代码安装Mercurial的最佳方式是什么?有什么想法吗?:)

谢谢, 亚历克斯是的。它叫。你可以做:

sudo apt-get install mercurial
或者使用图形


如果需要更高版本,可以使用。如果需要,您当然可以从源代码构建它。最简单的方法是使用
apt-get-source
,然后构建包。如果您想从上游源代码构建它,这也是可能的。

在Ubuntu/Debian上:
sudo-apt-get-install-mercurial
您可以使用
pip
从源代码安装mercurial(如果您还没有安装pip的话,
apt-get-install-pip
):

这通常会将其安装到
/usr/local/bin/hg
,而不是默认的
/usr/bin/hg

如果要安装特定版本,可以始终将
pip
指向其中一个,例如

最后,如果您真的想从源代码安装,请下载其中一个源代码tarball,解压缩并运行

cd mercurial-1.8.1
python setup.py install

未来告诉我们您使用的是哪个版本的Ubuntu。我认为命令是
sudo-apt-get-install-python-pip
而不是
sudo-apt-get-install-pip
,这是使用pip安装源文件的命令:
pip-install/path/to/source.tar.gz
pip-installhttp://example.com/source.tar.gz
与以上将正确安装mercurial二进制文件,但这并不是实际问题的最佳答案。然而,按照这些说明:不在Ubuntu上安装最新版本,替代PPA也已过期。不在Ubuntu上安装最新版本。
cd mercurial-1.8.1
python setup.py install