mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-07 09:37:17 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1883 af4574ff-66df-0310-9fd7-8a98e5e911e0
117 lines
5.0 KiB
XML
117 lines
5.0 KiB
XML
<sect2>
|
|
<title>Installation of <application>Mozilla</application></title>
|
|
|
|
<!--
|
|
<note>
|
|
<para>According to the financial institutions, the following hack makes your
|
|
browser insecure. You have been warned. Many sites use an MS-IE specific tag
|
|
(autocomplete=off) to prevent autocomplete from working in some forms. This
|
|
tag is now supported in <application>Mozilla</application> to appease the financial institutions. As per
|
|
the requirements of the financial institutions, they will not even accept a
|
|
solution where this a preference option. However our opinion is that it should
|
|
be in the hands of the user. To enable autocomplete to bypass
|
|
this restriction, we need to make a slight modification in the code.</para>
|
|
|
|
<para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
|
|
the <application>Mozilla</application> source tree and search for the line:
|
|
<screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
|
|
Then delete or comment out the line. Now, if anyone tells you MS-IE is user
|
|
friendly, give them this example!</para>
|
|
</note>
|
|
-->
|
|
|
|
<warning><para>Do not install Mozilla, Mozilla Firefox and Mozilla Thunderbird
|
|
with a single prefix since they install identically named files. The BLFS Book
|
|
installs Mozilla in <filename>/usr</filename> while Mozilla Firefox and Mozilla
|
|
Thunderbird are installed in <filename>/opt</filename>.</para></warning>
|
|
|
|
<para>If you plan to install Enigmail, extract the ipc and enigmail tarballs
|
|
in the <filename class="directory">extensions</filename> directory.</para>
|
|
|
|
<para>Compile <application>Mozilla</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput><command>export MOZILLA_OFFICIAL="1" &&
|
|
export BUILD_OFFICIAL="1" &&
|
|
./configure --prefix=/usr \
|
|
--with-default-mozilla-five-home=/usr/lib/mozilla \
|
|
--enable-default-toolkit=gtk2 \
|
|
--with-x --with-system-zlib \
|
|
--with-system-jpeg --with-system-png --with-system-mng \
|
|
--enable-xft --enable-crypto \
|
|
--disable-accessibility \
|
|
--disable-tests --disable-debug \
|
|
--disable-logging --enable-reorder \
|
|
--enable-strip --disable-pedantic \
|
|
--enable-cpp-rtti --enable-extensions=all &&
|
|
make</command></userinput></screen>
|
|
|
|
<para>If installing Enigmail, execute the following steps:</para>
|
|
|
|
<screen><userinput><command>build/autoconf/make-makefile extensions/ipc extensions/enigmail &&
|
|
make -C extensions/ipc &&
|
|
make -C extensions/enigmail</command></userinput></screen>
|
|
|
|
<para>Install <application>Mozilla</application> as follows:</para>
|
|
|
|
<screen><userinput><command>make install &&
|
|
install -d /usr/include/mozilla-&mozilla-version;/nss &&
|
|
cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
|
/usr/include/mozilla-&mozilla-version;/nss &&
|
|
ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &&
|
|
ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla</command></userinput></screen>
|
|
|
|
<para>Some libraries installed by mozilla are also needed by other packages. These
|
|
libraries should be in <filename>/usr/lib</filename> so that other packages can
|
|
link against these. Move them as follows:</para>
|
|
|
|
<screen><userinput><command>for i in lib{nspr4,plc4,plds4,nss3,smime3,softokn3,ssl3}.so libsoftokn3.chk
|
|
do
|
|
mv /usr/lib/mozilla-&mozilla-version;/$i /usr/lib/
|
|
ln -sf ../$i /usr/lib/mozilla-&mozilla-version;/
|
|
done</command></userinput></screen>
|
|
|
|
<para>Install Enigmail as follows:</para>
|
|
|
|
<screen><userinput><command>make -C extensions/ipc install &&
|
|
make -C extensions/enigmail install</command></userinput></screen>
|
|
|
|
<para>To enable multi-user operation, execute the following:</para>
|
|
|
|
<screen><userinput><command>cd /usr/lib/mozilla-&mozilla-version; &&
|
|
export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &&
|
|
export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &&
|
|
./regxpcom &&
|
|
./regchrome &&
|
|
touch `find /usr/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Optional Extra Switches</title>
|
|
|
|
<para>Each of these switches can be added to the configure line in order to
|
|
have the described effect on the <application>Mozilla</application> compile.</para>
|
|
|
|
<para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
|
|
strings from <acronym>ELF</acronym> shared objects generated during the build.
|
|
Note that this option breaks build on alpha.</para>
|
|
|
|
<para><option>--disable-mailnews</option>: Disable the mail and news
|
|
clients.</para>
|
|
|
|
<para><option>--disable-ldap</option>: Disable <acronym>LDAP</acronym>
|
|
Support, recommended if mail is disabled.</para>
|
|
|
|
<para><option>--enable-calendar</option>: Build the calendar client.</para>
|
|
|
|
<para><option>--enable-xterm-updates</option>: This option is
|
|
for enabling the <command>xterm</command> title with the current command when
|
|
compiling.</para>
|
|
|
|
<para><option>--enable-plaintext-editor-only</option>: Disable support
|
|
for <acronym>HTML</acronym> editing. Do not use this switch if you are building
|
|
the mail-news component.</para>
|
|
|
|
</sect2>
|