I would like to install Python 2.5 on Cygwin. (EDIT: I need Python 2.5 in particular, and I am aware that Cygwin setup offers 2.7 and 3.2. I installed those using the GUI and they appear to be fine.)
Python 2.5 not included with the latest installation of Cygwin 1.7, so I've been trying to install from source. However, I'm getting the following error:
$ make gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Modules/config.o Modules/config.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -DPYTHONPATH='":plat-cygwin:lib-tk"' \ -DPREFIX='"/usr/local"' \ -DEXEC_PREFIX='"/usr/local"' \ -DVERSION='"2.5"' \ -DVPATH='""' \ -o Modules/getpath.o ./Modules/getpath.c gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -DSVNVERSION=\"`LANG=C svnversion .`\" -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c gcc: directory": No such file or directory <command-line>:0:12: warning: missing terminating " character ./Modules/getbuildinfo.c: In function ‘_Py_svnversion’: ./Modules/getbuildinfo.c:44:2: error: missing terminating " character ./Modules/getbuildinfo.c:44:2: warning: ‘return’ with no value, in function returning non-void Makefile:474: recipe for target `Modules/getbuildinfo.o' failed make: *** [Modules/getbuildinfo.o] Error 1
I am having trouble understanding what the error is in the Makefile. Here are the relevant lines (467-474):
Modules/getbuildinfo.o: $(PARSER_OBJS) \ $(OBJECT_OBJS) \ $(PYTHON_OBJS) \ $(MODULE_OBJS) \ $(SIGNAL_OBJS) \ $(MODOBJS) \ $(srcdir)/Modules/getbuildinfo.c $(CC) -c $(PY_CFLAGS) -DSVNVERSION=\"`LANG=C $(SVNVERSION)`\" -o $@ $(srcdir)/Modules/getbuildinfo.c
I would appreciate it if someone could explain the error and how to fix it.