Windows 7 64 位上的 MercurialEclipse:不安装“Windows Binaries for Mercurial”
在工作中设置我的机器(WXP 32位),市场上的 Eclipse Helios 中的 MercurialEclipse 工作正常。
在家里我做了同样的程序,但是是在 W7Pro 64 位上。 MercurialEclipse 本身已安装,但在 Workspace 重新启动时出错,找不到 hg
命令;确实,没有安装任何东西。
比较两个 Eclipse 安装中的插件配置,我发现 W7Pro 64 位缺少 Windows Binaries for Mercurial 插件。该架构依赖吗?有办法解决这个问题吗?
更新:
我通过多次安装进行了验证:MercurialEclipse 需要外部二进制文件才能正常工作。我很困惑,因为通过第一次安装的测试,我还“以某种方式”安装了Windows Binaries for Mercurial。在我的第二台机器上我没有安装,也没有安装 MercurialHg。
默认情况下,MercurialEclipse simple 在其配置中需要 hg
,这隐式假定二进制文件必须在路径中的某个位置可用。 Windows Binaries for Mercurial 的工作方式有点不同,它会在 eclipse/
文件夹中的某个位置安装 hg.exe
的私有副本,并设置绝对值MercurialEclipse 配置中的路径。两种方法的工作原理相同(忽略可能因版本差异而产生的差异),因为任一安装都将使用主目录中的 mercurial.ini
。
set up my machine at work (WXP 32bit) and MercurialEclipse in Eclipse Helios from market place worked without problems.
At home I did the same procedure but on W7Pro 64bit. MercurialEclipse itself got installed, but it errored out upon Workspace restart that the hg
command was not found; and it's true, there was none installed.
Comparing the plugin configurations within both Eclipse installations I discovered that W7Pro 64bit misses the Windows Binaries for Mercurial plugin. Is that architecture dependent? Is there a way to fix this?
Update:
I verified with multiple installations: MercurialEclipse requires an external binary to properly work. I was confused because through testing on my first installation I also installed the Windows Binaries for Mercurial "somehow". On my second machine I didn't and I also hadn't installed MercurialHg.
By default MercurialEclipse simple requires hg
in its configuration which implicitly assumes the binary must be available in the path somewhere. The Windows Binaries for Mercurial works a bit different, it installs a private copy of hg.exe
inside the eclipse/
folder somewhere and sets the absolute path in the MercurialEclipse configuration. Both ways work equally (ignoring differences which could be arise due version differences), since either installation would use your mercurial.ini
from your home directory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够从此处获取 hg (Mercurial) 二进制文件的副本。
You should be able to pick up a copy of the hg (Mercurial) binaries from here.
你说得完全正确; MercurialEclipse 将控制权委托给 hg CLI。最近,这种情况在 2.0 中发生了变化,它使用 JavaHg (这是一个基于 Java 的 Java 接口) Mercurial 命令服务器)。
我从未使用过 Mercurial 的 Windows 二进制文件。我的 Windows 设置包括 TortoiseHg(根据您支持的平台选择最新的 32 位或 64 位版本), Eclipse(根据您支持的平台选择最新的 32 位或 64 位版本)和 MercurialEclipse (我的版本是 1.9.4.201203270141;我还没有尝试 2.0.0,它是 几个小时前发布)
You are absolutely right; MercurialEclipse delegates control to the hg CLI. This has recently changed with 2.0, which uses JavaHg (which is a Java interface over the Mercurial command server).
I have never used the Windows Binaries for Mercurial. My Windows setup comprises TortoiseHg (choose the latest 32-bit or 64-bit release based on your supported platform), Eclipse (choose the latest 32-bit or 64-bit release based on your supported platform) and MercurialEclipse (I have version 1.9.4.201203270141; I am yet to try 2.0.0, which was released a few hours ago)