windows下安装Mercurial的hg

本文介绍在Windows 7 x64系统上安装Mercurial (hg) 的详细步骤,以便解决使用Go语言安装第三方包时遇到的问题。通过访问官方下载页面并选择合适的二进制安装文件进行安装,确保安装完成后将安装路径添加到系统PATH变量中。

【背景】

折腾:

【已解决】go语言用go get去安装第三方包出错:exec: "hg": executable file not found in %PATH%

期间,需要在windows中用到hg,才能安装go的包。

所以现在去折腾在当前的x64的win7下安装hg。

【折腾过程】

1.到官网:

http://mercurial.selenic.com/wiki/WindowsInstall

看到提示,去:

http://mercurial.selenic.com/wiki/Download

下载对应的windows的二进制安装文件:

http://mercurial.selenic.com/release/windows/Mercurial-2.7-x64.exe

得到8.49MB的Mercurial-2.7-x64.exe

2.双击安装:

welcome to the mercurial setup wizard

mercurial setup license agreement

mercurial select destination location

mercurial select start menu folder

mecurial ready to install

mercurial installing is extracting files

mecurial information page

completing the mercurial setup wizard

注意到其中,最后安装完毕,是选了把安装路径加上到PATH中的。

所以无需手动再去加入。

 

3.然后再去打开cmd,确认hg安装正常:

hg install ok mercurial disctributed scm

的确可以了。

 

【总结】

这下,window的cmd中,就可以运行hg了。



原文地址:http://www.crifan.com/windows_install_mercurial_hg/


评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值