XAMPP水银在Windows上安装的Apache - > HgWebDir.cgi脚本错误 [英] XAMPP Mercurial installation on Windows Apache --> HgWebDir.cgi Script Error

查看:237
本文介绍了XAMPP水银在Windows上安装的Apache - > HgWebDir.cgi脚本错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着通过CGI Python脚本hgwebdir.cgi发布虽然XAMPP阿帕奇多个现有的Mercurial库,地点...在本教程中的 http://mercurial.selenic.com/wiki/HgWebDirStepByStep

I try to publish multiple existing mercurial repository-locations though XAMPP Apache via CGI Python script hgwebdir.cgi ... as in this tutorial http://mercurial.selenic.com/wiki/HgWebDirStepByStep

我从Apache的错误日志下面的错误,当我尝试用浏览器访问存储库路径:

I get the following error from the apache error logs, when I try to access the repository path with a browser:

$ P脚本头$ pmature结束:hgwebdir.cgi

Premature end of script headers: 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页面)的文件的路径:

This is the path of the file where the script fails (and if I remove it, I get an empty HTML page shown with no visual elements in it):

[paths]
test = c:/hostdir/mercurial/test/
/hg = c:/hostdir/mercurial/**
/ = c:/hostdir/mercurial/

任何人是否有一个线索给我吗?

Does anybody have a clue for me?

推荐答案

好吧,毕竟这只是一大堆的目录位置的问题,一个大版本的问题(使用Python 2.6的Mercurial 1.5.1需要)。得到它现在的工作。如果我碰巧写了一个完整的Windows指导,我会添加注释。

Okay, after all it was just a whole lot of directory-location-problems and a big version-problem (needed to use Python 2.6 with Mercurial 1.5.1). Got it working now. If I happen to write a full windows-guide, I'll add a comment.

这篇关于XAMPP水银在Windows上安装的Apache - > HgWebDir.cgi脚本错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆