OpenOffice-1.1.4

Introduction to OpenOffice

OpenOffice is an office suite, the open source sibling of StarOffice.

Package Information

Additional Downloads

OpenOffice Dependencies

Required

X (XFree86-4.5.0 or X.org-6.8.2), Zip-2.31, UnZip-5.52, Tcsh-6.14.00, and which-2.16.

Recommended

JDK-1.5.0, FreeType-2.1.10, pkg-config-0.19, startup-notification-0.8, desktop-file-utils-0.10, Apache Ant-1.6.2, libart_lgpl-2.3.17, and cURL-7.14.0.

Optional

Linux-PAM-0.80 and NAS-1.7.

Installation of OpenOffice

OpenOffice does not create a directory when you extract the TAR ball. Create a build directory and extract the source with the following commands:

mkdir OOo-build &&
cd OOo-build &&
tar -zxf ../OOo_1.1.4_source.tar.gz

Apply all of the downloaded patches:

for PATCH in ../OOo_1.1.4-*.patch
    do patch -Np1 -i ${PATCH}
done

Copy the STLport TAR ball into the source tree:

cp ../STLport-4.6.2.tar.gz stlport/download/

STLport looks for the c++ headers in the wrong location. Put a temporary symlink in place to satisfy STLport:

Now, as the root user:

ln -sf /usr/include/c++/3.4.3 /usr/g++-v3

Create a temporary symlink to the JRE's motif libraries:

Again, as the root user:

ln -sf ${JAVA_HOME}/jre/lib/i?86/motif21/libmawt.so /usr/lib

If you want to optimize the build, edit solenv/inc/unxlngi4.mk and add the desired optimization flags to the CFLAGSOPT 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:

Now, as an unprivileged user:

sed -i "s:\-mcpu=pentiumpro::" \
    solenv/inc/unxlngi4.mk

Configure OpenOffice using the following commands. You may build install sets for specific languages based on your preferences. Supply a comma separated list to the --with-lang= switch. If a particular component is not available in the language of your choice, the default will be US English. If you need other languages, be sure to add ENUS to the list; otherwise the build will fail:

cd config_office/ &&
./configure --with-lang=ENUS \
    --with-dict=ENUS --without-fonts \
    --enable-libsn --with-system-zlib \
    --with-system-freetype \
    --with-system-curl --disable-fontooo \
    --enable-libart &&
cd ..

OpenOffice fails to compile if umask is set to something exotic. The build can also fail if the LANG or LC_ALL environment variables are set. Use the following commands to change your environment accordingly:

umask 0022 &&
unset LANG LC_ALL

Compile OpenOffice using the following commands:

./bootstrap &&
bash -c "source LinuxIntelEnv.Set.sh; dmake"

If you have downloaded localized help content tgz files, you will need to untar them to the appropriate directory as shown below and then recreate the installation set:

for i in ../helpcontent_*_unix.tgz
  do tar -C solver/645/unxlngi4.pro/pck -zxf $i
  done &&
rm -rf instsetoo/unxlngi4.pro &&
bash -c "source LinuxIntelEnv.Set.sh ; dmake"

Install OpenOffice using the following commands to install the US English language set. To install a localized version, replace the 01 with the international telephone country code for your country:

cd instsetoo/unxlngi4.pro/01/normal &&
sed -i "s:^oo_home=.*:oo_home=openoffice:" install

Now, as the root user:

./install --prefix=/opt &&
for appl in sagenda scalc sdraw sfax simpress slabel sletter \
    smaster smath smemo soffice spadmin svcard sweb swriter
  do ln -v -sf /opt/openoffice/program/$appl /usr/bin/$appl
  done

If you have installed desktop-file-utils-0.10 and use KDE, there is no furthur configuration necessary. If you use Gnome, you should copy the *.desktop files to /usr/share/applications with the following commands as the root use:

install -v -d /usr/share/applications -m 755 &&
cp -v /opt/openoffice/share/gnome/net/ooo645*.desktop \
    /usr/share/applications/ &&
rename -v ooo645 ooo /usr/share/applications/ooo645*.desktop

Finally, as the rootuser: remove the temporary symlinks:

rm /usr/g++-v3 &&
rm /usr/lib/libmawt.so

Command Explanations

--with-lang=ENUS: Make install set for the US English language.

--with-dict=ENUS: Install dictionaries for the US English language.

--enable-libart: Use libart instead of gpc for polygon clipping.

--enable-libsn: Use startup-notification.

--without-fonts: Do not install Bitstream Vera fonts since they are already bundled with X.

--with-system-curl: Use the system installed curl.

--disable-java: Do not build components that need java.

--without-gpc: Do not use gpc. Removes polygon clipping capability.

./bootstrap: Create packages required to bootstrap the build.

dmake: Compile the package.

sed -i "s:^oo_home=...: Remove version specific installation directory.

for appl in sagenda scalc sdraw sfax ...; do ...: Create links so that the package can be started from the command-line without changes to the existing path.

Contents

Installed Programs: sagenda, scalc, sdraw, sfax, simpress, slabel, sletter, smaster, smath, smemo, soffice, spadmin, svcard, sweb, swriter, and support utilities
Installed Libraries: OpenOffice libraries
Installed Directory: /opt/openoffice

Short Descriptions

sagenda

create an agenda template and start swriter.

scalc

spreadsheet application.

sdraw

drawing application.

sfax

create a fax template and start swriter.

simpress

presentation application.

slabel

create a label template and start swriter.

sletter

create a letter template and start swriter.

smaster

creates a new master document.

smath

mathematical formula editor.

smemo

create a memo template and start swriter.

soffice

opens a base window with access to all OpenOffice applications.

spadmin

OpenOffice Printer Configuration. You may need to run this if you are having any printing problems.

svcard

business card application.

sweb

an HTML editor.

swriter

word processing application.

Last updated on 2005-08-01 13:29:19 -0600