[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
|
---|
[cf47a113] | 25 | sets for only specific languages based on your preferences.
|
---|
| 26 | If a particular component is not available
|
---|
| 27 | in the language of your choice, the default will be English.
|
---|
| 28 | The following option
|
---|
| 29 | compiles all available languages. BTW, if you restrict the languages, be sure to
|
---|
| 30 | add ENUS to the list, without it the build fails. Also, the build fails when
|
---|
| 31 | the environment variable <envar>LANG</envar> is
|
---|
| 32 | set, unset it before compiling.</para>
|
---|
[e3f4d3e] | 33 |
|
---|
[5342913] | 34 | <screen><userinput><command>cd config_office/ &&
|
---|
[6e405cb] | 35 | ./configure --with-lang=ALL &&
|
---|
[5342913] | 36 | cd ..</command></userinput></screen>
|
---|
[b6f200a] | 37 |
|
---|
[4922911] | 38 | <para>Compile <application>OpenOffice</application> using the following
|
---|
| 39 | commands.</para>
|
---|
| 40 |
|
---|
| 41 | <note><para>Openoffice fails to compile if the umask is set to something exotic.
|
---|
| 42 | Set umask to 022 if you normally set it to something else.</para></note>
|
---|
[b6f200a] | 43 |
|
---|
[5342913] | 44 | <screen><userinput><command>./bootstrap &&
|
---|
| 45 | bash -c "source LinuxIntelEnv.Set.sh; dmake"</command></userinput></screen>
|
---|
[90c4b57d] | 46 |
|
---|
[c2ee009c] | 47 | <para>If you have downloaded localized help content zip files, you will need
|
---|
[90c4b57d] | 48 | to unzip them to the appropriate directory as mentioned below and then recreate
|
---|
| 49 | the installation set.</para>
|
---|
| 50 |
|
---|
[f7000b3d] | 51 | <screen><userinput><command>cd solver/645/unxlngi4.pro/pck &&
|
---|
[90c4b57d] | 52 | for i in $(ls ../../../../../helpcontent_*_unix.tgz)
|
---|
| 53 | do
|
---|
| 54 | tar -xvzf $i
|
---|
| 55 | done &&
|
---|
| 56 | cd ../../../../instsetoo &&
|
---|
| 57 | rm -rf unxlngi4.pro &&
|
---|
[f7000b3d] | 58 | cd .. &&
|
---|
| 59 | bash -c "source LinuxIntelEnv.Set.sh ; dmake"</command></userinput></screen>
|
---|
[90c4b57d] | 60 |
|
---|
[5342913] | 61 | <para>Install <application>OpenOffice</application> using the following
|
---|
| 62 | commands. The following commands install the English language set. To install a localized version, replace the
|
---|
[90c4b57d] | 63 | 01 by the international telephone country code for your country. Note that when
|
---|
[5342913] | 64 | installing, it needs a <application>X</application> Display, even though there
|
---|
| 65 | is no visible <application>X</application> window. You
|
---|
[8c20276] | 66 | can use <application>Xvfb</application> if you are compiling on a console.</para>
|
---|
[90c4b57d] | 67 |
|
---|
[5342913] | 68 | <screen><userinput><command>cd instsetoo/unxlngi4.pro/01/normal &&
|
---|
[95c56b5] | 69 | cp install install.orig &&
|
---|
| 70 | sed -e "s:^oo_home=.*:oo_home=openoffice:" install.orig > install &&
|
---|
[e3f4d3e] | 71 | ./install --prefix=/opt &&
|
---|
[cfe26169] | 72 | for appl in swriter scalc sdraw simpress smath soffice spadmin
|
---|
[90c4b57d] | 73 | do ln -sf /opt/openoffice/program/$appl /usr/bin/$appl
|
---|
[5342913] | 74 | done</command></userinput></screen>
|
---|
[b6f200a] | 75 |
|
---|
| 76 | </sect2>
|
---|
| 77 |
|
---|