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