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