安装mod_wsgi 3.2时出错 [英] Error installing mod_wsgi 3.2

查看:85
本文介绍了安装mod_wsgi 3.2时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac OSX 10.6.6上安装mod_wsgi 3.2,并在尝试进行操作时收到此错误

I am trying to install mod_wsgi 3.2 on Mac OSX 10.6.6 and am getting this error when I attempt to make

已安装的汇编器为: /usr/bin/../libexec/gcc/darwin/x86_64/对于架构x86_64 /usr/bin/../libexec/gcc/darwin/i386/对于架构i386 lipo:无法打开输入文件:/var/folders/XW/XWYalsEzG3Gkn + PhoNKF0k +++ TI/-Tmp-//ccsEgbTa.out(无此类文件或目录) apxs:错误:命令失败,rc = 65536 . make: * [mod_wsgi.la]错误1

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: can't open input file: /var/folders/XW/XWYalsEzG3Gkn+PhoNKF0k+++TI/-Tmp-//ccsEgbTa.out (No such file or directory) apxs:Error: Command failed with rc=65536 . make: * [mod_wsgi.la] Error 1

推荐答案

这是一个较晚的答案,但是我在搜索中找到了一个解决方案,并希望将其包括在此处.通常会发生此错误,因为您正在尝试为ppc体系结构构建库,因为xcode4不再包含对ppc的支持,该库将无法工作.您可以通过在运行构建之前在环境中设置以下内容来解决此问题(我将其放置在.bash_profile中,以便以后不再将头撞墙)

This is a late answer, but I found a solution in my searching and wanted to include it here for others. This error typically occurs because you are trying to build libraries for ppc architecture which won't work as xcode4 doesn't no longer includes support for ppc. You can get around this by setting the following in your environment before running your build (I put this in my .bash_profile so I don't beat my head against the wall later):

export ARCHFLAGS="-arch i386 -arch x86_64"

这篇关于安装mod_wsgi 3.2时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆