【问题标题】:error while installing mod-wsgi 3.3 on mac os x在 mac os x 上安装 mod-wsgi 3.3 时出错
【发布时间】:2012-03-15 12:02:47
【问题描述】:
  • 阿帕奇 2.2
  • mod_wsgi 版本是 3.3
  • xcode 4 安装在我的机器上(有问题吗?)

步骤: 1) ./配置 2)sudo make install

第 2 步出现以下错误

$sudo make install
/usr/sbin/apxs -c -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DNDEBUG  -Wc,'-arch x86_64' -Wc,'-arch i386' -Wc,'-arch ppc7400' mod_wsgi.c -Wl,-F/Library/Frameworks -framework Python -u _PyMac_Error   -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/2.7/include/python2.7 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin     /ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386

lipo:无法打开输入文件:/var/tmp//ccuKotEU.out(没有这样的文件或目录) apxs:错误:命令失败,rc=65536 . make: * [mod_wsgi.la] 错误 1

【问题讨论】:

    标签: macos apache mod-wsgi


    【解决方案1】:

    您在 Snow Leopard 上安装了 Lion 的预览版 XCode,但它没有 PPC,因此与 Apache 的编译目标不匹配。

    手动修改Makefile,去掉-Wc,'-arch ppc7400'选项。

    【讨论】:

      猜你喜欢
      • 2015-12-10
      • 2011-05-16
      • 2015-12-06
      • 1970-01-01
      • 2015-08-19
      • 2015-03-19
      • 2012-01-09
      • 2018-03-30
      • 2016-02-27
      相关资源
      最近更新 更多