如何让Mercurial的hgwebdir在Windows上运行?

Fra*_*rar 9 mercurial tortoisehg

这些是我采取的步骤:

  • 安装apache 2.2.x
  • 安装TortoiseHg 0.7
  • 将hgwebdir.cgi,hgweb.config复制到cgi-bin
  • 根据需要编辑hgweb.config
  • 解压$ blah\TortoiseHg\library.zip解压缩$ blah\TortoiseHg\library
  • hgwebdir.cgi开头的sys.path.append("$ blah\TortoiseHg\library")
  • 将$ blah\TortoiseHg\templates移动到$ blah\TortoiseHg\library\templates

(编辑:我忘了添加所有这些步骤都在这里列出.)

当我运行http://localhost/cgi-bin/hgwebdir.cgi/时,我可以看到我的存储库.如果我尝试浏览该存储库,我会被告知"DLL加载失败:无法找到指定的模块.".回溯的最后一行在__load()中显示"c:\ program files\apache group\apache\cgi-bin\mercurial\osutil.pyc".

我读过有关pywintypes25.dll问题的人; 它位于"c:\ program files\tortoisehg"中,并且已经存在于我的PATH中.

无法找到什么DLL?

Ron*_*nny 7

你错过了mercurial的c libs

有三种方法可以摆脱这种局面

  1. 最近的mercurial版本附带了纯粹的python实现,你可以在mercurial/pure中找到
  2. 自己编译(我不完全确定在步骤上,任何unix这只是工作)
  3. 网站上获取win32安装程序
    请注意我还没有看看它们是如何构建的
    (你需要基于distutils的安装,而不是基于py2exe的安装)