1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY mozilla-download-http "http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla&mozilla-version;/src/mozilla-source-&mozilla-version;.tar.bz2">
|
---|
8 | <!ENTITY mozilla-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla&mozilla-version;/src/mozilla-source-&mozilla-version;.tar.bz2">
|
---|
9 | <!ENTITY mozilla-md5sum "15cb68da1d58f055f871b77ff655df77">
|
---|
10 | <!ENTITY mozilla-size "29 MB">
|
---|
11 | <!ENTITY mozilla-buildsize "619 MB">
|
---|
12 | <!ENTITY mozilla-time "13.46 SBU">
|
---|
13 |
|
---|
14 | <!ENTITY enigmail-version "0.89.5">
|
---|
15 | <!ENTITY ipc-version "1.1.2">
|
---|
16 | ]>
|
---|
17 |
|
---|
18 | <sect1 id="mozilla" xreflabel="Mozilla-&mozilla-version;">
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 | <?dbhtml filename="mozilla.html" ?>
|
---|
24 | <title>Mozilla-&mozilla-version;</title>
|
---|
25 |
|
---|
26 | <sect2>
|
---|
27 | <title>Introduction to <application>Mozilla</application></title>
|
---|
28 |
|
---|
29 | <para><application>Mozilla</application> is a browser suite, the Open Source
|
---|
30 | sibling of <application>Netscape</application>. It includes the browser,
|
---|
31 | composer, mail and news clients, a calendar client and an
|
---|
32 | <acronym>IRC</acronym> client.</para>
|
---|
33 |
|
---|
34 | <para>The <application>Mozilla</application> project also hosts two subprojects
|
---|
35 | that aim to satisfy the needs of users who don't need the complete browser
|
---|
36 | suite or prefer to have separate applications for browsing and e-mail. These
|
---|
37 | subprojects are
|
---|
38 | <ulink url="http://www.mozilla.org/products/firefox/">Mozilla Firefox</ulink>,
|
---|
39 | (a stand-alone browser based on the
|
---|
40 | <application>Mozilla</application> source code) and <ulink
|
---|
41 | url="http://www.mozilla.org/products/thunderbird/">Mozilla Thunderbird</ulink>,
|
---|
42 | (a stand-alone mail client based on the <application>Mozilla</application>
|
---|
43 | source code). The build instructions for these two applications are discussed
|
---|
44 | in separate sections:</para>
|
---|
45 |
|
---|
46 | <itemizedlist>
|
---|
47 | <listitem><para><xref linkend="firefox"/></para></listitem>
|
---|
48 | <listitem><para><xref linkend="thunderbird"/></para></listitem>
|
---|
49 | </itemizedlist>
|
---|
50 |
|
---|
51 | <sect3><title>Package information</title>
|
---|
52 | <itemizedlist spacing='compact'>
|
---|
53 | <listitem><para>Download (HTTP): <ulink
|
---|
54 | url="&mozilla-download-http;"/></para></listitem>
|
---|
55 | <listitem><para>Download (FTP): <ulink
|
---|
56 | url="&mozilla-download-ftp;"/></para></listitem>
|
---|
57 | <listitem><para>Download MD5 sum: &mozilla-md5sum;</para></listitem>
|
---|
58 | <listitem><para>Download size: &mozilla-size;</para></listitem>
|
---|
59 | <listitem><para>Estimated disk space required:
|
---|
60 | &mozilla-buildsize;</para></listitem>
|
---|
61 | <listitem><para>Estimated build time:
|
---|
62 | &mozilla-time;</para></listitem></itemizedlist>
|
---|
63 | </sect3>
|
---|
64 |
|
---|
65 | <sect3><title>Additional downloads</title>
|
---|
66 |
|
---|
67 | <para>To enable the <application>Enigmail</application> extension to the
|
---|
68 | <application>Mozilla</application> mail client, you'll need to download the
|
---|
69 | two tarballs below. The <application>Enigmail</application> extension allows
|
---|
70 | users to access the authentication and encryption features provided by the
|
---|
71 | <application>GnuPG</application> package.</para>
|
---|
72 |
|
---|
73 | <itemizedlist spacing='compact'>
|
---|
74 | <listitem><para><ulink
|
---|
75 | url="http://downloads.mozdev.org/enigmail/src/enigmail-&enigmail-version;.tar.gz"/>
|
---|
76 | </para></listitem>
|
---|
77 | <listitem><para><ulink
|
---|
78 | url="http://downloads.mozdev.org/enigmail/src/ipc-&ipc-version;.tar.gz"/>
|
---|
79 | </para></listitem>
|
---|
80 | </itemizedlist>
|
---|
81 | </sect3>
|
---|
82 |
|
---|
83 | <sect3><title><application>Mozilla</application> dependencies</title>
|
---|
84 | <sect4><title>Required</title>
|
---|
85 | <para><xref linkend="zip"/>,
|
---|
86 | <xref linkend="gtk2"/>,
|
---|
87 | <xref linkend="libIDL"/></para>
|
---|
88 | </sect4>
|
---|
89 |
|
---|
90 | <sect4><title>Recommended</title>
|
---|
91 | <para><xref linkend="gnupg"/> (for the Enigmail extension)</para>
|
---|
92 | </sect4>
|
---|
93 |
|
---|
94 | <sect4><title>Optional</title>
|
---|
95 | <para><xref linkend="libjpeg"/>,
|
---|
96 | <xref linkend="unzip"/>,
|
---|
97 | <xref linkend="gnome-vfs"/>,
|
---|
98 | <xref linkend="libart_lgpl"/>,
|
---|
99 | <xref linkend="heimdal"/> or <xref linkend="mitkrb"/>
|
---|
100 | (for the GSSAPI libraries),
|
---|
101 | <xref linkend="doxygen"/>,
|
---|
102 | <ulink url="http://xprint.mozdev.org/">Xprint</ulink>,
|
---|
103 | <ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink> and
|
---|
104 | <ulink url="http://cairographics.org/">Cairo</ulink></para>
|
---|
105 | </sect4>
|
---|
106 | </sect3>
|
---|
107 |
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <sect2>
|
---|
111 | <title>Installation of <application>Mozilla</application></title>
|
---|
112 |
|
---|
113 | <para>Compile <application>Mozilla</application> by running the following
|
---|
114 | commands:</para>
|
---|
115 |
|
---|
116 | <screen><userinput><command>export MOZILLA_OFFICIAL="1" &&
|
---|
117 | export BUILD_OFFICIAL="1" &&
|
---|
118 | ./configure --prefix=/usr \
|
---|
119 | --with-default-mozilla-five-home=/usr/lib/mozilla \
|
---|
120 | --with-system-zlib \
|
---|
121 | --with-system-png \
|
---|
122 | --enable-application=suite \
|
---|
123 | --enable-default-toolkit=gtk2 \
|
---|
124 | --enable-extensions=all \
|
---|
125 | --enable-crypto \
|
---|
126 | --enable-xft \
|
---|
127 | --enable-xinerama \
|
---|
128 | --enable-optimize \
|
---|
129 | --enable-reorder \
|
---|
130 | --enable-strip \
|
---|
131 | --enable-cpp-rtti \
|
---|
132 | --enable-calendar \
|
---|
133 | --disable-freetype2 \
|
---|
134 | --disable-accessibility \
|
---|
135 | --disable-debug \
|
---|
136 | --disable-tests \
|
---|
137 | --disable-logging \
|
---|
138 | --disable-pedantic \
|
---|
139 | --disable-installer &&
|
---|
140 | make</command></userinput></screen>
|
---|
141 |
|
---|
142 | <para>If you're building the <application>Mozilla</application> mail and news
|
---|
143 | clients and plan to install the <application>Enigmail</application>
|
---|
144 | extension, execute the following steps:</para>
|
---|
145 |
|
---|
146 | <screen><userinput><command>tar zxf ../enigmail-&enigmail-version;.tar.gz -C extensions &&
|
---|
147 | tar zxf ../ipc-&ipc-version;.tar.gz -C extensions &&
|
---|
148 | build/autoconf/make-makefile extensions/ipc extensions/enigmail &&
|
---|
149 | make -C extensions/ipc &&
|
---|
150 | make -C extensions/enigmail</command></userinput></screen>
|
---|
151 |
|
---|
152 | <para>Install <application>Mozilla</application> as follows:</para>
|
---|
153 |
|
---|
154 | <screen><userinput><command>make install &&
|
---|
155 | install -d /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
156 | cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
157 | /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
158 | ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &&
|
---|
159 | if [ -d /usr/lib/mozilla/plugins ]; then
|
---|
160 | mv /usr/lib/mozilla/plugins/* /usr/lib/mozilla-&mozilla-version;/plugins
|
---|
161 | rm -rf /usr/lib/mozilla
|
---|
162 | fi &&
|
---|
163 | ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla</command></userinput></screen>
|
---|
164 |
|
---|
165 | <para>If you're installing the <application>Enigmail</application> extension,
|
---|
166 | issue the following commands:</para>
|
---|
167 |
|
---|
168 | <screen><userinput><command>make -C extensions/ipc install &&
|
---|
169 | make -C extensions/enigmail install</command></userinput></screen>
|
---|
170 |
|
---|
171 | <para>Some libraries, including the Netscape Portable Runtime
|
---|
172 | (<acronym>NSPR</acronym>) and Network Security Services
|
---|
173 | (<acronym>NSS</acronym>) libraries, installed by
|
---|
174 | <application>Mozilla</application> are also needed by other packages. These
|
---|
175 | libraries should be in <filename>/usr/lib</filename> so that other packages
|
---|
176 | can link against them. Move them as follows:</para>
|
---|
177 |
|
---|
178 | <screen><userinput><command>for i in lib{nspr4,plc4,plds4,nss3,smime3,softokn3,ssl3}.so libsoftokn3.chk
|
---|
179 | do
|
---|
180 | mv /usr/lib/mozilla-&mozilla-version;/$i /usr/lib/
|
---|
181 | ln -sf ../$i /usr/lib/mozilla-&mozilla-version;/
|
---|
182 | done</command></userinput></screen>
|
---|
183 |
|
---|
184 | <para>Create the required component registries to enable multi-user installs.
|
---|
185 | These steps should be preformed by the root user each time a
|
---|
186 | <application>Mozilla</application> add-on is installed. This will allow normal
|
---|
187 | users to run <command>mozilla</command>. Enable multi-user operation by
|
---|
188 | executing the following:</para>
|
---|
189 |
|
---|
190 | <screen><userinput><command>cd /usr/lib/mozilla-&mozilla-version; &&
|
---|
191 | export LD_LIBRARY_PATH="$PWD" &&
|
---|
192 | export MOZILLA_FIVE_HOME="$PWD" &&
|
---|
193 | ./regxpcom &&
|
---|
194 | ./regchrome &&
|
---|
195 | touch `find . -name *.rdf`</command></userinput></screen>
|
---|
196 |
|
---|
197 | <note><para>You should run <command>/usr/bin/mozilla</command> once as the
|
---|
198 | root user (or any user with write privileges) to create some necessary
|
---|
199 | additional files in the <filename class='directory'>/usr</filename>
|
---|
200 | hierarchy.</para></note>
|
---|
201 |
|
---|
202 | </sect2>
|
---|
203 |
|
---|
204 | <sect2>
|
---|
205 | <title>Optional Extra Switches</title>
|
---|
206 |
|
---|
207 | <para>You may wish to run <command>./configure --help</command> and review
|
---|
208 | each of the listed options to discover what affect they have on the build.
|
---|
209 | Feel free to add or remove options to tailor the build to your desires.
|
---|
210 | Listed below are some common options not listed above but can be added to
|
---|
211 | the <command>configure</command> command in order to have the described effect
|
---|
212 | on the <application>Mozilla</application> compile.</para>
|
---|
213 |
|
---|
214 | <para><option>--with-system-jpeg</option>: Uses the system-installed copy of
|
---|
215 | <application>libjpeg</application> instead of the bundled copy.</para>
|
---|
216 |
|
---|
217 | <para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
|
---|
218 | strings from <acronym>ELF</acronym> shared objects generated during the build.
|
---|
219 | Note that this option breaks the build on alpha.</para>
|
---|
220 |
|
---|
221 | <para><option>--disable-mailnews</option>: Disables the mail and news
|
---|
222 | clients.</para>
|
---|
223 |
|
---|
224 | <para><option>--disable-ldap</option>: Disables <acronym>LDAP</acronym>
|
---|
225 | support, recommended if mail is disabled.</para>
|
---|
226 |
|
---|
227 | <para><option>--enable-xterm-updates</option>: Displays the current command
|
---|
228 | in the <command>xterm</command> window title during the compilation.</para>
|
---|
229 |
|
---|
230 | <para><option>--enable-plaintext-editor-only</option>: Disables support
|
---|
231 | for <acronym>HTML</acronym> editing. Do not use this switch if you are
|
---|
232 | building the mail-news component.</para>
|
---|
233 |
|
---|
234 | </sect2>
|
---|
235 |
|
---|
236 | <sect2>
|
---|
237 | <title>Command explanations</title>
|
---|
238 |
|
---|
239 | <para><command>export MOZILLA_OFFICIAL="1";
|
---|
240 | export BUILD_OFFICIAL="1"</command>: Set some variables that affect what and
|
---|
241 | how the package is built. These two exports specify a distribution is being
|
---|
242 | built.</para>
|
---|
243 |
|
---|
244 | <para><parameter>--with-default-mozilla-five-home=/usr/lib/mozilla</parameter>:
|
---|
245 | Sets the default value for <envar>MOZILLA_FIVE_HOME</envar>.</para>
|
---|
246 |
|
---|
247 | <para><parameter>--with-system-zlib --with-system-png </parameter>: Use the
|
---|
248 | system-installed versions of these packages.</para>
|
---|
249 |
|
---|
250 | <para><parameter>--enable-application=suite</parameter>: Identifies the build
|
---|
251 | as a <application>Mozilla</application> suite build.</para>
|
---|
252 |
|
---|
253 | <para><parameter>--enable-default-toolkit=gtk2</parameter>: Use the
|
---|
254 | <acronym>GTK</acronym>2 toolkit for graphics rendering.</para>
|
---|
255 |
|
---|
256 | <para><parameter>--enable-extensions=all</parameter>: Enables all available
|
---|
257 | extensions. If you want, you can disable any or all extensions other than the
|
---|
258 | browser by changing this switch to
|
---|
259 | <parameter>--enable-extensions="default,-venkman,-inspector,..."</parameter>.
|
---|
260 | For a short description of the various extensions available with the
|
---|
261 | <application>Mozilla</application> source, see
|
---|
262 | <ulink
|
---|
263 | url="http://linuxfromscratch.org/~tushar/downloads/mozilla-extensions.txt"/>.
|
---|
264 | </para>
|
---|
265 |
|
---|
266 | <para><parameter>--enable-crypto</parameter>: Enable the Personal
|
---|
267 | Security Manager to enable <acronym>SSL</acronym> connections.</para>
|
---|
268 |
|
---|
269 | <para><parameter>--enable-calendar</parameter>: Builds the calendar
|
---|
270 | application. Removed this parameter if you don't wish to build it.</para>
|
---|
271 |
|
---|
272 | <para><parameter>--enable-xft; --disable-freetype2</parameter>: Enable Xft
|
---|
273 | support which automatically pulls in the <application>FreeType</application>
|
---|
274 | libraries.</para>
|
---|
275 |
|
---|
276 | <para><parameter>--enable-xinerama; --enable-optimize; --enable-reorder;
|
---|
277 | --enable-strip; --enable-cpp-rtti --disable-accessibility; --disable-debug;
|
---|
278 | --disable-tests; --disable-logging; --disable-pedantic;
|
---|
279 | --disable-installer</parameter>: Various options that affect what components
|
---|
280 | are built and some optimization options. You can pick and choose from these
|
---|
281 | options. More information on them, and many other available options, can be
|
---|
282 | found by running <command>./configure --help</command>.</para>
|
---|
283 |
|
---|
284 | <para><command>install -d /usr/include/mozilla-&mozilla-version;/nss;
|
---|
285 | cp -Lf ...</command>: Copy the <acronym>NSS</acronym> interface headers that
|
---|
286 | are not copied by <command>make install</command>.</para>
|
---|
287 |
|
---|
288 | <para><command>if [ -d /usr/lib/mozilla/plugins ] ... fi</command>: Some
|
---|
289 | applications may have already installed <application>Mozilla</application>
|
---|
290 | plugins. This set of commands move any existing plugins to the newly created
|
---|
291 | plugin directory, then removes the existing
|
---|
292 | <filename class='directory'>/usr/lib/mozilla</filename> directory.</para>
|
---|
293 |
|
---|
294 | <para><command>ln -nsf mozilla-&mozilla-version; ...</command>:
|
---|
295 | <application>Mozilla</application> installs headers and libraries in version
|
---|
296 | specific directories. These commands makes symbolic links so that applications
|
---|
297 | depending on <application>Mozilla</application> (such as
|
---|
298 | <application>OpenOffice</application>, <application>Galeon</application>,
|
---|
299 | etc.) don't need to know which version of <application>Mozilla</application>
|
---|
300 | is installed.</para>
|
---|
301 |
|
---|
302 | </sect2>
|
---|
303 |
|
---|
304 | <sect2>
|
---|
305 | <title>Configuring <application>Mozilla</application></title>
|
---|
306 |
|
---|
307 | <para>No specific configuration is required as long as the
|
---|
308 | <command>mozilla</command> script is in the user's path. If
|
---|
309 | <application>Mozilla</application> is installed in a non-standard location,
|
---|
310 | then make a symlink to the <command>mozilla</command> script from
|
---|
311 | <filename class="directory">/usr/bin</filename>.</para>
|
---|
312 |
|
---|
313 | <para>Many applications look for <command>netscape</command> when they need to
|
---|
314 | open a browser. You may make the following symlink for convenience.</para>
|
---|
315 |
|
---|
316 | <screen><userinput><command>ln -sf mozilla /usr/bin/netscape</command></userinput></screen>
|
---|
317 |
|
---|
318 | <para>For installing various <application>Mozilla</application> plugins, refer
|
---|
319 | to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc
|
---|
320 | Project</ulink>.</para>
|
---|
321 |
|
---|
322 | </sect2>
|
---|
323 |
|
---|
324 | <sect2>
|
---|
325 | <title>Contents</title>
|
---|
326 |
|
---|
327 | <para>The <application>Mozilla</application> package contains
|
---|
328 | <command>mozilla</command> and the <application>Mozilla</application>
|
---|
329 | libraries and plugins. The various components such as the Composer,
|
---|
330 | mail-news client, calendar, <acronym>IRC</acronym> chat client and
|
---|
331 | address book can be accessed from the menu after <command>mozilla</command>
|
---|
332 | starts or via command-line switches to the <command>mozilla</command> script.
|
---|
333 | Issue <command>man mozilla</command> for additional information.</para>
|
---|
334 |
|
---|
335 | </sect2>
|
---|
336 |
|
---|
337 | </sect1>
|
---|