«gcc-4.2» завершился неудачно с состоянием выхода 1 при установке bcrypt - PullRequest
1 голос
/ 16 февраля 2012

Привет всем, я новичок в django и python, пытающихся установить bcrypt, который необходим для создания фрагмента кода django, который я пытаюсь запустить в моей системе, и столкнулся с проблемой, описанной ниже

im используя 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

как мне это исправить?

1 Ответ

1 голос
/ 16 февраля 2012
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory

Я считаю, что stdarg.h. является частью стандартной библиотеки C, libstdc (или, возможно, стандартной библиотеки C ++ libstdc++.) Мне кажется, что libstdc отсутствует или не находится там, где компилятор считает, что это .

Поиск в сообщении об ошибке (stdarg.h: No such file or directory) приводит к попаданию в StackOverflow и в других местах. См. здесь или здесь , что является точным решением вашей проблемы.

...