mozilla

Revision 399403 of Linux build preparation

  • Revision slug: Simple_Firefox_build/Linux_and_MacOS_build_preparation
  • Revision title: Linux and MacOS build preparation
  • Revision id: 399403
  • Created:
  • Creator: thp
  • Is current revision? No
  • Comment

Revision Content

System Requirements

Nearly 4GB of RAM are used by the compilation process. If you only have 2GB, with 2GB swap, for example, the compile process may only complete in a minimal desktop-environment such as Fluxbox.

One-Line Bootstrapping

You can attempt running our system bootstrapping script to install all system dependencies:

wget --no-check-certificate https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py && python bootstrap.py

If this works, great! If not, see the appropriate section below. If you encounter an error, consider filing a bug saying that the bootstrapper didn't work. Please include output and relevant operating system details.

If you have already checked out the source code via Mercurial or Git you can also use mach with the bootstrap command:

./mach bootstrap

Common Bootstrapper Failures

Missing wget
wget: command not found

If you see the above, you don't have wget installed. Try curl:

curl https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py > bootstrap.py && python bootstrap.py

If you don't have curl, download the file in your browser and run it by hand:

python bootstrap.py

Linux

The above bootstrap scripts supports popular Linux distributions. If it doesn't work for you, see Linux build prerequisites for more.

Mac

The above bootstrap script should work on OS X 10.6 and newer. (As of at least 10.8, wget isn't included in a stock OS install but curl is.) If it doesn't, see Mac OS X build prerequisites.

Now you are ready to get the Firefox source and build, continue on from Simple Firefox build (Get_the_source).

Revision Source

<h3 id="System_Requirements">System Requirements</h3>
<p>Nearly 4GB of RAM are used by the compilation process. If you only have 2GB, with 2GB swap, for example, the compile process may only complete in a minimal desktop-environment such as Fluxbox.</p>
<h3 id="One-Line_Bootstrapping">One-Line Bootstrapping</h3>
<p>You can attempt running our system bootstrapping script to install all system dependencies:</p>
<pre>
<span class="difflineplus">wget --no-check-certificate https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py &amp;&amp; python bootstrap.py</span></pre>
<p><span class="difflineplus">If this works, great! If not, see the appropriate section below.</span> If you encounter an error, consider <a href="https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&amp;component=Build%20Config" title="https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&amp;component=Build%20Config">filing a bug</a> saying that the bootstrapper didn't work. Please include output and relevant operating system details.</p>
<p>If you have already checked out the source code via Mercurial or Git you can also use <a href="/en-US/docs/Developer_Guide/mach" title="/en-US/docs/Developer_Guide/mach">mach</a> with the bootstrap command:</p>
<pre>
./mach bootstrap</pre>
<h4 id="Common_Bootstrapper_Failures">Common Bootstrapper Failures</h4>
<h5 id="Missing_wget">Missing wget</h5>
<pre class="bz_comment_text" id="comment_text_0">
wget: command not found</pre>
<p>If you see the above, you don't have wget installed. Try curl:</p>
<pre class="bz_comment_text" id="comment_text_0">
curl <span class="difflineplus">https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py &gt; bootstrap.py &amp;&amp; python bootstrap.py</span></pre>
<p><span class="difflineplus">If you don't have curl, <a href="https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py" title="https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py">download the file</a> in your browser and run it by hand:</span></p>
<pre>
<span class="difflineplus">python bootstrap.py</span></pre>
<h3 id="Linux">Linux</h3>
<p>The above bootstrap scripts supports popular Linux distributions. If it doesn't work for you, see <a href="/En/Developer_Guide/Build_Instructions/Linux_Prerequisites" title="https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Linux_Prerequisites">Linux build prerequisites</a> for more.</p>
<h3 id="Mac">Mac</h3>
<p>The above bootstrap script should work on OS X 10.6 and newer. (As of at least 10.8, wget isn't included in a stock OS install but curl is.) If it doesn't, see <a class="internal" href="/En/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites" title="en/Mac_OS_X_Build_Prerequisites">Mac OS X build prerequisites</a>.</p>
<p>Now you are ready to get the Firefox source and build, continue on from <a href="/en-US/docs/Simple_Firefox_build#Get_the_source" title="/en-US/docs/Simple_Firefox_build#Get_the_source">Simple Firefox build (Get_the_source).</a></p>
Revert to this revision