我试着通过CGI Python脚本hgwebdir.cgi发布虽然XAMPP阿帕奇多个现有Mercurial库,地点...在本教程中https://www.mercurial-scm.org/wiki/HgWebDirStepByStepXAMPP水银安装 - > HgWebDir.cgi脚本错误
我从Apache错误日志收到以下错误,当我尝试用浏览器访问存储库路径:
脚本头过早结束:hgwebdir.cgi
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] Premature end of script headers: hgwebdir.cgi
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] File "C:/hostdir/xampp/cgi-bin/hg/hgwebdir.cgi", line 39\r
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] test = c:/hostdir/mercurial/test/\r
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] ^\r
[Tue Apr 20 16:00:50 2010] [error] [client 91.67.44.216] SyntaxError: invalid syntax\r
这是文件,其中的路径该脚本失败(如果我删除它,我得到它没有视觉元素显示一个空的HTML页面):
[paths]
test = c:/hostdir/mercurial/test/
/hg = c:/hostdir/mercurial/**
/= c:/hostdir/mercurial/
是否有人对我有线索?
我测试了它,而不是它。上述错误仍然显示在HTTP-Responses中,但错误日志现在给我一个“幻数代码错误”,让我想到mercurial和python的版本不匹配。但似乎没有哪个版本兼容的列表。在这里发布一个关于这个问题: http://stackoverflow.com/questions/2680802/installing-mercurial-on-windows-apache-xampp-tutorial 我真的觉得有人应该做一个完整的教程如何在Windows XAMPP上安装hgwebdir,我敢打赌有很多人在寻找这个解决方案。反正Thx! – Akku 2010-04-22 07:34:48