source: xsoft/graphweb/mozilla.xml@ a8eba10

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a8eba10 was a8eba10, checked in by Igor Živković <igor@…>, 19 years ago

Updated to GTK+-2.6.0.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3202 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.0 KB
Line 
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
30sibling of <application>Netscape</application>. It includes the browser,
31composer, 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
35that aim to satisfy the needs of users who don't need the complete browser
36suite or prefer to have separate applications for browsing and e-mail. These
37subprojects 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
41url="http://www.mozilla.org/products/thunderbird/">Mozilla Thunderbird</ulink>,
42(a stand-alone mail client based on the <application>Mozilla</application>
43source code). The build instructions for these two applications are discussed
44in 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
54url="&mozilla-download-http;"/></para></listitem>
55<listitem><para>Download (FTP): <ulink
56url="&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
69two tarballs below. The <application>Enigmail</application> extension allows
70users 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
75url="http://downloads.mozdev.org/enigmail/src/enigmail-&enigmail-version;.tar.gz"/>
76</para></listitem>
77<listitem><para><ulink
78url="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
114commands:</para>
115
116<screen><userinput><command>export MOZILLA_OFFICIAL="1" &amp;&amp;
117export BUILD_OFFICIAL="1" &amp;&amp;
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 &amp;&amp;
140make</command></userinput></screen>
141
142<para>If you're building the <application>Mozilla</application> mail and news
143clients and plan to install the <application>Enigmail</application>
144extension, execute the following steps:</para>
145
146<screen><userinput><command>tar zxf ../enigmail-&enigmail-version;.tar.gz -C extensions &amp;&amp;
147tar zxf ../ipc-&ipc-version;.tar.gz -C extensions &amp;&amp;
148build/autoconf/make-makefile extensions/ipc extensions/enigmail &amp;&amp;
149make -C extensions/ipc &amp;&amp;
150make -C extensions/enigmail</command></userinput></screen>
151
152<para>Install <application>Mozilla</application> as follows:</para>
153
154<screen><userinput><command>make install &amp;&amp;
155install -d /usr/include/mozilla-&mozilla-version;/nss &amp;&amp;
156cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
157 /usr/include/mozilla-&mozilla-version;/nss &amp;&amp;
158ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &amp;&amp;
159if [ -d /usr/lib/mozilla/plugins ]; then
160 mv /usr/lib/mozilla/plugins/* /usr/lib/mozilla-&mozilla-version;/plugins
161 rm -rf /usr/lib/mozilla
162fi &amp;&amp;
163ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla</command></userinput></screen>
164
165<para>If you're installing the <application>Enigmail</application> extension,
166issue the following commands:</para>
167
168<screen><userinput><command>make -C extensions/ipc install &amp;&amp;
169make -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
175libraries should be in <filename>/usr/lib</filename> so that other packages
176can 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
179do
180 mv /usr/lib/mozilla-&mozilla-version;/$i /usr/lib/
181 ln -sf ../$i /usr/lib/mozilla-&mozilla-version;/
182done</command></userinput></screen>
183
184<para>Create the required component registries to enable multi-user installs.
185These steps should be preformed by the root user each time a
186<application>Mozilla</application> add-on is installed. This will allow normal
187users to run <command>mozilla</command>. Enable multi-user operation by
188executing the following:</para>
189
190<screen><userinput><command>cd /usr/lib/mozilla-&mozilla-version; &amp;&amp;
191export LD_LIBRARY_PATH="$PWD" &amp;&amp;
192export MOZILLA_FIVE_HOME="$PWD" &amp;&amp;
193./regxpcom &amp;&amp;
194./regchrome &amp;&amp;
195touch `find . -name *.rdf`</command></userinput></screen>
196
197<note><para>You should run <command>/usr/bin/mozilla</command> once as the
198root user (or any user with write privileges) to create some necessary
199additional files in the <filename class='directory'>/usr</filename>
200hierarchy.</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
208each of the listed options to discover what affect they have on the build.
209Feel free to add or remove options to tailor the build to your desires.
210Listed below are some common options not listed above but can be added to
211the <command>configure</command> command in order to have the described effect
212on 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
218strings from <acronym>ELF</acronym> shared objects generated during the build.
219Note that this option breaks the build on alpha.</para>
220
221<para><option>--disable-mailnews</option>: Disables the mail and news
222clients.</para>
223
224<para><option>--disable-ldap</option>: Disables <acronym>LDAP</acronym>
225support, recommended if mail is disabled.</para>
226
227<para><option>--enable-xterm-updates</option>: Displays the current command
228in the <command>xterm</command> window title during the compilation.</para>
229
230<para><option>--enable-plaintext-editor-only</option>: Disables support
231for <acronym>HTML</acronym> editing. Do not use this switch if you are
232building the mail-news component.</para>
233
234</sect2>
235
236<sect2>
237<title>Command explanations</title>
238
239<para><command>export MOZILLA_OFFICIAL="1";
240export BUILD_OFFICIAL="1"</command>: Set some variables that affect what and
241how the package is built. These two exports specify a distribution is being
242built.</para>
243
244<para><parameter>--with-default-mozilla-five-home=/usr/lib/mozilla</parameter>:
245Sets the default value for <envar>MOZILLA_FIVE_HOME</envar>.</para>
246
247<para><parameter>--with-system-zlib --with-system-png </parameter>: Use the
248system-installed versions of these packages.</para>
249
250<para><parameter>--enable-application=suite</parameter>: Identifies the build
251as 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
257extensions. If you want, you can disable any or all extensions other than the
258browser by changing this switch to
259<parameter>--enable-extensions="default,-venkman,-inspector,..."</parameter>.
260For a short description of the various extensions available with the
261<application>Mozilla</application> source, see
262<ulink
263url="http://linuxfromscratch.org/~tushar/downloads/mozilla-extensions.txt"/>.
264</para>
265
266<para><parameter>--enable-crypto</parameter>: Enable the Personal
267Security Manager to enable <acronym>SSL</acronym> connections.</para>
268
269<para><parameter>--enable-calendar</parameter>: Builds the calendar
270application. Removed this parameter if you don't wish to build it.</para>
271
272<para><parameter>--enable-xft; --disable-freetype2</parameter>: Enable Xft
273support which automatically pulls in the <application>FreeType</application>
274libraries.</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
280are built and some optimization options. You can pick and choose from these
281options. More information on them, and many other available options, can be
282found by running <command>./configure --help</command>.</para>
283
284<para><command>install -d /usr/include/mozilla-&mozilla-version;/nss;
285cp -Lf ...</command>: Copy the <acronym>NSS</acronym> interface headers that
286are not copied by <command>make install</command>.</para>
287
288<para><command>if [ -d /usr/lib/mozilla/plugins ] ... fi</command>: Some
289applications may have already installed <application>Mozilla</application>
290plugins. This set of commands move any existing plugins to the newly created
291plugin 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
296specific directories. These commands makes symbolic links so that applications
297depending on <application>Mozilla</application> (such as
298<application>OpenOffice</application>, <application>Galeon</application>,
299etc.) don't need to know which version of <application>Mozilla</application>
300is 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,
310then 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
314open 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
319to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc
320Project</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>
329libraries and plugins. The various components such as the Composer,
330mail-news client, calendar, <acronym>IRC</acronym> chat client and
331address book can be accessed from the menu after <command>mozilla</command>
332starts or via command-line switches to the <command>mozilla</command> script.
333Issue <command>man mozilla</command> for additional information.</para>
334
335</sect2>
336
337</sect1>
Note: See TracBrowser for help on using the repository browser.