2002-09-13 21:06:04 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of openoffice</title>
|
|
|
|
|
2003-02-17 10:04:07 +08:00
|
|
|
<para>Note that openoffice has problems with <userinput>bison-1.875</userinput>. Downgrade to
|
|
|
|
<userinput>bison-1.75</userinput> or install bison-1.75 with an alternate
|
|
|
|
prefix (e.g. /opt/bison-1.75) and put $bison_prefix/bin as the first
|
|
|
|
entry in the PATH.</para>
|
|
|
|
|
|
|
|
<para>Apply the downloaded patches and copy gpc files.</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>mv ../gpc231/* external/gpc &&
|
|
|
|
rm -rf ../gpc231 &&
|
|
|
|
for p in ../openoffice-&openoffice-version;-*.patch
|
|
|
|
do patch -Np1 -i $p
|
|
|
|
done</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>The optimization flags need to be manually added.</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>cd solenv/inc &&
|
|
|
|
cp unxlngi3.mk unxlngi3.mk.orig &&
|
|
|
|
sed -e "s:^CFLAGSOPT=.*:CFLAGSOPT=${CFLAGS}:g" \
|
|
|
|
unxlngi3.mk.orig > unxlngi3.mk &&
|
|
|
|
cp unxlngi4.mk unxlngi4.mk.orig &&
|
|
|
|
sed -e "s:^CFLAGSOPT=.*:CFLAGSOPT=${CFLAGS}:g" \
|
|
|
|
-e "s:\-mcpu=pentiumpro::" \
|
|
|
|
unxlngi4.mk.orig > unxlngi4.mk &&
|
|
|
|
cd ../..</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Configure openoffice using the following commands. You may add additional
|
|
|
|
languages based on your preferences. If a particuar component is not available
|
|
|
|
in the language of your choice, the default will be English.</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>cd config_office/ &&
|
|
|
|
./configure --with-lang=ENUS --with-stlport4-home=/usr &&
|
2002-09-13 21:06:04 +08:00
|
|
|
cd .. &&
|
2003-02-17 10:04:07 +08:00
|
|
|
source LinuxIntelEnv.Set.sh</userinput></screen></para>
|
2002-09-13 21:06:04 +08:00
|
|
|
|
2003-02-17 10:04:07 +08:00
|
|
|
<para>Compile openoffice using the following commands. Note that when
|
|
|
|
installing, it needs a X Display. You can use Xvfb if
|
|
|
|
you are compiling on a console.</para>
|
2002-09-13 21:06:04 +08:00
|
|
|
|
2003-02-17 10:04:07 +08:00
|
|
|
<para><screen><userinput>./bootstrap &&
|
|
|
|
dmake &&
|
|
|
|
cd instsetoo/unxlngi4.pro/01/normal &&
|
|
|
|
./install --prefix=/opt &&
|
|
|
|
for appl in swriter scalc sdraw simpress smath soffice
|
|
|
|
do ln -sf /opt/openoffice/program/$appl /usr/X11R6/bin/$appl
|
|
|
|
done</userinput></screen></para>
|
2002-09-13 21:06:04 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|