【问题标题】:Can't install pythonbrew 2.6无法安装 pythonbrew 2.6
【发布时间】:2013-02-15 10:26:23
【问题描述】:

我正在尝试使用 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

【问题讨论】:

    标签: python linux pythonbrew


    【解决方案1】:

    找到解决此here 的方法。基本上svnversion 的行为在某些时候发生了变化,解决方法是在构建python 2.6.2 时将一个名为svnversion 的脚本放在你的路径中

    #!/bin/sh
    echo exported
    

    【讨论】:

      【解决方案2】:

      虽然我不知道导致此错误的原因,但可以改用 Python 2.6.8 来解决此问题:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2016-03-03
        • 2014-02-01
        • 1970-01-01
        • 1970-01-01
        • 2010-11-30
        • 2018-05-29
        • 1970-01-01
        相关资源
        最近更新 更多