Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Python 2.7 or greater on Ubuntu 10.04

103 views
Skip to first unread message

Nick

unread,
Sep 7, 2013, 9:43:34 PM9/7/13
to
I'm trying to compile FF 23.01 on Ubuntu 10.04, 64bit.

I get the error: Python 2.7 or greater (but not Python 3) is required to build. You are running Python 2.6.

I need to install the new version of Python without messing up the existing (package manager) version. What is the best way to do this?

Should I compile the new version in /opt? How do I link the FF compiler to the /opt not the system version? Or are there Python binaries I could download and drop in without building a new one?

Also, how does this affect portability of the finished FF binary? If I use a /opt version of Python, will all target machines need an/opt python installed?

Thanks!

Ethan Hugg

unread,
Sep 7, 2013, 10:22:25 PM9/7/13
to Nick, Mozilla Product Builds

2.7.3 is required.  Here's the notice for it from gps:

>Just landed in inbound and making its way to a tree near you is the requirement that you use Python 2.7.3 or greater (but >notPython 3) to build the tree. If you see any issues, bug 870420 is responsible.

I build on Ubuntu 12.04, assuming you don't want to update to that version, I would recommend compiling python 2.7.3 or later in /opt and making softlinks to it in /usr/bin/ so it is the default python in your path.

Also, I don't think the portability of your build of FF will be affected by where your python is located during build time.

-EH



_______________________________________________
dev-builds mailing list
dev-b...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-builds

Nick

unread,
Sep 7, 2013, 10:25:41 PM9/7/13
to
I've compiled python 2.7.5in /opt/python-2.7.5/. I just need to know how to link it?

Alex Jordan

unread,
Sep 7, 2013, 10:30:38 PM9/7/13
to Nick, dev-builds

On Sep 7, 2013 6:45 PM, "Nick" <rahlente...@gmail.com> wrote:
> Also, how does this affect portability of the finished FF binary? If I use a /opt version of Python, will all target machines need an/opt python installed?

AFAIK, it doesn't. Python is only used for the build system.

Boris Zbarsky

unread,
Sep 7, 2013, 10:32:15 PM9/7/13
to
On 9/7/13 10:25 PM, Nick wrote:
> I've compiled python 2.7.5in /opt/python-2.7.5/. I just need to know how to link it?

You can just set PYTHON=/opt/python-2.7.5/whatever/bin/python in your
mozconfig to tell the Firefox build system to use that specific python
version.

-Boris

Nick

unread,
Sep 7, 2013, 11:05:42 PM9/7/13
to
Thanks! I'm passed Python and on to a new error. :)


Jarek Śmiejczak

unread,
Sep 8, 2013, 4:29:31 AM9/8/13
to Nick, dev-b...@lists.mozilla.org
Nick, I think you should try one of following projects:
https://github.com/utahta/pythonbrew - multiple pythons in one shell, like a rvm for ruby, with virtualenv support
https://github.com/yyuu/pyenv - newer without virtualenv support

After installing all required packages for compilation (openssl, bzip dev libs) works like a charm :-)


2013/9/8 Nick <rahlente...@gmail.com>
Thanks! I'm passed Python and on to a new error. :)
_______________________________________________
dev-builds mailing list
dev-b...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-builds



--
jarek@reijutsu:~$ fortune
You have Egyptian flu: you're going to be a mummy.
jarek@reijutsu:~$ fortune
You now have Asian Flu.
0 new messages