在Multi-Arch Linux上使用Python API

时间:2013-09-24 17:05:12

标签: python 64-bit debian x86-64

我有一个使用Python API的代码,我将在Debian Wheezy 64位操作系统上编译,并在编译时遇到以下错误:

/usr/include/python2.7/pyport.h:873:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

我已经完成了搜索但无法找到我应该如何使用32位软件包。我还在我的Wheezy上安装了ia32-libsg++-multilib,但仍有这个愚蠢的错误。

我还打开了pyport.h并找到了错误行:

#if LONG_BIT != 8 * SIZEOF_LONG
/* 04-Oct-2000 LONG_BIT is apparently (mis)defined as 64 on some recent
 * 32-bit platforms using gcc.  We try to catch that here at compile-time
 * rather than waiting for integer multiplication to trigger bogus
 * overflows.
 */
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#endif

在其他主题中,我在多拱系统上得到的应该是这样的文件夹:     的/ usr /包括/

提前致谢

0 个答案:

没有答案