【问题标题】:Getting LONG_BIT error when installing gammu in Mac OS X using GCC 4使用 GCC 4 在 Mac OS X 中安装 gammu 时出现 LONG_BIT 错误
【发布时间】:2010-06-24 17:04:41
【问题描述】:

我正在尝试在运行 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

谢谢

【问题讨论】:

    标签: python macos gcc gammu


    【解决方案1】:

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

    如果不需要,您可以随时尝试在没有 Python 支持的情况下构建 Gammu 来解决此问题。

    【讨论】:

      猜你喜欢
      • 2011-07-10
      • 2011-08-22
      • 1970-01-01
      • 2016-06-12
      • 1970-01-01
      • 2015-12-10
      • 2011-05-16
      • 2015-12-06
      • 1970-01-01
      相关资源
      最近更新 更多