[英]Mac osx LION :python cxfreeze installation error: stdarg.h: No such file or directory
Tried to build cx_Freeze version 4.2.3 using python 3.2.2 in my Mac osx lion 10.7.4 with XCODE 4.5.1 尝试在Mac OS X Lion 10.7.4和XCODE 4.5.1中使用python 3.2.2构建cx_Freeze版本4.2.3
command to build cxfreeze : env ARCHFLAGS="-arch i386" python3 setup.py build 生成cxfreeze的命令:env ARCHFLAGS =“-arch i386” python3 setup.py build
Following error occurred, Hope someone have experienced or knows how to fix this. 发生以下错误时,希望有人经历过或知道如何解决。
adding base module named token
添加名为令牌的基本模块
adding base module named tokenize添加名为tokenize的基本模块
adding base module named traceback添加名为traceback的基本模块
adding base module named types添加名为基本类型的基本模块
adding base module named warnings添加名为警告的基本模块
adding base module named weakref添加名为weakref的基本模块
running build运行构建
running build_py运行build_py
running build_ext运行build_ext
building 'cx_Freeze.util' extension建立'cx_Freeze.util'扩展
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c source/util.c -o build/temp.macosx-10.6-i386-3.2/source/util.ogcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -I /Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c source / util.c -o build / temp.macosx-10.6-i386-3.2 / source / util.o
In file included from /Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m/Python.h:73,from source/util.c:6:在/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m/Python.h:73中包含的文件中,来自source / util.c:6:
/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m/bytearrayobject.h:9:20: error: stdarg.h: No such file or directory/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m/bytearrayobject.h:9:20:错误:stdarg.h:无此类文件或目录
error: command 'gcc-4.2' failed with exit status 1错误:命令“ gcc-4.2”失败,退出状态为1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.