Can't install pythonbrew 2.6

I am trying to install python 2.6 using pythonbrew but I got some error when running the command

pythonbrew install --configure="--enable-unicode=ucs4" 2.6

      

I am working under Archlinux and have been using python2.7 on this machine for a long time. But I need to have both 2.6 and 2.7 on my machine, so installing pythonbrew seemed fine to me.

Here is the error:

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

      

+3


source to share


2 answers


Found a solution to this here . Basically the behavior svnversion

changed at some point and the work around is to put a named script in your path svnversion

when building python 2.6.2



#!/bin/sh
echo exported

      

+3


source


While I don't know what is causing this error, it is possible to work around this by using Python 2.6.8 instead:



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

      

0


source







All Articles