【发布时间】:2016-05-16 03:28:40
【问题描述】:
当我尝试在 Linux 上配置 Firefox 46 时,我收到以下错误:
0:03.58 checking for python2.7... /usr/local/bin/python2.7
0:03.58 Creating Python environment
0:03.63 checking Python environment is Mozilla virtualenv... Traceback (most recent call last):
0:03.63 File "<string>", line 1, in <module>
0:03.63 ImportError: No module named mozbuild.base
0:03.63 configure: error: Python environment does not appear to be sane.
0:03.63 ------ config.log ------
0:03.63 This file contains any messages produced by compilers while
0:03.63 running configure, to aid debugging if configure makes a mistake.
0:03.63
0:03.63 configure:1208: checking host system type
0:03.63 configure:1229: checking target system type
0:03.63 configure:1247: checking build system type
0:03.63 configure:1327: checking for mawk
0:03.63 configure:1327: checking for gawk
0:03.63 configure:1412: checking for python2.7
0:03.63 configure:1522: checking Python environment is Mozilla virtualenv
0:03.63 configure: error: Python environment does not appear to be sane.
0:03.63 *** Fix above errors and then restart with\
0:03.64 "/usr/local/bin/make -f client.mk build"
0:03.64 client.mk:359: recipe for target 'configure' failed
0:03.64 make: *** [configure] Error 1
我填补了以下错误,我做了一个平分识别导致此问题的补丁:
https://bugzilla.mozilla.org/show_bug.cgi?id=1268251
补丁如下:
The first bad revision is:
changeset: 317858:f7a8480e3efa
user: Mike Hommey <mh+mozilla@glandium.org>
date: Wed Jan 20 11:07:58 2016 +0900
summary: Bug 1240990 - Define all backends in one place. r=gps
https://hg.mozilla.org/mozilla-central/rev/f7a8480e3efa
我联系了补丁的作者,但他没有找到解决办法。
由于我总是可以配置、编译和安装 Firefox 45 及以下版本,但不能 46(因为这个补丁),这里发生了什么?也许是 virtualenv 问题?
谢谢!
Ps:我的 Python 安装没问题。直到现在我都没有遇到过这种问题。
【问题讨论】:
标签: python firefox build virtualenv configure