source: xsoft/graphweb/mozilla/mozilla-inst.xml@ cf47a113

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk v5_1 v5_1-pre1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since cf47a113 was cf47a113, checked in by Tushar Teredesai <tushar@…>, 18 years ago

Nmap, Imagemagick, TCL, TK updates and Mozilla, OO nitpicks

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

  • Property mode set to 100644
File size: 5.9 KB
Line 
1<sect2>
2<title>Installation of <application>Mozilla</application></title>
3
4<note>
5<para>According to the financial institutions, the following hack makes your
6browser insecure. You have been warned. Many sites use an MS-IE specific tag
7(autocomplete=off) to prevent autocomplete from working in some forms. This
8tag is now supported in <application>Mozilla</application> to appease the financial institutions. As per
9the requirements of the financial institutions, they will not even accept a
10solution where this a preference option. However our opinion is that it should
11be in the hands of the user. To enable autocomplete to bypass
12this restriction, we need to make a slight modification in the code.</para>
13
14<para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
15the <application>Mozilla</application> source tree and search for the line:
16<screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
17Then delete or comment out the line. Now, if anyone tells you MS-IE is user
18friendly, give them this example!</para>
19</note>
20
21<para>If you plan to install Enigmail, extract the ipc and enigmail tarballs
22in the <filename class="directory">extensions</filename> directory.</para>
23
24<para>Compile <application>Mozilla</application> by running the following
25commands:</para>
26
27<screen><userinput><command>export MOZILLA_OFFICIAL="1" &amp;&amp;
28export BUILD_OFFICIAL="1" &amp;&amp;
29./configure --prefix=/usr \
30 --with-default-mozilla-five-home=/usr/lib/mozilla \
31 --enable-default-toolkit=gtk2 \
32 --with-x --with-system-zlib \
33 --with-system-jpeg --with-system-png --with-system-mng \
34 --enable-xft --enable-crypto \
35 --disable-accessibility \
36 --disable-tests --disable-debug \
37 --disable-logging --enable-reorder \
38 --enable-strip --disable-pedantic \
39 --enable-cpp-rtti --enable-extensions=all &amp;&amp;
40make</command></userinput></screen>
41
42<para>If installing Enigmail, execute the following steps:</para>
43
44<screen><userinput><command>cd extensions/ipc &amp;&amp;
45./makemake -r &amp;&amp;
46make &amp;&amp;
47cd ../enigmail &amp;&amp;
48./makemake -r &amp;&amp;
49make &amp;&amp;
50cd ../..</command></userinput></screen>
51
52<para>Install <application>Mozilla</application> as follows:</para>
53
54<screen><userinput><command>make install &amp;&amp;
55install -d /usr/include/mozilla-&mozilla-version;/nss &amp;&amp;
56cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
57 /usr/include/mozilla-&mozilla-version;/nss &amp;&amp;
58ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &amp;&amp;
59ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla</command></userinput></screen>
60
61<para>Install Enigmail as follows:</para>
62
63<screen><userinput><command>for i in components/enigmime.xpt \
64components/ipc.xpt components/libenigmime.so components/enigmail.js \
65components/enigmail.xpt chrome/enigmail.jar
66do
67 install dist/bin/$i /usr/lib/mozilla-&mozilla-version;/$i
68done</command></userinput></screen>
69
70<para>To enable multi-user operation, execute the following:</para>
71
72<screen><userinput><command>cd /usr/lib/mozilla-&mozilla-version; &amp;&amp;
73export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
74export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
75./regxpcom &amp;&amp;
76./regchrome &amp;&amp;
77touch `find /usr/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
78
79</sect2>
80
81<sect2>
82<title>Optional Extra Switches</title>
83
84<para>Each of these switches can be added to the configure line in order to
85have the described effect on the <application>Mozilla</application> compile.</para>
86
87<para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
88strings from <acronym>ELF</acronym> shared objects generated during the build.
89Note that this option breaks build on alpha.</para>
90
91<para><option>--disable-mailnews</option>: Disable the mail and news
92clients.</para>
93
94<para><option>--disable-ldap</option>: Disable <acronym>LDAP</acronym>
95Support, recommended if mail is disabled.</para>
96
97<para><option>--enable-calendar</option>: Build the calendar client.</para>
98
99<para><option>--enable-xterm-updates</option>: This option is
100for enabling the <command>xterm</command> title with the current command when
101compiling.</para>
102
103<para><option>--enable-plaintext-editor-only</option>: Disable support
104for <acronym>HTML</acronym> editing. Do not use this switch if you are building
105the mail-news component.</para>
106
107</sect2>
108
109<sect2>
110<title>Additional build notes for <application>Mozilla Firebird</application> &firebird-version;</title>
111
112<para>Add the following env variable (The variable is named Phoenix since
113that was the original name for the <application>Mozilla
114Firebird</application> project):</para>
115
116<screen><userinput><command>export MOZ_PHOENIX="1"</command></userinput></screen>
117
118<para>Make sure that the following switches are passed to
119<command>./configure</command>: <option>--disable-calendar</option> and
120<option>--disable-mailnews</option>.</para>
121
122<para>We recommend installing in a separate prefix
123such as <parameter>--prefix=/opt/firebird-&firebird-version;</parameter>
124to prevent clashes with
125an installed <application>Mozilla</application>.</para>
126
127<para>The <application>Mozilla Firebird</application> executable is
128<command>MozillaFirebird</command>.</para>
129
130</sect2>
131
132<sect2>
133<title>Additional build notes for <application>Mozilla Thunderbird</application> &thunderbird-version;</title>
134
135<para>Add the following env variable:</para>
136
137<screen><userinput><command>export MOZ_THUNDERBIRD="1"</command></userinput></screen>
138
139<para>Make sure that the following switches is passed to
140<command>./configure</command>: <option>--disable-calendar</option>.</para>
141
142<para>We recommend installing in a separate prefix
143such as
144<parameter>--prefix=/opt/thunderbird-&thunderbird-version;</parameter>
145to prevent clashes with
146an installed <application>Mozilla</application>.</para>
147
148<para>The <application>Mozilla Thunderbird</application> executable is
149<command>thunderbird</command>.</para>
150
151</sect2>
Note: See TracBrowser for help on using the repository browser.