mozilla

Compare Revisions

Linux Prerequisites

Change Revisions

Revision 349529:

Revision 349529 by jdm on

Revision 355953:

Revision 355953 by Grubshka on

Title:
Linux Prerequisites
Linux Prerequisites
Slug:
Developer_Guide/Build_Instructions/Linux_Prerequisites
Developer_Guide/Build_Instructions/Linux_Prerequisites
Tags:
"Fixit", "Developing Mozilla", "Build documentation"
"Fixit", "Developing Mozilla", "Build documentation"
Content:

Revision 349529
Revision 355953
nn81    <h4>
82      Debian squeeze additions
83    </h4>
tt91</pre>
92    <p>
93      Debian Squeeze has only Python 2.6, and Mozilla build syste
 >m asks for Python 2.7. Since using Debian testing packages in sta
 >ble can be done with apt pinning, it's not recommended because it
 > can make your system unstable, and you will have a lot of depend
 >encies problems.<br>
94      The easiest solution is to use <a href="https://github.com/
 >utahta/pythonbrew" title="https://github.com/utahta/pythonbrew">p
 >ythonbrew</a>.
95    </p>
96    <pre>
97# Make sure you have libbz2-dev installed before, it's needed to 
 >have bz2 module in Python.
98aptitude install libbz2-dev
99# Install pythonbrew like described in the <a href="https://githu
 >b.com/utahta/pythonbrew#installation" title="https://github.com/u
 >tahta/pythonbrew#installation">documentation</a>
100curl -kL http://xrl.us/pythonbrewinstall | bash
101# Modify .bashrc to enable pythonbrew at login
102echo "" &gt;&gt; ~/.bashrc
103echo "[[ -s $HOME/.pythonbrew/etc/bashrc ]] &amp;&amp; source $HO
 >ME/.pythonbrew/etc/bashrc" &gt;&gt; ~/.bashrc
104# Enable pythonbrew (you can also open another terminal)
105source $HOME/.pythonbrew/etc/bashrc
106# Install Python 2.7
107pythonbrew install 2.7.3
108pythonbrew switch 2.7.3
109# Check version
110python --version

Back to History