本文介绍了如何在Windows上使用Mercurial的hgwebdir?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些是我采取的步骤:

  • 安装apache 2.2.x
  • 安装TortoiseHg 0.7
  • 将hgwebdir.cgi,hgweb.config复制到cgi-bin
  • 根据需要编辑hgweb.config
  • 解压缩$ blah \ TortoiseHg \ library.zip以解压缩$ blah \ TortoiseHg \ library
  • sys.path.append("$ blah \ TortoiseHg \ library")在hgwebdir.cgi
  • 将$ blah \ TortoiseHg \ templates移至$ blah \ TortoiseHg \ library \ templates
  • install apache 2.2.x
  • install TortoiseHg 0.7
  • copy hgwebdir.cgi, hgweb.config to cgi-bin
  • edit hgweb.config as appropriate
  • unzip $blah\TortoiseHg\library.zip to unzip $blah\TortoiseHg\library
  • sys.path.append("$blah\TortoiseHg\library") at the beginning ofhgwebdir.cgi
  • move $blah\TortoiseHg\templates to $blah\TortoiseHg\library\templates

(我忘了补充说明所有这些步骤都已列出此处.)

( I forgot to add that all these steps are laid out here.)

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

When I run http://localhost/cgi-bin/hgwebdir.cgi/ I can see my repository. If I try browse that repository, I'm told "DLL load failed: The specified module could not be found.". The last line of the walkback says "c:\program files\apache group\apache\cgi-bin\mercurial\osutil.pyc in __load()".

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

I've read about people having problems with pywintypes25.dll; this lives in "c:\program files\tortoisehg" and is already in my PATH.

找不到哪个DLL?

推荐答案

您错过了汞的库

有3种方法可以摆脱这种情况

there are 3 ways to get out of this

  1. 最近的Mercurial版本附带了纯Python实现,您可以在mercurial/pure中找到
  2. 自己编译(我不确定步骤是否正确,在任何unix上都行得通)
  3. 网站
    请注意,我还没看过它们的构建方式
    (您需要基于distutils的安装,而不是基于py2exe的安装)
  1. recent mercurial versions ship with pure python implementations you can find in mercurial/pure
  2. compile it yourself (im not exactly sure on the steps, on any unix this just works)
  3. grab win32 installer from the website
    note that i didn't yet take a look at how those are build
    (you need a distutils based install, not a py2exe based one)

这篇关于如何在Windows上使用Mercurial的hgwebdir?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 02:47