http://www.mozilla.org/newlayout/unixbuild.html
Building On UNIX
Last updated 10/07/98 by Kevin McCluskey
Table of Contents
Linux
Requirements
RedHat 5.0 or RedHat 5.1 / Motif1.2
Display which supports 24, 16, or 8bit visuals.
RedHat 5.1 / Motif1.2
If you are using RedHat 5.1 you will need to change the
references to Linux2.0.31_x86_DBG.OBJ to be
Linux2.0.32_x86_DBG.OBJ
In
addition if you do not have a executable called perl you will need to create
a link to perl5... named perl. You can do that by doing the following:
ls -l /usr/bin/perl* <This
gives you the full name for perl5...>
su root
ln /usr/bin/<perl5...>
/usr/bin/perl
exit
Step #1 - Define the Environment Variables
Here is a sample .bash_profile:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup
programs
PATH=$PATH:$HOME/bin
ENV=$HOME/.bashrc
CVSROOT=:pserver:anonymous
@cvs-mirror.mozilla.org:/cvsroot
LD_LIBRARY_PATH=/home/<user
id here>/mozilla/dist/Linux2.0.31_x86_DBG.OBJ/bin:/lib:/usr/lib
NGLAYOUT_PLUGINS=1
CM_BLDTYPE=dbg
AWT_11=1
MODULAR_NETLIB=1
NO_SECURITY=1
MOZ_SRC=/home/<user
id here>
MOZ_OUT=/home/<user
id here>
MOZ_BITS=32
MOZ_GOLD=1
NSPR20=1
OS_TARGET=Linux
STANDALONE_IMAGE_LIB=1
include=/usr/X11R6/include
lib=/usr/X11R6/lib
DEPTH=../../..
MOZILLA_CLIENT=1
export LD_LIBRARY_PATH MOZILLA_CLIENT MODULAR_NETLIB
NO_SECURITY USERNAME ENV PATH CVSROOT CM_BLDTYPE MOZ_SRC MOZ_OUT MOZ_BITS
MOZ_GOLD NSPR20 OS_TARGET STANDALONE_IMAGE_LIB include lib DEPTH
NOTE:
The green <user id here>
is where you put in your own User Id or the directory where you will be
doing you development.
The dark red "Linux2.0.31_x86_DBG.OBJ"
may not be the same on your Linux machine depending the version of Linux
you are running.
Step #2 - Check out the source code
First, change directories to where you will be doing your development
and then pull the source:
$ cd $MOZ_SRC
$ cvs co mozilla/config
$ cvs co mozilla/nglayout.mk
$ cd mozilla
$ make -f nglayout.mk pull_all
Step #3 - Build the Source
$ make -f nglayout.mk
IRIX
It will build under IRIX but it will not run. There is a code generation
problem with the IRIX compiler related to multiple inheritance that causes
the viewer to crash. Although we haven't tested it, you should be able
to build and run if you use the egcs compiler instead of the standard IRIX
compiler. http://egcs.cygnus.com/
Solaris
We have not built under Solaris yet. If you would like to try your hand
at porting to Solaris, pull the source and try building it using the instructions
above.