[b6f200a] | 1 | <sect2>
|
---|
| 2 | <title>Installation of openoffice</title>
|
---|
| 3 |
|
---|
[e3f4d3e] | 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 |
|
---|
[5d7b0f95] | 17 | <para>If you want to optimize the build, edit
|
---|
| 18 | <userinput>solenv/inc/unxlngi4.mk</userinput> and add the desired optimization
|
---|
| 19 | flags to CFLAGSOPT variable. Some users have reported problems with
|
---|
| 20 | -fomit-frame-pointer. The best option is to not use any custom optimizations.
|
---|
| 21 | The following command removes an incorrect -mcpu option in the above file.</para>
|
---|
[e3f4d3e] | 22 |
|
---|
| 23 | <para><screen><userinput>cd solenv/inc &&
|
---|
| 24 | cp unxlngi4.mk unxlngi4.mk.orig &&
|
---|
[5d7b0f95] | 25 | sed -e "s:\-mcpu=pentiumpro::" \
|
---|
[e3f4d3e] | 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 &&
|
---|
[b6f200a] | 35 | cd .. &&
|
---|
[e3f4d3e] | 36 | source LinuxIntelEnv.Set.sh</userinput></screen></para>
|
---|
[b6f200a] | 37 |
|
---|
[90c4b57d] | 38 | <para>Compile openoffice using the following commands.</para>
|
---|
[b6f200a] | 39 |
|
---|
[e3f4d3e] | 40 | <para><screen><userinput>./bootstrap &&
|
---|
[90c4b57d] | 41 | dmake</userinput></screen></para>
|
---|
| 42 |
|
---|
| 43 | <para>If you have downloaded localized helpcontent zip files, you will need
|
---|
| 44 | to unzip them to the appropriate directory as mentioned below and then recreate
|
---|
| 45 | the installation set.</para>
|
---|
| 46 |
|
---|
| 47 | <para><screen><userinput>cd solver/641/unxlngi4.pro/pck &&
|
---|
| 48 | for i in $(ls ../../../../../helpcontent_*_unix.tgz)
|
---|
| 49 | do
|
---|
| 50 | tar -xvzf $i
|
---|
| 51 | done &&
|
---|
| 52 | cd ../../../../instsetoo &&
|
---|
| 53 | rm -rf unxlngi4.pro &&
|
---|
[e3f4d3e] | 54 | dmake &&
|
---|
[90c4b57d] | 55 | cd ..</userinput></screen></para>
|
---|
| 56 |
|
---|
| 57 | <para>Install OpenOffice using the following commands. The following commands
|
---|
| 58 | install the English language set. To install a localized version, replace the
|
---|
| 59 | 01 by the international telephone country code for your country. Note that when
|
---|
| 60 | installing, it needs a X Display, evn though there is no visible X window. You
|
---|
| 61 | can use Xvfb if you are compiling on a console.</para>
|
---|
| 62 |
|
---|
| 63 | <para><screen><userinput>cd instsetoo/unxlngi4.pro/01/normal &&
|
---|
[e3f4d3e] | 64 | ./install --prefix=/opt &&
|
---|
| 65 | for appl in swriter scalc sdraw simpress smath soffice
|
---|
[90c4b57d] | 66 | do ln -sf /opt/openoffice/program/$appl /usr/bin/$appl
|
---|
[e3f4d3e] | 67 | done</userinput></screen></para>
|
---|
[b6f200a] | 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|