LibreOffice-4.0.3

Introduction to LibreOffice

LibreOffice is a full-featured office suite. It is largely compatible with Microsoft Office and is descended from OpenOffice.org.

This package is known to build and work properly using an LFS-7.3 platform.

Package Information

Additional Downloads

Additional Downloads

LibreOffice Dependencies

Required

Gperf-3.0.4, GTK+-2.24.17, Perl Modules Archive::Zip-1.30 and XML::Parser-2.41, UnZip-6.0, Wget-1.14, which-2.20 and Zip-3.0

Recommended

[Note]

Note

Most of these packages are recommended because if they're not installed, the build process will compile and install its own (often older) version.

Optional

BlueZ-4.101, Cppunit, Graphite2, GTK+-3.6.4, Hunspell, Hyphen, kdelibs-4.10.3, libwpd, libwpg, libwps, MySQL-5.6.11, MyThes, PostgreSQL-9.2.4, SANE-1.0.23 and Zenity-3.6.0

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libreoffice

Installation of LibreOffice

[Warning]

Warning

Untaring the libreoffice-4.0.3.3 tarball as root has the curious effect of changing the ownership of the parent directory to a user with numerical id 11012 and with the permissions set to allow read, write and execute for that user only! If you untared as root in your home folder you could end up unable to log in again. If you untared it in /usr you would find your user account unable to access any file in /usr.

You can avoid this unpleasantness by not untaring it as root. If you must untar it as root pass the option --no-overwrite-dir to tar. This is the default when you untar as a user but has to be passed as an option when untaring as root:

tar -xf libreoffice-4.0.3.3.tar.xz --no-overwrite-dir &&
cd libreoffice-4.0.3.3

Unpack the dictionaries and help files and create symlinks to tarballs from the source directory so they won't get downloaded again:

install -dm755 src &&

tar -xvf ../libreoffice-dictionaries-4.0.3.3.tar.xz --no-overwrite-dir --strip-components=1 &&
tar -xvf ../libreoffice-help-4.0.3.3.tar.xz --no-overwrite-dir --strip-components=1 &&

ln -sv ../../libreoffice-dictionaries-4.0.3.3.tar.xz src/ &&
ln -sv ../../libreoffice-help-4.0.3.3.tar.xz src/

If you have downloaded the translations tarball, unpack it:

tar -xvf ../libreoffice-translations-4.0.3.3.tar.xz --no-overwrite-dir --strip-components=1 &&
ln -sv ../../libreoffice-translations-4.0.3.3.tar.xz src/
[Note]

Note

During the build process, some packages will be downloaded (including the ones listed as recommended and optional dependencies) if they are not present on the system. Doing so, build time may be different for everyone.

Prepare LibreOffice for compilation by running the following commands:

sed -e "/gzip -f/d"   \
    -e "s|.1.gz|.1|g" \
    -i bin/distro-install-desktop-integration &&
sed -e "/distro-install-file-lists/d" -i Makefile.top &&
patch -Np1 -i ../libreoffice-4.0.3.3-system_boost-1.patch &&
./autogen.sh --prefix=/usr              \
             --sysconfdir=/etc          \
             --with-vendor="BLFS"       \
             --with-lang=""             \
             --with-alloc=system        \
             --without-java             \
             --disable-gconf            \
             --disable-odk              \
             --disable-postgresql-sdbc  \
             --enable-python=system     \
             --with-system-boost        \
             --with-system-cairo        \
             --with-system-curl         \
             --with-system-expat        \
             --with-system-icu          \
             --with-system-jpeg         \
             --with-system-lcms2        \
             --with-system-libpng       \
             --with-system-libxml       \
             --with-system-mesa-headers \
             --with-system-neon         \
             --with-system-nss          \
             --with-system-odbc         \
             --with-system-openldap     \
             --with-system-openssl      \
             --with-system-poppler      \
             --with-system-redland      \
             --with-system-zlib         \
             --with-parallelism=$(getconf _NPROCESSORS_ONLN)

The instructions below will only build the package without running any unit tests. If you prefer to run the unit tests, replace make build with make

Build the package:

make build

Now, as the root user:

make distro-pack-install

Command Explanations

sed -e ...: First sed prevents compression of the manual pages and the second one prevents a script that causes install to fail from running.

--with-vendor=BLFS: This switchs sets BLFS as the vendor which is mentioned when you click "About" on the toolbar.

--with-lang="en-US pt-BR": This switch sets what languages to support. en-US is always needed. To list several languages, separate them with a space. For all languages, use --with-lang=ALL

For a list of the available languages, run: ls translations/source after you have extracted the translations tarball.

--with-alloc=system: This switch tells LibreOffice to use system allocator instead of the internal one.

--without-java: This switch disables Java support in LibreOffice.

--disable-gconf: This switch disables compiling LibreOffice with the deprecated GNOME configuration system support.

--disable-odk: This switch disables installing the office development kit. Remove if you want to develop a LibreOffice based application.

--disable-postgresql-sdbc: This switch disables compiling LibreOffice with the ability to connect to a PostgreSQL database. Remove it if you would like LibreOffice to be able to connect to a PostgreSQL database. If you have installed PostgreSQL on your system and would like LibreOffice to use that rather than compile its own copy, use the --with-system-postgresql switch.

--enable-python=system: This switch tells LibreOffice to use installed Python 3 to build the translations instead of the bundled one. If you don't need to build any translations, you can use --disable-python instead.

--with-system-*: These switches prevent LibreOffice from trying to compile its own versions of these dependencies. If you've not installed some of the dependencies, remove the corresponding switches.

--with-parallelism=$(getconf _NPROCESSORS_ONLN): This switch tells LibreOffice to use all your CPUs to compile in parallel and speed up the build.

--disable-cups: Use this switch if you don't need printing support.

--disable-gstreamer-0.10: Use this switch if you've not installed gst-plugins-base-0.10.36.

--enable-gstreamer: Use this switch if you want to use gst-plugins-base-1.0.7 instead of gst-plugins-base-0.10.36 for the avmedia module.

--enable-gtk3: Use this switch if you want to build the GTK+ 3 integration module.

--enable-kde4: Use this switch if you want to build the KDE integration module.

Contents

Installed Programs: libreoffice, lobase, localc, lodraw, loffice, lofromtemplate, loimpress, lomath, loweb, lowriter, soffice and unopkg
Installed Libraries: None
Installed Directory: /usr/lib/libreoffice

Short Descriptions

lobase

is a database manager.

localc

is a spreadsheet program.

lodraw

is a vector graphics editor and diagramming tool.

loimpress

can edit and display PowerPoint presentations.

lomath

is a mathematical formula editor.

lowriter

is a word processor.

unopkg

is a tool to manage LibreOffice extensions from the command line.

Last updated on 2013-05-09 20:24:06 +0000