【发布时间】:2012-02-13 12:38:06
【问题描述】:
因为 Mercurial 安装程序无法在旧的 Windows 2000 系统上运行,所以我尝试从源代码构建它。它抱怨 C 编译器无法识别选项 -mno-cygwin。我的 gcc 版本是 4.6.1。而MinGw只有两个月大。
按照以下步骤操作:https://www.mercurial-scm.org/wiki/BuildingOnWindows
F:\mercurial-2.0.2>python setup.py build
running build
running build_mo
warning: hgbuildmo: could not find msgfmt executable, no translations will be built
running build_py
package init file 'mercurial\__init__.py' not found (or not a regular file)
package init file 'mercurial\__init__.py' not found (or not a regular file)
running build_ext
building 'mercurial.base85' extension
f:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -If:\python27\include
-If:\python27\PC -c mercurial/base85.c -o build\temp.win32-2.7\Release\mercurial\base85.o
**cc1.exe: error: unrecognized command line option '-mno-cygwin'**
error: command 'gcc' failed with exit status 1
【问题讨论】:
-
尝试安装新版本的 MinGW(如果在 Win2K 上仍然有效)。