2012-04-25 49 views
0

我在Windows XP(所有x86)上使用Active Python 2.5.1,Mercurial 1.8.1和TortoiseHg 1.1.0 我試圖在reviewboard中配置一個mercurial repo。對於它 需要善變的Python模塊 所以,當我嘗試安裝善變通過的easy_install我得到 以下錯誤試圖通過easy_install安裝mercurial

C:\>easy_install mercurial==1.8.1 
Searching for mercurial==1.8.1 
Reading http://pypi.python.org/simple/mercurial/ 
Reading http://mercurial.selenic.com/ 
Reading http://www.selenic.com/mercurial 
Reading http://mercurial.selenic.com/release/ 
Best match: mercurial 1.8.1 
Downloading http://mercurial.selenic.com/release/mercurial-1.8.1.tar.gz 
Processing mercurial-1.8.1.tar.gz 
Running mercurial-1.8.1\setup.py -q bdist_egg --dist-dir c: 
\docume~1\username\locals~1\temp\easy_install-7l0ykf 
\mercurial-1.8.1\egg-dist-tmp-egcnt6 

cc1.exe: error: unrecognized command line option '-mno-cygwin' 
error: Setup script exited with error: command 'gcc' failed with exit 
status 1 

我已經通過MinGW的

安裝GCC

感謝舒ZOMG陳,1.8 .1是一項要求,所以不能真正改變這一點。第二個鏈接確實有幫助,但現在還有另一個問題。從distutils \ cygwinccompiler.py中刪除-mno-cygwin後,我運行easy_install mercurial == 1.8.1。跟蹤是folows:

C:\>easy_install mercurial==1.8.1 
Searching for mercurial==1.8.1 
Reading http://pypi.python.org/simple/mercurial/ 
Reading http://mercurial.selenic.com/ 
Reading http://www.selenic.com/mercurial 
Reading http://mercurial.selenic.com/release/ 
Best match: mercurial 1.8.1 
Downloading http://mercurial.selenic.com/release/mercurial-1.8.1.tar.gz 
Processing mercurial-1.8.1.tar.gz 
Running mercurial-1.8.1\setup.py -q bdist_egg --dist-dir c:\docume~1\username\locals~1\temp\easy_install-05el_6\mercurial-1.8.1\egg-dist-tmp-zsfye0 

gcc: error: CreateProcess: No such file or directory 
error: Setup script exited with error: command 'gcc' failed with exit status 1 

C:\> 

請幫助 問候

+0

我剛剛搜索術語'gcc:error:CreateProcess:No such file or directory' and I found:http://stackoverflow.com/questions/3848357/gcc-createprocess-no-such-file-or-目錄 – 2012-04-26 18:31:13

回答

0

也有Windows的exe和msi安裝程序在https://www.mercurial-scm.org/downloads

在我看來,TortoiseXXX改變了包裝背後的心理圖景。我很難向我的同事解釋如何在使用TortoiseCVS時正確使用CVS。

偏題:爲了您自己的其他目的,也請嘗試使用Git(http://git-scm.com/)這個想法非常相似。我猜Git會取得統計上的勝利。 msysgit(Windows)很不錯,功能與原來的Linux相媲美,包含的Git Gui和gitk可能有相當奇怪的外觀(Tcl/Tk),但它們對於基本的Git操作非常有用。

相關問題