0

我正在尝试在运行 Snow Leopard 的 Mac 上安装 Python-Gammu。我使用 cmake 和 GCC 4 成功配置了 gammu,但在安装时出现此错误。它似乎表明 gcc 配置不正确,但我不确定对此能做些什么。

有没有其他人在mac上遇到过类似的GCC问题?

[ 90%] Built target smscgid
[ 91%] Building C object python/gammu/CMakeFiles/python_gammu.dir/src/gammu.o
In file included from /Library/Frameworks/Python.framework/Headers/Python.h:57,
                 from /Users/jgordon/Downloads/gammu-1.27.0/python/gammu/src/gammu.c:23:
/Library/Frameworks/Python.framework/Headers/pyport.h:761:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
make[3]: *** [python/gammu/CMakeFiles/python_gammu.dir/src/gammu.o] Error 1
make[2]: *** [python/gammu/CMakeFiles/python_gammu.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [install] Error 2

谢谢

4

1 回答 1

0

看起来 Python 在某种程度上被错误编译(或错误配置)。

如果你不需要它,你总是可以尝试在没有 Python 支持的情况下构建 Gammu 来解决这个问题。

于 2011-06-06T12:55:36.203 回答