[f939f05] | 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 |
|
---|
[d1981e0] | 7 | <!ENTITY mozilla-download-http "http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla&mozilla-version;/src/mozilla-source-&mozilla-version;.tar.bz2">
|
---|
[f939f05] | 8 | <!ENTITY mozilla-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla&mozilla-version;/src/mozilla-source-&mozilla-version;.tar.bz2">
|
---|
[d1981e0] | 9 | <!ENTITY mozilla-md5sum "15cb68da1d58f055f871b77ff655df77">
|
---|
| 10 | <!ENTITY mozilla-size "29 MB">
|
---|
| 11 | <!ENTITY mozilla-buildsize "619 MB">
|
---|
| 12 | <!ENTITY mozilla-time "13.46 SBU">
|
---|
[f939f05] | 13 |
|
---|
[d1981e0] | 14 | <!ENTITY enigmail-version "0.89.5">
|
---|
| 15 | <!ENTITY ipc-version "1.1.2">
|
---|
[f939f05] | 16 | ]>
|
---|
| 17 |
|
---|
[19234f1] | 18 | <sect1 id="mozilla" xreflabel="Mozilla-&mozilla-version;">
|
---|
[a0f03b0] | 19 | <sect1info>
|
---|
[5cd0959d] | 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
[a0f03b0] | 22 | </sect1info>
|
---|
[6a1f1202] | 23 | <?dbhtml filename="mozilla.html" ?>
|
---|
[19234f1] | 24 | <title>Mozilla-&mozilla-version;</title>
|
---|
[f45b1953] | 25 |
|
---|
[f939f05] | 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,
|
---|
[67d6349d] | 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
|
---|
[d1981e0] | 36 | suite or prefer to have separate applications for browsing and e-mail. These
|
---|
| 37 | subprojects are
|
---|
[67d6349d] | 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
|
---|
[d1981e0] | 41 | url="http://www.mozilla.org/products/thunderbird/">Mozilla Thunderbird</ulink>,
|
---|
[67d6349d] | 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>
|
---|
[f939f05] | 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>
|
---|
[d1981e0] | 57 | <listitem><para>Download MD5 sum: &mozilla-md5sum;</para></listitem>
|
---|
[f939f05] | 58 | <listitem><para>Download size: &mozilla-size;</para></listitem>
|
---|
[d1981e0] | 59 | <listitem><para>Estimated disk space required:
|
---|
[f939f05] | 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>
|
---|
[d1981e0] | 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
|
---|
[67d6349d] | 71 | <application>GnuPG</application> package.</para>
|
---|
| 72 |
|
---|
[f939f05] | 73 | <itemizedlist spacing='compact'>
|
---|
[d1981e0] | 74 | <listitem><para><ulink
|
---|
[67d6349d] | 75 | url="http://downloads.mozdev.org/enigmail/src/enigmail-&enigmail-version;.tar.gz"/>
|
---|
| 76 | </para></listitem>
|
---|
[d1981e0] | 77 | <listitem><para><ulink
|
---|
[f939f05] | 78 | url="http://downloads.mozdev.org/enigmail/src/ipc-&ipc-version;.tar.gz"/>
|
---|
| 79 | </para></listitem>
|
---|
| 80 | </itemizedlist>
|
---|
| 81 | </sect3>
|
---|
| 82 |
|
---|
[67d6349d] | 83 | <sect3><title><application>Mozilla</application> dependencies</title>
|
---|
| 84 | <sect4><title>Required</title>
|
---|
[faa80ab] | 85 | <para><xref linkend="zip"/>,
|
---|
[a8eba10] | 86 | <xref linkend="gtk2"/>,
|
---|
[d1981e0] | 87 | <xref linkend="libIDL"/></para>
|
---|
[faa80ab] | 88 | </sect4>
|
---|
| 89 |
|
---|
[67d6349d] | 90 | <sect4><title>Recommended</title>
|
---|
[d1981e0] | 91 | <para><xref linkend="gnupg"/> (for the Enigmail extension)</para>
|
---|
[faa80ab] | 92 | </sect4>
|
---|
| 93 |
|
---|
[ace3ef8] | 94 | <sect4><title>Optional</title>
|
---|
[d1981e0] | 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),
|
---|
[2ce558b1] | 101 | <xref linkend="doxygen-package"/>,
|
---|
[d1981e0] | 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>
|
---|
[faa80ab] | 105 | </sect4>
|
---|
[67d6349d] | 106 | </sect3>
|
---|
| 107 |
|
---|
[f939f05] | 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 \
|
---|
[d1981e0] | 120 | --with-system-zlib \
|
---|
| 121 | --with-system-png \
|
---|
| 122 | --enable-application=suite \
|
---|
[f939f05] | 123 | --enable-default-toolkit=gtk2 \
|
---|
[d1981e0] | 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 \
|
---|
[f939f05] | 134 | --disable-accessibility \
|
---|
[d1981e0] | 135 | --disable-debug \
|
---|
| 136 | --disable-tests \
|
---|
| 137 | --disable-logging \
|
---|
| 138 | --disable-pedantic \
|
---|
| 139 | --disable-installer &&
|
---|
[f939f05] | 140 | make</command></userinput></screen>
|
---|
| 141 |
|
---|
[67d6349d] | 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>
|
---|
[f939f05] | 145 |
|
---|
[67d6349d] | 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 &&
|
---|
[f939f05] | 149 | make -C extensions/ipc &&
|
---|
[d1981e0] | 150 | make -C extensions/enigmail</command></userinput></screen>
|
---|
[f939f05] | 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 &&
|
---|
[d1981e0] | 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 &&
|
---|
[f939f05] | 163 | ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla</command></userinput></screen>
|
---|
| 164 |
|
---|
[d1981e0] | 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>
|
---|
[f939f05] | 177 |
|
---|
[5d34b74] | 178 | <screen><userinput><command>for i in \
|
---|
| 179 | lib{nspr4,plc4,plds4,nss3,smime3,softokn3,ssl3}.so libsoftokn3.chk
|
---|
[f939f05] | 180 | do
|
---|
| 181 | mv /usr/lib/mozilla-&mozilla-version;/$i /usr/lib/
|
---|
| 182 | ln -sf ../$i /usr/lib/mozilla-&mozilla-version;/
|
---|
| 183 | done</command></userinput></screen>
|
---|
| 184 |
|
---|
[d1981e0] | 185 | <para>Create the required component registries to enable multi-user installs.
|
---|
| 186 | These steps should be preformed by the root user each time a
|
---|
| 187 | <application>Mozilla</application> add-on is installed. This will allow normal
|
---|
| 188 | users to run <command>mozilla</command>. Enable multi-user operation by
|
---|
| 189 | executing the following:</para>
|
---|
[f939f05] | 190 |
|
---|
| 191 | <screen><userinput><command>cd /usr/lib/mozilla-&mozilla-version; &&
|
---|
[d1981e0] | 192 | export LD_LIBRARY_PATH="$PWD" &&
|
---|
| 193 | export MOZILLA_FIVE_HOME="$PWD" &&
|
---|
[f939f05] | 194 | ./regxpcom &&
|
---|
| 195 | ./regchrome &&
|
---|
[d1981e0] | 196 | touch `find . -name *.rdf`</command></userinput></screen>
|
---|
| 197 |
|
---|
| 198 | <note><para>You should run <command>/usr/bin/mozilla</command> once as the
|
---|
| 199 | root user (or any user with write privileges) to create some necessary
|
---|
| 200 | additional files in the <filename class='directory'>/usr</filename>
|
---|
| 201 | hierarchy.</para></note>
|
---|
[f939f05] | 202 |
|
---|
| 203 | </sect2>
|
---|
| 204 |
|
---|
| 205 | <sect2>
|
---|
| 206 | <title>Optional Extra Switches</title>
|
---|
| 207 |
|
---|
[d1981e0] | 208 | <para>You may wish to run <command>./configure --help</command> and review
|
---|
| 209 | each of the listed options to discover what affect they have on the build.
|
---|
| 210 | Feel free to add or remove options to tailor the build to your desires.
|
---|
| 211 | Listed below are some common options not listed above but can be added to
|
---|
| 212 | the <command>configure</command> command in order to have the described effect
|
---|
| 213 | on the <application>Mozilla</application> compile.</para>
|
---|
[f939f05] | 214 |
|
---|
[d1981e0] | 215 | <para><option>--with-system-jpeg</option>: Uses the system-installed copy of
|
---|
| 216 | <application>libjpeg</application> instead of the bundled copy.</para>
|
---|
| 217 |
|
---|
| 218 | <para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
|
---|
[f939f05] | 219 | strings from <acronym>ELF</acronym> shared objects generated during the build.
|
---|
| 220 | Note that this option breaks the build on alpha.</para>
|
---|
| 221 |
|
---|
[d1981e0] | 222 | <para><option>--disable-mailnews</option>: Disables the mail and news
|
---|
[f939f05] | 223 | clients.</para>
|
---|
| 224 |
|
---|
[d1981e0] | 225 | <para><option>--disable-ldap</option>: Disables <acronym>LDAP</acronym>
|
---|
[f939f05] | 226 | support, recommended if mail is disabled.</para>
|
---|
| 227 |
|
---|
[d1981e0] | 228 | <para><option>--enable-xterm-updates</option>: Displays the current command
|
---|
| 229 | in the <command>xterm</command> window title during the compilation.</para>
|
---|
[f939f05] | 230 |
|
---|
[d1981e0] | 231 | <para><option>--enable-plaintext-editor-only</option>: Disables support
|
---|
[67d6349d] | 232 | for <acronym>HTML</acronym> editing. Do not use this switch if you are
|
---|
| 233 | building the mail-news component.</para>
|
---|
[f939f05] | 234 |
|
---|
| 235 | </sect2>
|
---|
| 236 |
|
---|
| 237 | <sect2>
|
---|
| 238 | <title>Command explanations</title>
|
---|
| 239 |
|
---|
[d1981e0] | 240 | <para><command>export MOZILLA_OFFICIAL="1";
|
---|
| 241 | export BUILD_OFFICIAL="1"</command>: Set some variables that affect what and
|
---|
| 242 | how the package is built. These two exports specify a distribution is being
|
---|
| 243 | built.</para>
|
---|
[f939f05] | 244 |
|
---|
[d1981e0] | 245 | <para><parameter>--with-default-mozilla-five-home=/usr/lib/mozilla</parameter>:
|
---|
| 246 | Sets the default value for <envar>MOZILLA_FIVE_HOME</envar>.</para>
|
---|
[f939f05] | 247 |
|
---|
[d1981e0] | 248 | <para><parameter>--with-system-zlib --with-system-png </parameter>: Use the
|
---|
| 249 | system-installed versions of these packages.</para>
|
---|
[f939f05] | 250 |
|
---|
[d1981e0] | 251 | <para><parameter>--enable-application=suite</parameter>: Identifies the build
|
---|
| 252 | as a <application>Mozilla</application> suite build.</para>
|
---|
[f939f05] | 253 |
|
---|
[d1981e0] | 254 | <para><parameter>--enable-default-toolkit=gtk2</parameter>: Use the
|
---|
| 255 | <acronym>GTK</acronym>2 toolkit for graphics rendering.</para>
|
---|
[f939f05] | 256 |
|
---|
[d1981e0] | 257 | <para><parameter>--enable-extensions=all</parameter>: Enables all available
|
---|
| 258 | extensions. If you want, you can disable any or all extensions other than the
|
---|
| 259 | browser by changing this switch to
|
---|
| 260 | <parameter>--enable-extensions="default,-venkman,-inspector,..."</parameter>.
|
---|
[67d6349d] | 261 | For a short description of the various extensions available with the
|
---|
| 262 | <application>Mozilla</application> source, see
|
---|
| 263 | <ulink
|
---|
| 264 | url="http://linuxfromscratch.org/~tushar/downloads/mozilla-extensions.txt"/>.
|
---|
| 265 | </para>
|
---|
[f939f05] | 266 |
|
---|
[d1981e0] | 267 | <para><parameter>--enable-crypto</parameter>: Enable the Personal
|
---|
| 268 | Security Manager to enable <acronym>SSL</acronym> connections.</para>
|
---|
[f939f05] | 269 |
|
---|
[d1981e0] | 270 | <para><parameter>--enable-calendar</parameter>: Builds the calendar
|
---|
| 271 | application. Removed this parameter if you don't wish to build it.</para>
|
---|
| 272 |
|
---|
| 273 | <para><parameter>--enable-xft; --disable-freetype2</parameter>: Enable Xft
|
---|
| 274 | support which automatically pulls in the <application>FreeType</application>
|
---|
| 275 | libraries.</para>
|
---|
| 276 |
|
---|
| 277 | <para><parameter>--enable-xinerama; --enable-optimize; --enable-reorder;
|
---|
| 278 | --enable-strip; --enable-cpp-rtti --disable-accessibility; --disable-debug;
|
---|
| 279 | --disable-tests; --disable-logging; --disable-pedantic;
|
---|
| 280 | --disable-installer</parameter>: Various options that affect what components
|
---|
| 281 | are built and some optimization options. You can pick and choose from these
|
---|
| 282 | options. More information on them, and many other available options, can be
|
---|
| 283 | found by running <command>./configure --help</command>.</para>
|
---|
| 284 |
|
---|
| 285 | <para><command>install -d /usr/include/mozilla-&mozilla-version;/nss;
|
---|
| 286 | cp -Lf ...</command>: Copy the <acronym>NSS</acronym> interface headers that
|
---|
| 287 | are not copied by <command>make install</command>.</para>
|
---|
| 288 |
|
---|
| 289 | <para><command>if [ -d /usr/lib/mozilla/plugins ] ... fi</command>: Some
|
---|
| 290 | applications may have already installed <application>Mozilla</application>
|
---|
| 291 | plugins. This set of commands move any existing plugins to the newly created
|
---|
| 292 | plugin directory, then removes the existing
|
---|
| 293 | <filename class='directory'>/usr/lib/mozilla</filename> directory.</para>
|
---|
| 294 |
|
---|
| 295 | <para><command>ln -nsf mozilla-&mozilla-version; ...</command>:
|
---|
[f939f05] | 296 | <application>Mozilla</application> installs headers and libraries in version
|
---|
[d1981e0] | 297 | specific directories. These commands makes symbolic links so that applications
|
---|
[67d6349d] | 298 | depending on <application>Mozilla</application> (such as
|
---|
| 299 | <application>OpenOffice</application>, <application>Galeon</application>,
|
---|
| 300 | etc.) don't need to know which version of <application>Mozilla</application>
|
---|
| 301 | is installed.</para>
|
---|
[f939f05] | 302 |
|
---|
| 303 | </sect2>
|
---|
| 304 |
|
---|
| 305 | <sect2>
|
---|
| 306 | <title>Configuring <application>Mozilla</application></title>
|
---|
| 307 |
|
---|
[67d6349d] | 308 | <para>No specific configuration is required as long as the
|
---|
[d1981e0] | 309 | <command>mozilla</command> script is in the user's path. If
|
---|
[67d6349d] | 310 | <application>Mozilla</application> is installed in a non-standard location,
|
---|
[d1981e0] | 311 | then make a symlink to the <command>mozilla</command> script from
|
---|
| 312 | <filename class="directory">/usr/bin</filename>.</para>
|
---|
[f939f05] | 313 |
|
---|
| 314 | <para>Many applications look for <command>netscape</command> when they need to
|
---|
| 315 | open a browser. You may make the following symlink for convenience.</para>
|
---|
| 316 |
|
---|
| 317 | <screen><userinput><command>ln -sf mozilla /usr/bin/netscape</command></userinput></screen>
|
---|
| 318 |
|
---|
| 319 | <para>For installing various <application>Mozilla</application> plugins, refer
|
---|
[67d6349d] | 320 | to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc
|
---|
[ace3ef8] | 321 | Project</ulink>.</para>
|
---|
[f939f05] | 322 |
|
---|
| 323 | </sect2>
|
---|
| 324 |
|
---|
| 325 | <sect2>
|
---|
| 326 | <title>Contents</title>
|
---|
| 327 |
|
---|
[d1981e0] | 328 | <para>The <application>Mozilla</application> package contains
|
---|
[67d6349d] | 329 | <command>mozilla</command> and the <application>Mozilla</application>
|
---|
[d1981e0] | 330 | libraries and plugins. The various components such as the Composer,
|
---|
| 331 | mail-news client, calendar, <acronym>IRC</acronym> chat client and
|
---|
| 332 | address book can be accessed from the menu after <command>mozilla</command>
|
---|
| 333 | starts or via command-line switches to the <command>mozilla</command> script.
|
---|
| 334 | Issue <command>man mozilla</command> for additional information.</para>
|
---|
[f939f05] | 335 |
|
---|
| 336 | </sect2>
|
---|
[f45b1953] | 337 |
|
---|
| 338 | </sect1>
|
---|