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