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.10
Archive::Zip-1.59, UnZip-6.0, Wget-1.18, 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, with the side effect of increasing build
and installed disk space and build time.
Apr-1.5.2, Boost-1.61.0 ,
CLucene-220.127.116.11, Cups-2.2.0, cURL-7.50.3, dbus-glib-0.108, libjpeg-turbo-1.5.1, GLU-9.0.0, Graphite2-1.3.8, gst-plugins-base-1.8.3, GTK+-3.22.0
and GTK+-2.24.31 (see “Command Explanations”), HarfBuzz-1.3.2, ICU-57.1, libatomic_ops-7.4.4, Little
CMS-2.8, librsvg-2.40.16, libxml2-2.9.4
and libxslt-1.1.29, Mesa-12.0.3, neon-0.30.1, NSS-3.27, OpenLDAP-2.4.44 (if connecting to an LDAP
server), OpenSSL-1.0.2j or GnuTLS-3.5.4,
Poppler-0.47.0, PostgreSQL-9.5.4, Python-3.5.2,
Redland-1.0.17, Serf-1.3.9, and
BlueZ-5.42, DConf-0.26.0, desktop-file-utils-0.23, Doxygen-1.8.12 (not relevant if using
--disable-odk), GDB-7.11.1, MariaDB-10.1.17 or MySQL, MIT
Kerberos V5-1.14.4, NASM-2.12.02, OpenJDK-18.104.22.168, SANE-1.0.25, Valgrind-3.11.0, VLC-2.2.4, Apache Commons
Codec, Apache Commons
HttpClient, Apache Commons
Lang, Apache Commons
Logging, BeanShell, CoinMP, Cppunit,
(OpenGL Extension Wrangler Library), glyphy, Gnome
(WordPerfect Document importer), libvisio,
lp_solve, mdds, MyThes,
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-22.214.171.124.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-126.96.36.199.tar.xz external/tarballs/ &&
ln -sv ../../../libreoffice-help-188.8.131.52.tar.xz external/tarballs/
If you have downloaded the translations tarball, create a symlink:
ln -sv ../../../libreoffice-translations-184.108.40.206.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 &&
./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
with make build or
(as a regular user only) just make, but do not be surprised if
a unit test fails right at the end of the build and breaks it.
Build the package:
Now, as the
If installed in
/opt/libreoffice-220.127.116.11 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 &&
mkdir -vp /usr/share/pixmaps
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.23, and you wish
to update the MIME database, issue, as the
The suite and main modules can be started from the menu. From a
terminal, the suite can be started with libreoffice command and the
modules with libreoffice --
command, respectively, where
<module> is one of base,
calc, draw, impress, math or writer. Modules cannot be started
using their shell starting script names (see "Installed Programs",
below), if LO_PREFIX is other than
$LO_PREFIX/bin directory is appended to the PATH.
sed -e ...: The first
sed prevents compression of the manual pages and the second one
prevents install from failing.
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.
switch enables/disables use of system boost, so bundled one may be
or not used, because currently, depending on the user decision, or
if the build is broken with latest Boost in BLFS, which frequently occurs and
there is a delay until either a fix is found or it is fixed
switch disables compiling LibreOffice with the GNOME DConf configuration system support.
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
LibreOffice. Remove this option if
Java is installed and needed. Most
users will not need Java in this
--disable-odk: This switch
disables installing the office development kit. Remove if you want
to develop a LibreOffice based
The bundled version of Firebird does not build properly with GCC-6.
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
This switch tells LibreOffice to
use <count> CPU cores to compile in parallel. (Do not include
literal angle brackets.) The default is $(getconf
_NPROCESSORS_ONLN) which uses all availalble cores on the system.
--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.
--disable-gstreamer-1-0: Use this
switch if you have not installed gst-plugins-base-1.8.3.
--disable-gtk3: Use this switch if you
have not installed GTK+-3, or if
you have installed it but wish to use GTK+-2 (the menu icons differ). Note that a
GTK+-3 build still requires
GTK+-2 to build the gtk-plugin.
--disable-postgresql-sdbc: This switch
disables compiling LibreOffice
with the ability to connect to a PostgreSQL database. Use it if you have not
installed PostgreSQL and you do
not want LibreOffice to compile
its bundled copy.
--without-fonts: LibreOffice includes a number of third-party
TrueType fonts. If you have already installed some or all of the
same fonts, you may prefer to use the system versions.
libreoffice, lobase, localc, lodraw,
loffice, lofromtemplate, loimpress, lomath, loweb, lowriter,
soffice and unopkg; several programs under
several libraries under
is the main libreofice suite (symlink to
is the database manager module shell starting script.
is the spreadsheet module shell starting script.
is the vector graphics editor and diagramming tool module
shell starting script.
is the (PowerPoint) presentations editor and displayer
module shell starting script.
is the mathematical formula editor module shell starting
is the HTML editor module shell starting script.
is the word processor module shell starting script.
is a tool to manage LibreOffice extensions from the
Last updated on 2016-09-14 14:57:11 -0500