1
大家好我新来django和python试图安装bcrypt,这是建立一块django代码即时通讯试图在我的系统上运行,即时通讯运行问题如下'gcc-4.2'在安装bcrypt时失败,退出状态为1
使用python 2.7和1.4版的Django
running build
running build_py
running build_ext
building 'bcrypt._bcrypt' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bcrypt/bcrypt_python.c -o build/temp.macosx-10.6-intel-2.7/bcrypt/bcrypt_python.o
In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
from bcrypt/bcrypt_python.c:17:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/unicodeobject.h:4,
from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:85,
from bcrypt/bcrypt_python.c:17:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/2s/n9wb5x4534nfs1cbrlph32v00000gp/T//ccb7N3qq.out
error: command 'gcc-4.2' failed with exit status 1
----------------------------------------
Command /Users/Kinnovate/Downloads/dwaiter-django-bcrypt-913d86b/my_new_env/bin/python -c "import setuptools;__file__='/Users/Kinnovate/Downloads/dwaiter-django-bcrypt-913d86b/my_new_env/build/py-bcrypt/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/2s/n9wb5x4534nfs1cbrlph32v00000gp/T/pip-yONWs2-record/install-record.txt --install-headers /Users/Kinnovate/Downloads/dwaiter-django-bcrypt-913d86b/my_new_env/bin/../include/site/python2.7 failed with error code 1
如何解决该即时通讯?
你在哪个平台上? (Windows,OSX,Linux;其版本?)你如何安装'bcrypt'?请尝试您尝试的具体步骤。日志输出很好,但我们需要知道在它之前的命令或命令序列。 – 2012-02-16 09:30:27
看看这个http://stackoverflow.com/questions/6316583/lipo-cant-figure-out-the-architecture-type-of-var-folders – avasal 2012-02-16 09:37:46