Unix Detailed Build Instructions

See http://www.mozilla.org/build/unix-details.html for the lastest version of these instructions.

Daniel Nunes, leaf@mozilla.org
Last modified: Fri Sep 3 16:59:34 PDT 1999

This is a guide to building Mozilla on Unix including,

For documentation on developing features or fixing bugs, look at the Mozilla Technical Documents or Mozilla Library. For general Unix issues, look at the Mozilla Unix.

Other Unix Build pages

Requirements

Your hardware should be equal to, or better than:

The following software should be installed. (You can download gcc, gmake and autoconf from prep.ai.mit.edu.)

Get the Code

There are two ways to get the code:

Build the Lizard

Manually drive the build

  1. cd mozilla
  2. ./configure
  3. gmake

Once you have configured, you only have to run configure if you add or remove Makefile.in files (cvs update can do this. Beware!). The list of makefiles is in mozilla/allmakefiles.sh

For build system hackers: If you change configure.in, cd to mozilla, and run autoconf. This generates a new configure script. (When you checkin configure.in, cvs will run autoconf and check in a new configure script for you).

Automated build (client.mk)

  1. Save the script from Unix Build Configurator as ~/.mozconfig.
  2. cvs co -f mozilla/client.mk
  3. cd mozilla
  4. gmake -f client.mk
If you want to build without pulling the tree (as in, you already have the source lying around),
    gmake -f client.mk build
If you just want to pull the tree,
    gmake -f client.mk checkout

After the build