1 | <sect2>
|
---|
2 | <title>Installation of openoffice</title>
|
---|
3 |
|
---|
4 | <para>Note that openoffice has problems with <userinput>bison-1.875</userinput>. Downgrade to
|
---|
5 | <userinput>bison-1.75</userinput> or install bison-1.75 with an alternate
|
---|
6 | prefix (e.g. /opt/bison-1.75) and put $bison_prefix/bin as the first
|
---|
7 | entry in the PATH.</para>
|
---|
8 |
|
---|
9 | <para>Apply the downloaded patches and copy gpc files.</para>
|
---|
10 |
|
---|
11 | <para><screen><userinput>mv ../gpc231/* external/gpc &&
|
---|
12 | rm -rf ../gpc231 &&
|
---|
13 | for p in ../openoffice-&openoffice-version;-*.patch
|
---|
14 | do patch -Np1 -i $p
|
---|
15 | done</userinput></screen></para>
|
---|
16 |
|
---|
17 | <para>The optimization flags need to be manually added.</para>
|
---|
18 |
|
---|
19 | <para><screen><userinput>cd solenv/inc &&
|
---|
20 | cp unxlngi3.mk unxlngi3.mk.orig &&
|
---|
21 | sed -e "s:^CFLAGSOPT=.*:CFLAGSOPT=${CFLAGS}:g" \
|
---|
22 | unxlngi3.mk.orig > unxlngi3.mk &&
|
---|
23 | cp unxlngi4.mk unxlngi4.mk.orig &&
|
---|
24 | sed -e "s:^CFLAGSOPT=.*:CFLAGSOPT=${CFLAGS}:g" \
|
---|
25 | -e "s:\-mcpu=pentiumpro::" \
|
---|
26 | unxlngi4.mk.orig > unxlngi4.mk &&
|
---|
27 | cd ../..</userinput></screen></para>
|
---|
28 |
|
---|
29 | <para>Configure openoffice using the following commands. You may add additional
|
---|
30 | languages based on your preferences. If a particuar component is not available
|
---|
31 | in the language of your choice, the default will be English.</para>
|
---|
32 |
|
---|
33 | <para><screen><userinput>cd config_office/ &&
|
---|
34 | ./configure --with-lang=ENUS --with-stlport4-home=/usr &&
|
---|
35 | cd .. &&
|
---|
36 | source LinuxIntelEnv.Set.sh</userinput></screen></para>
|
---|
37 |
|
---|
38 | <para>Compile openoffice using the following commands. Note that when
|
---|
39 | installing, it needs a X Display. You can use Xvfb if
|
---|
40 | you are compiling on a console.</para>
|
---|
41 |
|
---|
42 | <para><screen><userinput>./bootstrap &&
|
---|
43 | dmake &&
|
---|
44 | cd instsetoo/unxlngi4.pro/01/normal &&
|
---|
45 | ./install --prefix=/opt &&
|
---|
46 | for appl in swriter scalc sdraw simpress smath soffice
|
---|
47 | do ln -sf /opt/openoffice/program/$appl /usr/X11R6/bin/$appl
|
---|
48 | done</userinput></screen></para>
|
---|
49 |
|
---|
50 | </sect2>
|
---|
51 |
|
---|