Video Tutorial

If you prefer annotated videos to wiki pages, there is couple of videos available for Linux users.


  • 2G RAM with lots of available swap space. Additional RAM will significantly decrease build time.
  • For debug builds: at least 8 GB free disk space
  • For optimized builds: at least 1 GB free disk space (6 GB recommended)

Build Tools and Dependencies

Most Distros - One Line Bootstrap Command

Try to run the following to install all system prerequisites:

wget -O && python

If you are behind proxy use the following method:

Set up your environment variables to appropriate proxy server address like this:

export http_proxy=http://username:password@PROXY_SERVER_ADDRESS/
export https_proxy=https://username:password@PROXY_SERVER_ADDRESS/

Now, run the wget command to install the system prerequisites:

wget -O --proxy-user=username --proxy-password=password && python

If this doesn't work, continue on to one of the sections below.


Note that Python3 is the default python in e.g. Arch Linux, but Mozilla requires Python2, which is installed above. There are a few ways to work around this. One is to add

mk_add_options PYTHON=/usr/bin/python2

to your .mozconfig file.

Other distros, and other Unix-based systems

On other systems, you can install the tools individually:

mkdir ~/bin
ln -sf `which python2` ~/bin/python
  • A recent POSIX Shell
  • A C++ compiler. GCC 4.7 or higher is required. Again, please note that as of Firefox 38, GCC 4.6 and earlier are no longer supported, and will not work; your platform's native compiler may work, provided it supports those features of C++11 that the Firefox codebase relies on, which are listed here.  (Firefox 37 requires GCC 4.6 or higher).
  • Perl 5.6 or higher. Older perl versions may work if you upgrade File::Spec to version 0.8
  • GNU make 3.80 or higher. Other varieties of "make" will not work.
  • the GTK2 widget toolkit, version 2.10 or higher
  • As of Firefox 42, the GTK3 widget toolkit, version 3.4 or higher
  • libXt-devel for X11/Intrinsic.h, X11/Shell.h
  • libIDL 0.6.3 or higher Source snapshots are available from Mozilla via ftp. If using the RPMs, you'll need both the regular rpm and the -devel rpm. If you already have ORBit installed, then you do not need to install libIDL as ORBit bundles libIDL. You may need to install the ORBit-devel package if you use packages.
  • zip 2.3 (or higher)
  • freetype 2.1.0 (or higher)
  • fontconfig
  • libgstreamer 0.10 (or higher) and its base plugins
  • pkg-config 0.9.0 (or higher)
  • dbus-1-glib-devel (Developer package for D-Bus/GLib bindings)
  • libasound2-dev (needed for audio playback support)
  • pulseaudio-libs-devel (preferred for audio over ALSA)
  • libnotify-dev
  • Yasm version 1.1.0 or newer.
  • Python 2.7.3 or later. Python 3 will not work.
  • autoconf-2.13 (requires GNU m4) - Autoconf 2.5x will not work. See bug 104642 for details.

To install autoconf-2.13 from source:

tar -xvzf autoconf-2.13.tar.gz
cd autoconf-2.13/
./configure --program-suffix=2.13
sudo make install

Additional Information