【发布时间】:2015-04-21 03:48:42
【问题描述】:
无论我安装哪个 gcc 编译器,我似乎都无法在 cygwin 64 位上安装 pip。我已经尝试了所有在搜索 g++ 时出现的方法
有人知道我应该使用哪一个吗?或者如果我的做法完全错误?
在构建 pip 时出现如下错误:
gcc -fno-strict-aliasing -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/ports/python/python-2.7.8-1.x86_64/build=/usr/src/debug/python-2.7.8-1 -fdebug-prefix-map=/usr/src/ports/python/python-2.7.8-1.x86_64/src/Python-2.7.8=/usr/src/debug/python-2.7.8-1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/usr/include/freetype2 -I/tmp/pip-build-AceIfG/Pillow/libImaging -I/c/Users/guy/Envs/hippo_dev/include -I/usr/include -I/usr/include/python2.7 -c libImaging/ConvertYCbCr.c -o build/temp.cygwin-1.7.35-x86_64-2.7/libImaging/ConvertYCbCr.o
In file included from /c/Users/guy/Envs/hippo_dev/include/Python.h:58:0,
from outline.c:20:
/c/Users/guy/Envs/hippo_dev/include/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
^
In file included from /c/Users/guy/Envs/hippo_dev/include/Python.h:58:0,
from libImaging/ImPlatform.h:10,
from libImaging/Imaging.h:14,
from libImaging/ConvertYCbCr.c:15:
/c/Users/guy/Envs/hippo_dev/include/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
^
In file included from /c/Users/guy/Envs/hippo_dev/include/Python.h:58:0,
from libImaging/ImPlatform.h:10,
from libImaging/Imaging.h:14,
from libImaging/Bands.c:19:
/c/Users/guy/Envs/hippo_dev/include/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
^
In file included from /c/Users/guy/Envs/hippo_dev/include/Python.h:58:0,
from _imaging.c:76:
/c/Users/guy/Envs/hippo_dev/include/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
^
【问题讨论】:
-
作为参考,这在 cygwin 32 位上不会发生。它在那里安装得很好。
标签: python gcc cygwin pip pillow