You can build a bleeding-edge, development version of Firefox using the commands below. For complete information, see the build documentation.
Installing build tools
If your system is not listed below, see the build prerequisites page.
sudo apt-get build-dep firefox sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev
sudo yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development' sudo yum install mercurial autoconf213
- Install Xcode Tools. Insert "Mac OS X Install Disc 2", then open
XcodeTools.mpkg. (For some Mac OS X versions, you will find it in a directory called "Optional Installs".)
- Install MacPorts.
- Run these commands to install the other build tools:
sudo port sync sudo port install mercurial libidl autoconf213
Problems? See Mac OS X build prerequisites.
- Install Visual Studio. The express version will work.
- Install the Microsoft Windows SDK Update for Windows Vista (even if you don't use Vista).
- Install MozillaBuild, a package of additional build tools. (If you get a message saying this application did not install properly then you should see a windows dialog giving you the option to re-install with the 'correct settings'. After that all should be well.)
- Open a shell window by running:
Problems? See Windows build prerequisites.
Building Firefox requires at least 1 GB of disk space, 500 MB of RAM, and lots of available swap space.
# Get the source hg clone -r default http://hg.mozilla.org/mozilla-central/ cd mozilla-central # Configure autoconf-2.13 mkdir objdir-ff-release cd objdir-ff-release ../configure --enable-application=browser # Build make -j4
- For a debug build, pass
configure. This requires more disk space, about 2.5 GB.
- To build Thunderbird or SeaMonkey, you'll need more source code.
How to build again later
In your mozilla-central directory, run these commands:
# Get the latest source hg pull -r default hg update
Then just re-run the Configure and Build commands above.
make will only recompile files that changed.
You must use the same
configure options each time you rebuild. To avoid this error-prone step, use a
An incremental build can be much faster than rebuilding everything.