我在Mac上为python3.3.1安装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 :(得分:0)
编辑生成的Makefile并删除选项:
-Wc,'-arch ppc'
来自CFLAGS的和选项:
-arch ppc
来自LDFLAGS。
这是因为您的Apache安装是一个胖的可执行文件,其中仍然支持ppc,但操作系统不再支持构建ppc。
构建脚本使用编译到Apache中的内容来计算出应该为其编译的mod_wsgi。