Introduction to OpenOffice

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

Package Information

Additional Downloads

OpenOffice Dependencies


Apache Ant-1.6.5, GTK+-2.8.20, libIDL-0.8.7, libxml2-2.6.26, Perl Modules XML::Parser-2.34 and Archive::Zip-1.16, Tcsh-6.14.00, UnZip-5.52, which-2.16, and Zip-2.32



ALTLinuxhyph, boost, CUPS-1.2.7, cURL-7.15.3, desktop-file-utils-0.11, EPM, Evolution-2.6.3, GNOME Virtual File System-2.14.2, GPC, KDE, libjpeg-6b, libsndfile, LibTIFF-3.8.2, libwpd, Linux-PAM-, SeaMonkey-1.1 (must be built against the system NSS-3.11.3) or Firefox- (with ldap support), MySpell, MyThes, NAS-1.7, neon, OpenLDAP-2.3.27, PortAudio, Python-2.4.4, Sablotron, SANE-1.0.17, startup-notification-0.8, STLPort, and unixODBC-2.2.11

User Notes:

Installation of OpenOffice

Apply all of the downloaded patches:

for PATCH in ../OOo_2.0.3-*.patch
    do patch -Np1 -i ${PATCH}

If you wish to build an in-tree Mozilla, as opposed to using a system wide installation, copy the Mozilla source tarball into the source tree:

cp ../mozilla-source-1.7.5.tar.gz moz/download/

If you want to optimize the build, edit the appropriate makefile in solenv/inc/ and add the desired optimization flags to the CFLAGSOPT variable. The makefiles are arch specific, for instance edit solenv/inc/ for i686. 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 several of the makefiles:

sed -i '/^ARCH_FLAGS\*=/d' solenv/inc/unx{lngi{4,5,6},fbsdi}.mk

Configure OpenOffice using the following commands:



Because of the complexity of the OpenOffice build system, it is not possible to provide generic build instructions for all systems. You should review the output of config_office/configure --help and take advantage of any system installed programs and libraries available using the --enable, --disable, and --with-system-* parameters.



Do not use the --with-system-db or --disable-odk switches. Both are known to cause build failures.

cd config_office/ &&
autoreconf &&
./configure --prefix=/opt/openoffice-2.0.3 \
    --enable-libart --disable-fontooo --disable-gnome-vfs \
    --without-fonts --with-system-stdlibs --with-system-freetype \
    --with-system-expat --with-system-libxml --with-system-zlib \
    --enable-build-mozilla --with-build-version=BLFS \
    --with-package-format=native --disable-binfilter &&
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 &&

Compile OpenOffice using the following commands:

./bootstrap &&
. &&

This package does not come with a test suite.

Install OpenOffice as the root user with the following commands:

cd instsetoo_native/\
native/install/en-US/linux-2.6-intel/buildroot/opt &&
cp -r -v openoffice.org2.0 /opt/openoffice-2.0.3

Still as the root user:

for appl in sbase scalc sdraw simpress smath soffice spadmin swriter
    ln -v -sf /opt/openoffice-2.0.3/program/$appl /usr/bin/$appl

The icons are not installed by default. While still the root user, install the icons with the following commands:

cd ../../../../../../../../../sysui/desktop/icons &&
install -v -d /usr/share/icons/{HighContrast,hicolor,locolor} -m755 &&
cp -r -v HighContrast/*x* /usr/share/icons/HighContrast &&
cp -r -v hicolor/*x* /usr/share/icons/hicolor &&
cp -r -v locolor/*x* /usr/share/icons/locolor

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

install -v -d /usr/share/applications -m 755 &&
cd /opt/openoffice-2.0.3/share/xdg/ &&
for appl in *.desktop
    sed -i '/Exec/d' $appl
    echo "Exec=/usr/bin/s`echo $appl | sed 's/.desktop//'`" >> $appl
    sed -i '/Icon/d' $appl
    echo "Icon=`echo $appl | sed 's/.desktop//'`" >> $appl
done &&
sed -i 's@bin/sprinteradmin@bin/spadmin@' printeradmin.desktop &&
cp -v *.desktop /usr/share/applications

Finally, if you'd like to edit OpenOffice documents directly from Mozilla or Firefox, create a symbolic link in your plugins directory to /opt/openoffice-2.0.3/program/ Additionally, you must enable the plugin from the Internet Options within any OpenOffice application.

Command Explanations

--enable-libart: This switch forces the use of libart instead of gpc for polygon clipping.

--enable-libsn: This switch enables the use of startup-notification.

--disable-fontooo: Use Fontconfig instead of FontOOo.

--disable-gnome-vfs: Disable the use of Gnome Virtual File System libraries. Omit this switch if you have Gnome installed.

--without-fonts: Do not install Bitstream Vera fonts since they are already included in X Window System Environment.

--with-system-*: Use the system libraries and programs instead of building the source packages included in the build tree.

--enable-build-mozilla: Build the in-tree Mozilla suite.

--with-build-version=BLFS: Appends "BLFS" to the end of the version string.

--with-package-format=native: This switch disables the build of RPM packages.

--disable-binfilter: This switch disables the build of legacy StarOffice-5 import filters.

--with-firefox: Enables the use of Firefox in place of the full Mozilla suite. This will disable the use of a Thunderbird address book as a data source.

--disable-cups: Disable the use of CUPS for printing.

--with-lang=<LANG>: Makes an install set for the desired language. ENUS is the default.

--with-dict=<LANG>: This switch installs dictionaries for the desired languages. ENUS is the default.

./bootstrap: Build the dmake utility required to complete the build.

dmake: Compile the package.

for appl in *.desktop...: Edit the *.desktop files for use with a standard BLFS system.


Installed Programs: scalc, sdraw, simpress, smath, soffice, spadmin, and swriter.
Installed Libraries: OpenOffice libraries
Installed Directory: /opt/openoffice-2.0.3

Short Descriptions


is a database application.


is a spreadsheet application.


is a drawing application.


is a presentation application.


is a mathematical formula editor.


opens a base window with access to all OpenOffice applications.


is the OpenOffice printer configuration utility.


is a word processing application.

Last updated on 2007-02-06 23:51:27 -0600