【问题标题】:Installing Python 3.3 on Cygwin在 Cygwin 上安装 Python 3.3
【发布时间】:2013-09-12 14:33:05
【问题描述】:

我在 Cygwin 上安装 Python 3.3 时遇到问题。我试过从源代码安装,但make 返回:

gcc -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes     -I. -IInclude -I./Include    -DPy_BUILD_CORE  -c ./Modules/signalmodule.c -o Modules/signalmodule.o
In file included from Include/Python.h:84:0,
                 from ./Modules/signalmodule.c:6:
./Modules/signalmodule.c: In function `fill_siginfo':
./Modules/signalmodule.c:745:60: error: `siginfo_t' has no member named `si_band'
     PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));
                                                            ^
Include/tupleobject.h:62:75: note: in definition of macro `PyTuple_SET_ITEM'
 #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)
                                                                           ^
./Modules/signalmodule.c:745:5: note: in expansion of macro `PyStructSequence_SET_ITEM'
     PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));
     ^
Makefile:1501: recipe for target `Modules/signalmodule.o' failed
make: *** [Modules/signalmodule.o] Error 1
Makefile:1501: recipe for target 'Modules/signalmodule.o' failed
make: ***[Modules/signalmodule.o] error 1

有什么想法吗?

【问题讨论】:

  • 可以显示前面的文字吗?它只是说某些命令失败了,但我们需要查看命令。
  • Cygwin 的 Python 包包括许多补丁;我建议使用 3.2 补丁集和 .cygport 作为开发 3.3 的基础。
  • @RamchandraApte,没问题,已编辑。
  • @Yaakov,我不确定您指的是什么或如何执行它。你能详细说明一下吗?
  • 使用 Cygwin 的动机是什么? Windows 的官方发行版非常棒。

标签: python python-3.x cygwin installation python-3.3


【解决方案1】:

在 Cygwin 上构建 Python 并非易事——我试过了。然而,其 bug 跟踪网站上的 Python 社区对于项目的规模和重要性异常友好和温和。如果您发现特定问题,请打开错误并关注讨论。通常,他们会接受小补丁来修复 Cygwin 构建问题。

This patch 将解决您关于si->si_band 的第一个问题。请参阅相关的 Python 问题#21085

This blog post(德语)太棒了。它将逐步指导您如何构建 Python3.4 并修复所有 Cygwin 问题。

祝你好运。你会需要它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-03-20
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-24
    • 2015-05-10
    相关资源
    最近更新 更多