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