1 | <sect2>
|
---|
2 | <title>Installation of <application>OpenOffice</application></title>
|
---|
3 |
|
---|
4 | <para>Apply the downloaded patches and copy gpc files.</para>
|
---|
5 |
|
---|
6 | <screen><userinput><command>mv ../gpc231/* external/gpc &&
|
---|
7 | rm -rf ../gpc231 &&
|
---|
8 | for p in ../openoffice-&openoffice-version;-*.patch
|
---|
9 | do patch -Np1 -i $p
|
---|
10 | done</command></userinput></screen>
|
---|
11 |
|
---|
12 | <para>If you want to optimize the build, edit
|
---|
13 | <filename>solenv/inc/unxlngi4.mk</filename> and add the desired optimization
|
---|
14 | flags to <envar>CFLAGSOPT</envar> variable. Some users have reported problems with
|
---|
15 | -fomit-frame-pointer. The best option is to not use any custom optimizations.
|
---|
16 | The following command removes an incorrect -mcpu option in the above file.</para>
|
---|
17 |
|
---|
18 | <screen><userinput><command>cd solenv/inc &&
|
---|
19 | cp unxlngi4.mk unxlngi4.mk.orig &&
|
---|
20 | sed -e "s:\-mcpu=pentiumpro::" \
|
---|
21 | unxlngi4.mk.orig > unxlngi4.mk &&
|
---|
22 | cd ../..</command></userinput></screen>
|
---|
23 |
|
---|
24 | <para>Configure openoffice using the following commands. You may build install
|
---|
25 | sets for only specific languages based on your preferences. If a particular component is not available
|
---|
26 | in the language of your choice, the default will be English. The following option
|
---|
27 | compiles all available languages.</para>
|
---|
28 |
|
---|
29 | <screen><userinput><command>cd config_office/ &&
|
---|
30 | ./configure --with-lang=ALL &&
|
---|
31 | cd ..</command></userinput></screen>
|
---|
32 |
|
---|
33 | <para>Compile <application>OpenOffice</application> using the following
|
---|
34 | commands.</para>
|
---|
35 |
|
---|
36 | <note><para>Openoffice fails to compile if the umask is set to something exotic.
|
---|
37 | Set umask to 022 if you normally set it to something else.</para></note>
|
---|
38 |
|
---|
39 | <screen><userinput><command>./bootstrap &&
|
---|
40 | bash -c "source LinuxIntelEnv.Set.sh; dmake"</command></userinput></screen>
|
---|
41 |
|
---|
42 | <para>If you have downloaded localized help content zip files, you will need
|
---|
43 | to unzip them to the appropriate directory as mentioned below and then recreate
|
---|
44 | the installation set.</para>
|
---|
45 |
|
---|
46 | <screen><userinput><command>cd solver/645/unxlngi4.pro/pck &&
|
---|
47 | for i in $(ls ../../../../../helpcontent_*_unix.tgz)
|
---|
48 | do
|
---|
49 | tar -xvzf $i
|
---|
50 | done &&
|
---|
51 | cd ../../../../instsetoo &&
|
---|
52 | rm -rf unxlngi4.pro &&
|
---|
53 | cd .. &&
|
---|
54 | bash -c "source LinuxIntelEnv.Set.sh ; dmake"</command></userinput></screen>
|
---|
55 |
|
---|
56 | <para>Install <application>OpenOffice</application> using the following
|
---|
57 | commands. The following commands install the English language set. To install a localized version, replace the
|
---|
58 | 01 by the international telephone country code for your country. Note that when
|
---|
59 | installing, it needs a <application>X</application> Display, even though there
|
---|
60 | is no visible <application>X</application> window. You
|
---|
61 | can use <application>Xvfb</application> if you are compiling on a console.</para>
|
---|
62 |
|
---|
63 | <screen><userinput><command>cd instsetoo/unxlngi4.pro/01/normal &&
|
---|
64 | cp install install.orig &&
|
---|
65 | sed -e "s:^oo_home=.*:oo_home=openoffice:" install.orig > install &&
|
---|
66 | ./install --prefix=/opt &&
|
---|
67 | for appl in swriter scalc sdraw simpress smath soffice
|
---|
68 | do ln -sf /opt/openoffice/program/$appl /usr/bin/$appl
|
---|
69 | done</command></userinput></screen>
|
---|
70 |
|
---|
71 | </sect2>
|
---|
72 |
|
---|