glfs/xsoft/suites/openoffice/openoffice-inst.xml
Tushar Teredesai 6e405cb373 Updated OpenOffice and Removed STLport
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1158 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-09-22 04:58:33 +00:00

78 lines
3.0 KiB
XML

<sect2>
<title>Installation of openoffice</title>
<!--
<para>Note that openoffice has problems with
<application>bison-1.875</application>. Downgrade to
<application>bison-1.75</application> or install
<application>bison-1.875b</application> with an alternate
prefix (e.g. <filename>/opt/bison-1.75</filename>) and put <filename
class="directory">$bison_prefix/bin</filename> as the first
entry in the <envar>PATH</envar>.</para>
-->
<para>Apply the downloaded patches and copy gpc files.</para>
<para><screen><userinput>mv ../gpc231/* external/gpc &amp;&amp;
rm -rf ../gpc231 &amp;&amp;
for p in ../openoffice-&openoffice-version;-*.patch
do patch -Np1 -i $p
done</userinput></screen></para>
<para>If you want to optimize the build, edit
<filename>solenv/inc/unxlngi4.mk</filename> and add the desired optimization
flags to <envar>CFLAGSOPT</envar> variable. Some users have reported problems with
-fomit-frame-pointer. The best option is to not use any custom optimizations.
The following command removes an incorrect -mcpu option in the above file.</para>
<para><screen><userinput>cd solenv/inc &amp;&amp;
cp unxlngi4.mk unxlngi4.mk.orig &amp;&amp;
sed -e "s:\-mcpu=pentiumpro::" \
unxlngi4.mk.orig &gt; unxlngi4.mk &amp;&amp;
cd ../..</userinput></screen></para>
<para>Configure openoffice using the following commands. You may build install
sets for only specific languages based on your preferences. If a particular component is not available
in the language of your choice, the default will be English. The following option
compiles all available languages.</para>
<para><screen><userinput>cd config_office/ &amp;&amp;
./configure --with-lang=ALL &amp;&amp;
cd ..</userinput></screen></para>
<para>Compile openoffice using the following commands.</para>
<para><screen><userinput>./bootstrap &amp;&amp;
bash -c "source LinuxIntelEnv.Set.sh; dmake"</userinput></screen></para>
<para>If you have downloaded localized helpcontent zip files, you will need
to unzip them to the appropriate directory as mentioned below and then recreate
the installation set.</para>
<para><screen><userinput>cd solver/641/unxlngi4.pro/pck &amp;&amp;
for i in $(ls ../../../../../helpcontent_*_unix.tgz)
do
tar -xvzf $i
done &amp;&amp;
cd ../../../../instsetoo &amp;&amp;
rm -rf unxlngi4.pro &amp;&amp;
dmake &amp;&amp;
cd ..</userinput></screen></para>
<para>Install OpenOffice using the following commands. The following commands
install the English language set. To install a localized version, replace the
01 by the international telephone country code for your country. Note that when
installing, it needs a X Display, even though there is no visible X window. You
can use Xvfb if you are compiling on a console.</para>
<para><screen><userinput>cd instsetoo/unxlngi4.pro/01/normal &amp;&amp;
cp install install.orig &amp;&amp;
sed -e "s:^oo_home=.*:oo_home=openoffice:" install.orig > install &amp;&amp;
./install --prefix=/opt &amp;&amp;
for appl in swriter scalc sdraw simpress smath soffice
do ln -sf /opt/openoffice/program/$appl /usr/bin/$appl
done</userinput></screen></para>
</sect2>