无法安装pythonbrew 2.6
我正在尝试用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
2 个回答
0
虽然我不知道这个错误是怎么产生的,但可以通过使用Python 2.6.8来解决这个问题:
pythonbrew install --configure="--enable-unicode=ucs4" 2.6.8
3
我找到了这个问题的解决办法,具体可以在这里查看。简单来说,svnversion
这个命令的行为在某个时候发生了变化。解决这个问题的方法是在你构建Python 2.6.2的时候,把一个叫做svnversion
的脚本放到你的路径里。
#!/bin/sh
echo exported