2012-07-09 71 views
0

所以在Windows XP和Mercurial上有一個Apache服務器。當我嘗試連接到mercuraial拋瀏覽器,我有這樣的錯誤:Win XP上的Mercurial錯誤

[Mon Jul 09 15:15:42 2012] [error] [client 141.206.207.61] Premature end of script headers: hgweb.cgi 
[Mon Jul 09 15:15:42 2012] [error] [client 141.206.207.61] Traceback (most recent call last):\r 
[Mon Jul 09 15:15:42 2012] [error] [client 141.206.207.61] File "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/hgweb.cgi", line 16, in <module>\r 
[Mon Jul 09 15:15:42 2012] [error] [client 141.206.207.61]  from mercurial import demandimport; demandimport.enable()\r 
[Mon Jul 09 15:15:42 2012] [error] [client 141.206.207.61] ImportError: No module named mercurial\r 
[Mon Jul 09 15:15:42 2012] [error] [client 141.206.207.61] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico 

正如我真的在這個新的東西我不知道我應該做的,或閱讀。所以你能幫助我嗎?


[UPDATE 07 \ 11 \ 12]

我添加連結水銀\ lib中。現在,它顯示了另一個錯誤:

[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] Premature end of script headers: hgweb.cgi 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] Traceback (most recent call last):\r 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] File "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/hgweb.cgi", line 23, in <module>\r 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61]  wsgicgi.launch(application)\r 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] File "mercurial\\hgweb\\wsgicgi.pyc", line 76, in launch\r 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] File "mercurial\\hgweb\\hgwebdir_mod.pyc", line 147, in __call__\r 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] File "mercurial\\hgweb\\hgwebdir_mod.pyc", line 177, in run_wsgi\r 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] File "mercurial\\hgweb\\hgwebdir_mod.pyc", line 371, in templater\r 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] File "mercurial\\templater.pyc", line 392, in stylemap\r 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] RuntimeError: No hgweb templates found in []\r 
[Wed Jul 11 11:15:54 2012] [error] [client 141.206.207.61] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico 
    enter code here 

回答

0

這就是告訴你沒有安裝Mercurial的 - 至少這不是在你的Python實例正在使用PYTHONPATH。它看起來像你沒有正確添加水銀庫文件到你的Python路徑的指示,在這裏:

https://www.mercurial-scm.org/wiki/HgWebDirStepByStep/#Mercurial_Lib_Files

+0

不'噸的工作。我按照它的意思去做,但沒有任何反應,但有相同的錯誤信息。 – 2012-07-09 12:59:16

+0

然後你做得不對。請將您要添加的行粘貼到wsgi/cgi以及該目錄輸出的目錄中。 – 2012-07-10 01:02:36

+0

我發現我做錯了。非常感謝。 – 2012-07-11 07:22:04