[英]'gcc-4.2' failed with exit status 1 when installing bcrypt
Hi all im new to django and python trying to install bcrypt which is needed for building a piece of django code im trying to run on my system, im running into a problem as below 大家好,django和python的所有即时消息都是试图安装bcrypt的,而这是构建一段django代码所需要的,即时消息试图在我的系统上运行,即时消息遇到以下问题
im using python 2.7 and v1.4 django 我正在使用python 2.7和v1.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
how do i fix this? 我该如何解决?
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
I believe stdarg.h.
我相信
stdarg.h.
is part of the standard C library, libstdc
(or possibly the standard C++ library libstdc++
.) This smells to me like libstdc
is missing or not located where the compiler thinks it is. 是标准C库
libstdc
(或者可能是标准C ++库libstdc++
。这对我来说就像是libstdc
丢失或不在编译器认为的位置。
Googling your error message ( stdarg.h: No such file or directory
) produces a stack of hits on StackOverflow and elsewhere. 仔细检查您的错误消息(
stdarg.h: No such file or directory
)会在StackOverflow和其他位置产生大量匹配。 See here or here for what appear to be exact solutions to your problem. 请参阅此处或此处 ,了解似乎完全可以解决您的问题的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.