Introduction to LibreOffice
LibreOffice is a full-featured
office suite. It is largely compatible with Microsoft Office and is descended from
This package is known to build and work properly using an LFS-7.7
This package is known to build and work properly using the gcc-5
Archive::Zip-1.48, UnZip-6.0, Wget-1.16.3, Which-2.21, and Zip-3.0
Most of these packages are recommended because if they're not
installed, the build process will compile and install its own
(often older) version.
Boost-1.58.0, CLucene-184.108.40.206, Cups-2.0.3, cURL-7.43.0, dbus-glib-0.104, libjpeg-turbo-1.4.1, GLU-9.0.0, Graphite2-1.2.4, gst-plugins-base-0.10.36 or
Harfbuzz-0.9.41, ICU-55.1, Little
CMS-2.7, librsvg-2.40.9, libxml2-2.9.2
and libxslt-1.1.28, MesaLib-10.6.1,
neon-0.30.1, NPAPI-SDK-0.27.2, NSS-3.19.2, OpenLDAP-2.4.40 (if connecting to an LDAP
server), OpenSSL-1.0.2c, Poppler-0.33.0, Python-3.4.3,
Redland-1.0.17, and unixODBC-2.3.2
desktop-file-utils-0.22, Doxygen-1.8.10 (not relevant if using
--disable-odk), GDB-7.9.1, GTK+-3.16.4 (see “Command Explanations”), kdelibs-4.14.9,
libatomic_ops-7.4.2, MariaDB-10.0.20 or MySQL, MIT
Kerberos V5-1.13.2, OpenJDK-220.127.116.11, PostgreSQL-9.4.4, SANE-1.0.24, VLC-2.2.1, CoinMP, Cppunit,
(OpenGL Extension Wrangler Library), hamcrest, Hunspell,
(WordPerfect Document importer), libvisio,
ogl-math - OpenGL
Mathematics (GLM), OpenCOLLADA,
VIGRA, and Zenity
There are many optional dependencies not listed here. They can be
found in “download.lst”
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libreoffice
Installation of LibreOffice
Unlike the other packages, we suppose that you have not yet
unpacked the package. This is so because the
--no-overwrite-dir switch is needed in case you
unpack as the
tar -xf libreoffice-18.104.22.168.tar.xz --no-overwrite-dir &&
Create symlinks to tarballs from the source directory so they won't
get downloaded again:
install -dm755 external/tarballs &&
ln -sv ../../../libreoffice-dictionaries-22.214.171.124.tar.xz external/tarballs/ &&
ln -sv ../../../libreoffice-help-126.96.36.199.tar.xz external/tarballs/
If you have downloaded the translations tarball, create a symlink:
ln -sv ../../../libreoffice-translations-188.8.131.52.tar.xz external/tarballs/
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. Because of
this, build time may vary from the published time more than
Due to the large size of the package, you may prefer to install it
/opt, instead of
/usr. Depending on your choice, replace
/usr or by
Locales "fr" and "en-GB", you will find below, are just examples;
you should change them to suit your needs - you might want to read
the "Command Explanations", further below, before proceeding.
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.in &&
sed -e "/ustrbuf/a #include <algorithm>" \
-i svl/source/misc/gridprinter.cxx &&
chmod -v +x bin/unpack-sources &&
./autogen.sh --prefix=$LO_PREFIX \
--with-lang="fr en-GB" \
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
Build the package :
Now, as the
make distro-pack-install &&
install -v -m755 -d $LO_PREFIX/share/appdata &&
install -v -m644 sysui/desktop/appstream-appdata/*.xml \
If installed in
/opt/libreoffice-184.108.40.206 some additional steps
are necessary. Issue the following commands, as
if [ "$LO_PREFIX" != "/usr" ]; then
# This symlink is necessary for the desktop menu entries
ln -svf $LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice &&
for i in $LO_PREFIX/share/icons/hicolor/32x32/apps/*; do
ln -svf $i /usr/share/pixmaps
# Desktop menu entries
for i in $LO_PREFIX/lib/libreoffice/share/xdg/*; do
ln -svf $i /usr/share/applications/libreoffice-$(basename $i)
# Man pages
for i in $LO_PREFIX/share/man/man1/*; do
ln -svf $i /usr/share/man/man1/
If you have installed desktop-file-utils-0.22, and you wish
to update the MIME database, issue, as the
sed -e ...: The first
sed prevents compression of the manual pages, the second one
prevents install from failing and the third one includes a missing
header without which make
chmod -v +x ...: Fix
the unpack script's permissions.
switch sets BLFS as the vendor which is mentioned when you click
"About" on the toolbar.
This switch sets what languages to support. To list several
languages, separate them with a space. For all languages, use
For a list of the available languages, look in
--with-help: Without this
switch, the help files are not built.
switch adds myspell dictionaries to the LibreOffice installation set.
switch tells LibreOffice to use
system allocator instead of the internal one.
This switch disables use of dictionaries from system paths, so the
ones installed by this package are used.
--without-java: This switch
disables Java support in
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
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
This switch enables a Release Build. LibreOffice can be built as a Release Build or
as a Developer Build, because their default installation paths and
user profile paths are different. Developer Build displays the
words "Dev" and "Beta" in several places (e.g, menu and splash
This switch tells LibreOffice to
use installed Python 3 to build
the translations instead of the bundled one.
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
_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-dbus: Use this switch if
you've not installed D-Bus-1.8.0 or later. It also disables
Bluetooth support and font install via PackageKit.
--enable-gstreamer-0-10: Use this
switch if you want to use gst-plugins-base-0.10.36 instead of
gst-plugins-base-1.4.5 for the avmedia
--disable-gstreamer-1-0: Use this
switch if you have not installed gst-plugins-base-1.4.5.
--enable-gtk3: Use this switch if you
want to build the GTK+ 3
integration module. This is experimental and may not work.
--enable-kde4: Use this switch if you
want to build the KDE integration
libreoffice, lobase, localc, lodraw,
loffice, lofromtemplate, loimpress, lomath, loweb, lowriter,
soffice and unopkg; several programs under
several libraries under
is a database manager.
is a spreadsheet program.
is a vector graphics editor and diagramming tool.
can edit and display PowerPoint presentations.
is a mathematical formula editor.
is a word processor.
is a tool to manage LibreOffice extensions from the
Last updated on 2015-05-09 10:39:53 +0000