2013-02-15 48 views
3

我試圖安裝Python 2.6 pythonbrew,但我得到了一些錯誤運行命令無法安裝pythonbrew 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 

回答

0

雖然我不知道是什麼原因導致這個錯誤,可以通過使用Python 2.6.8,而不是來解決此問題:

pythonbrew install --configure="--enable-unicode=ucs4" 2.6.8 
3

找到解決方案爲here。基本上的svnversion在某些時候和工作都是圍繞改變的行爲是把一個名爲svnversion腳本在你的路徑,同時建立蟒蛇2.6.2

#!/bin/sh 
echo exported 
+0

這解決了這個問題對我來說也是如此。 – phihag 2013-12-09 01:47:54