source: xsoft/graphweb/mozilla.xml@ f3ebc751

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 f3ebc751 was f3ebc751, checked in by Randy McMurchy <randy@…>, 19 years ago

Updates to cairo dependency references

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

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