You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



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 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.
     

  • Set your LD_LIBRARY_PATH variable to something like

  • setenv LD_LIBRARY_PATH /usr/openwin/lib
     

Get the latest Solaris 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.*
    •  
      % ./configure --prefix=/MyWorkspace/glib
      % make
      % make install
       
  • Add the entry /MyWorkspace/glib/bin to your PATH
  • Add the entry /MyWorkspace/glib/lib to your LD_LIBRARY_PATH

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.*
    •  
      % ./configure --prefix=/MyWorkspace/libIDL
      % make
      % make install
       
  • Add the entry /MyWorkspace/libIDL/bin to your PATH
  • Add the entry /MyWorkspace/libIDL/lib to your LD_LIBRARY_PATH

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
    •  
      % ./configure
      % gmake
       
  • Add the entry /MyWorkspace/mozilla/dist/bin to your PATH
  • Add the entry /MyWorkspace/mozilla/dist/lib to your LD_LIBRARY_PATH

 
 
 

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