2013-04-26 61 views
0

我在Mac上为python3.3.1安装mod_wsgi。我看到这个警告,甚至在仔细查看安装文档之后也很难过。安装mod_wsgi:缺少体系结构文件

./configure --with-apxs=/usr/sbin/apxs --with-python=/usr/local/bin/python3.3 

make回报:

/usr/sbin/apxs -c -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -DNDEBUG -Wc,'-arch x86_64' -Wc,'-arch i386' -Wc,'-arch ppc7400' mod_wsgi.c -Wl,-F/Library/Frameworks -framework Python -framework CoreFoundation -arch x86_64 -arch i386 -arch ppc7400 -ldl -framework CoreFoundation 
/usr/share/apr-1/build-1/libtool --silent --mode=compile gcc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -arch x86_64 -arch i386 -arch ppc7400 -I/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo 
/usr/share/apr-1/build-1/libtool --silent --mode=link gcc -o mod_wsgi.la -rpath /usr/libexec/apache2 -module -avoid-version mod_wsgi.lo -Wl,-F/Library/Frameworks -framework Python -framework CoreFoundation -arch x86_64 -arch i386 -arch ppc7400 -ldl -framework CoreFoundation 

“警告” 如下:

ld: warning: in /Library/Frameworks/Python.framework/Python, missing required architecture ppc in file 
warning: no debug symbols in executable (-arch x86_64) 
warning: no debug symbols in executable (-arch i386) 
warning: no debug symbols in executable (-arch ppc7400) 

有没有人有什么想法?

回答

0

编辑所生成的生成文件并删除选项:

-Wc,'-arch ppc' 

从CFLAGS,选项:

-arch ppc 

从LDFLAGS。

发生这种情况是因为您的Apache安装是一个胖的可执行文件,ppc支持仍在其中,但操作系统不再支持构建ppc。

构建脚本使用编译到Apache中的内容来确定应编译哪些mod_wsgi。

相关问题