我正在尝试使用pythonbrew安装python 2.6,但在运行命令时收到一些错误
pythonbrew install --configure="--enable-unicode=ucs4" 2.6我在Archlinux下运行,并在那台机器上使用了很长时间的python2.7。但是我需要在我的机器上同时安装2.6和2.7,这样pythonbrew安装就可以了。
下面是错误:
Parser/pgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c
Parser/pgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude I./Include -fPIC -DPy_BUILD_CORE -o Python/symtable.o Python/symtable.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -fPIC -DPy_BUILD_CORE -o Python/compile.o Python/compile.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -fPIC -DPy_BUILD_CORE -o Python/graminit.o Python/graminit.c
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -fPIC -DPy_BUILD_CORE -DSVNVERSION=\"`LC_ALL=C svnversion .`\" -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
gcc: error: directory": No such file or directory
make: *** [Modules/getbuildinfo.o] Error 1发布于 2013-06-05 20:08:55
找到了此here的解决方案。基本上,svnversion的行为在某一时刻发生了变化,解决办法是在构建Python2.6.2时将名为svnversion的脚本放入路径中
#!/bin/sh
echo exported发布于 2013-03-21 16:55:54
虽然我不知道是什么导致了这个错误,但可以通过使用Python 2.6.8来解决这个问题:
pythonbrew install --configure="--enable-unicode=ucs4" 2.6.8https://stackoverflow.com/questions/14892662
复制相似问题