Building Mozilla on Solaris
Using the Sun Workshop 4.2 Compiler
Setting up the environment
- These instructions are for an Ultra class machine running Solaris 7
- Set your PATH variable to contain atleast these directories
- Set your LD_LIBRARY_PATH variable to something like
set path = ( .
\
/usr/ccs/bin
\
/usr/ucb
\
/usr/bin
\
/etc
\
/usr/lib
\
/usr/etc
\
/usr/openwin/bin
\
/usr/dt/bin
\
/usr/sbin)
You should also have the path to the Sun Workshop 4.2 on your system in your PATH environment variable.
Note: You might need to include other directories or change some
here depending upon your local Solaris installation.
setenv LD_LIBRARY_PATH /usr/openwin/lib
Get the latest Solaris Patches
- Go to:
http://access1.sun.com/cgi-bin/query.cgi/whatsnew/new_arch/recpatchnew.html and download and install all the recommended patches.
Building Glib
- Glib is the library used by the Gtk+ toolkit within mozilla. Glib is a C utility library that provides routines for creating and manipulating common data structures. Download the source distribution from http://www.gtk.org/ (1.2.2 or higher) into /MyWorkspace/glib-1.2.*
- gunzip and untar the distribution
- In /MyWorkspace/glib-1.2.*
- Add the entry /MyWorkspace/glib/bin to your PATH
- Add the entry /MyWorkspace/glib/lib to your LD_LIBRARY_PATH
% ./configure --prefix=/MyWorkspace/glib
% make
% make install
Building Gtk+
- Gtk+ is the Gimp ToolKit which is used by Mozilla. It contains Gdk, the Gimp Drawing Kit, which is an abstraction of the low-level X Window system libs. Download the source distribution from http://www.gtk.org/ (same version as glib) into /MyWorkspace/gtk+-1.2.*
- gunzip and untar the distribution
- In /MyWorkspace/gtk+-1.2.*
% ./configure --prefix=/MyWorkspace/gtk
% make
% make install
- Add the entry /MyWorkspace/gtk/bin to your PATH
- Add the entry /MyWorkspace/gtk/lib to your LD_LIBRARY_PATH
Building libIDL
- LibIDL is used by mozilla to compile the XPCOM IDL files. Download source distribution from http://atv.ne.mediaone.net/libIDL/ (version 0.6.3 or above) into /MyWorkspace/libIDL-0.6.*
- gunzip and untar the distribution
- In /MyWorkspace/libIDL-0.6.*
- Add the entry /MyWorkspace/libIDL/bin to your PATH
- Add the entry /MyWorkspace/libIDL/lib to your LD_LIBRARY_PATH
% ./configure --prefix=/MyWorkspace/libIDL
% make
% make install
Building Mozilla
- add the directory which contains gmake to your PATH. If you dont have gmake, you can get it from http://www.gnu.org
- Download and unpack the 20Mb gzipped tarball from http://www.mozilla.org/download-mozilla.html into /MyWorkspace/mozilla
- In /MyWorkspace/mozilla
- Add the entry /MyWorkspace/mozilla/dist/bin to your PATH
- Add the entry /MyWorkspace/mozilla/dist/lib to your LD_LIBRARY_PATH
% ./configure
% gmake
Using the Gnu gcc Compiler
- The Build Instructions using the GNU gcc compiler are the same with
the follwing 2 exceptions:
- The path to the gnu tools including egcs should be included in your PATH variable. You can get these from http://gcc.gnu.org
- Your PATH variable should contain the GNU tools directory listing before the Workshop tools directory listing.
Use gmake for building the Glib, Gtk+ and libIDL packages and then
build mozilla as above.
Ashu Kulkarni