source: xsoft/office/libreoffice.xml@ d613641

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d613641 was d613641, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to libreoffice-6.4.0.3.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22615 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 32.8 KB
RevLine 
[d2d3fc5]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[c20bced]7 <!ENTITY libreoffice-dl "http://download.documentfoundation.org/libreoffice/src/&libreoffice-version;">
8
9 <!ENTITY libreoffice-core-download-http "&libreoffice-dl;/libreoffice-&libreoffice-dlversion;.tar.xz">
[d613641]10 <!ENTITY libreoffice-core-md5sum "93ffa098e65dde29516ffe7212092f29">
11 <!ENTITY libreoffice-core-size "222 MB">
[c20bced]12
13 <!ENTITY libreoffice-dict-download-http "&libreoffice-dl;/libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz">
[d613641]14 <!ENTITY libreoffice-dict-md5sum "5c021d899e8987f796d93e6d69cd5a1f">
15 <!ENTITY libreoffice-dict-size "46 MB">
[c20bced]16
17 <!ENTITY libreoffice-help-download-http "&libreoffice-dl;/libreoffice-help-&libreoffice-dlversion;.tar.xz">
[d613641]18 <!ENTITY libreoffice-help-md5sum "c7cf3fdfd70e097fcc49c58887053cea">
19 <!ENTITY libreoffice-help-size "85 MB">
[c20bced]20
21 <!ENTITY libreoffice-translations-download-http "&libreoffice-dl;/libreoffice-translations-&libreoffice-dlversion;.tar.xz">
[d613641]22 <!ENTITY libreoffice-translations-md5sum "9aaecb32945a04ebc8a89835536105f9">
23 <!ENTITY libreoffice-translations-size "164 MB">
[514797f]24
[afff6997]25 <!-- full size still accurate for 6.0.2, reconfiguring and rebuilding
[be307b9]26 the built source after initial DESTDIR install doesn't take a vast time -->
[05800b9]27
[d613641]28 <!ENTITY libreoffice-buildsize "6.5 GB (782 MB installed). Installing the whole set of languages was previously reported to require up to 26 GB (2.9 GB installed)">
[05800b9]29
[afff6997]30 <!-- for 6.1.2.1 I allowed 2 SBU for downloads, my total was
[05800b9]31 64.76 SBU with fast downloads
[5cc300f]32 for 6.1.4.2 I just used the total time - bdubbs
[05800b9]33 -->
[8fd9139]34 <!ENTITY libreoffice-time "59 SBU with parallelism=4 including typical download time">
[33569f0f]35
[d2d3fc5]36]>
37
[cbdad90b]38<sect1 id="libreoffice" xreflabel="LibreOffice-&libreoffice-dlversion;">
[d2d3fc5]39 <?dbhtml filename="libreoffice.html"?>
40
41 <sect1info>
42 <othername>$LastChangedBy$</othername>
43 <date>$Date$</date>
44 </sect1info>
45
[d2bea743]46 <title>LibreOffice-&libreoffice-version;</title>
[d2d3fc5]47
48 <indexterm zone="libreoffice">
[8c853a1]49 <primary sortas="a-LibreOffice">LibreOffice</primary>
[d2d3fc5]50 </indexterm>
51
52 <sect2 role="package">
[fa29663]53 <title>Introduction to LibreOffice</title>
[d2d3fc5]54
55 <para>
[fa29663]56 <application>LibreOffice</application> is a full-featured office suite.
57 It is largely compatible with <application>Microsoft Office</application>
[8c853a1]58 and is descended from <application>OpenOffice.org</application>.
[d2d3fc5]59 </para>
60
[855122f]61 &lfs90_checked;
[d2d3fc5]62
63 <bridgehead renderas="sect3">Package Information</bridgehead>
64 <itemizedlist spacing="compact">
65 <listitem>
66 <para>
[9e1dd1b]67 Core Download: <ulink url="&libreoffice-core-download-http;"/>
[d2d3fc5]68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Core Download MD5 sum: &libreoffice-core-md5sum;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Core Download size: &libreoffice-core-size;
78 </para>
79 </listitem>
[c20bced]80 <listitem>
81 <para>
[9e1dd1b]82 Estimated disk space required: &libreoffice-buildsize;
[c20bced]83 </para>
84 </listitem>
85 <listitem>
86 <para>
[9e1dd1b]87 Estimated build time: &libreoffice-time;
[c20bced]88 </para>
89 </listitem>
[9e1dd1b]90 </itemizedlist>
91
92 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
93 <itemizedlist spacing="compact">
[c20bced]94 <listitem>
95 <para>
[9e1dd1b]96 Dictionaries: <ulink url="&libreoffice-dict-download-http;"/>
[c20bced]97 </para>
98 </listitem>
[c4e1c2a0]99
[c20bced]100 <listitem>
101 <para>
[9e1dd1b]102 Dictionaries MD5 sum: &libreoffice-dict-md5sum;
[c20bced]103 </para>
104 </listitem>
[c4e1c2a0]105
[c20bced]106 <listitem>
107 <para>
[9e1dd1b]108 Dictionaries size: &libreoffice-dict-size;
[c20bced]109 </para>
110 </listitem>
[c4e1c2a0]111
[d2d3fc5]112 <listitem>
113 <para>
[9e1dd1b]114 Help Files: <ulink url="&libreoffice-help-download-http;"/>
[d2d3fc5]115 </para>
116 </listitem>
[c4e1c2a0]117
[d2d3fc5]118 <listitem>
119 <para>
[9e1dd1b]120 Help Files MD5 sum: &libreoffice-help-md5sum;
[d2d3fc5]121 </para>
122 </listitem>
[c4e1c2a0]123
[c20bced]124 <listitem>
125 <para>
[9e1dd1b]126 Help Files size: &libreoffice-help-size;
[c20bced]127 </para>
128 </listitem>
[c4e1c2a0]129
[c20bced]130 <listitem>
131 <para>
[9e1dd1b]132 Translations: <ulink url="&libreoffice-translations-download-http;"/>
[c20bced]133 </para>
134 </listitem>
[c4e1c2a0]135
[c20bced]136 <listitem>
137 <para>
[9e1dd1b]138 Translations MD5 sum: &libreoffice-translations-md5sum;
[c20bced]139 </para>
140 </listitem>
[c4e1c2a0]141
[c20bced]142 <listitem>
143 <para>
[9e1dd1b]144 Translations size: &libreoffice-translations-size;
[c20bced]145 </para>
146 </listitem>
[0209dd4]147
[f4362f22]148
[0293de0]149<!-- keep one commented patch, it's sure to again need one or more in a few months:
150For libreoffice 6.2.0.4, almost blfs 8.4: no patch needed, only a sed below
[199671b8]151 <listitem>
[efc0d11]152 <para>
[10cbf37]153 Required patch to fix building with system <xref linkend="poppler"/> (all
[5cc300f]154 recent versions) and <xref linkend="boost"/>:
155 <ulink url="&patch-root;/libreoffice-&libreoffice-dlversion;-consolidated_fixes-1.patch"/>
[10cbf37]156 </para>
157 </listitem>
[0293de0]158-->
[c599277]159
[c20bced]160 </itemizedlist>
[fa29663]161 <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
[d2d3fc5]162
163 <bridgehead renderas="sect4">Required</bridgehead>
164 <para role="required">
[4392a40]165 <xref linkend="perl-archive-zip"/>,
[d97601a]166 <xref linkend="unzip"/>,
[c20bced]167 <xref linkend="wget"/>,
[d6d4ea1]168 <xref linkend="which"/>, and
[c20bced]169 <xref linkend="zip"/>
[d2d3fc5]170 </para>
171
172 <bridgehead renderas="sect4">Recommended</bridgehead>
173 <note>
174 <para>
[601a838]175 Most of these packages are recommended because if they're not installed,
[ceadeab]176 the build process will compile and install its own (often older)
[d8ddab5]177 version, with the side effect of increasing build and installed disk
178 space and build time.
[d2d3fc5]179 </para>
180 </note>
181
182 <para role="recommended">
[909868fa]183 <xref linkend="apache-ant"/>,
[d8ddab5]184 <xref linkend="apr"/>,
[541e056]185 <xref linkend="boost"/>,
[7f5a588]186 <xref linkend="clucene"/>,
[87dfe6b]187 <xref linkend="cups"/>,
[c20bced]188 <xref linkend="curl"/>,
[059ff67]189 <xref linkend="dbus-glib"/>,
[76df61c]190 <xref linkend="libjpeg"/>,
[7cc81bb]191 <xref linkend="glm"/>,
[76df61c]192 <xref linkend="glu"/>,
[3b9bfde]193 <xref linkend="gpgme"/>,
[2a75b9b]194 <xref linkend="graphite2"/>,
[c20bced]195 <xref linkend="gst10-plugins-base"/>,
[ae93d7e]196 <xref linkend="gtk3"/> and
197 <xref linkend="gtk2"/> (see <quote>Command Explanations</quote>),
[2a75b9b]198 <xref linkend="harfbuzz"/>,
[c2af02b]199 <!-- <xref linkend="icu"/>,-->
[d8ddab5]200 <xref linkend="libatomic_ops"/>,
[c20bced]201 <xref linkend="lcms2"/>,
[d2d3fc5]202 <xref linkend="librsvg"/>,
[c20bced]203 <xref linkend="libxml2"/> and
204 <xref linkend="libxslt"/>,
[a90582a1]205 <xref linkend="lxml"/>,
[7a395d1]206 <xref linkend="mesa"/>,
[d2d3fc5]207 <xref linkend="neon"/>,
208 <xref linkend="nss"/>,
[86d09e6]209 <xref linkend="openldap"/> (if connecting to an LDAP server),
[d8ddab5]210 <xref linkend="postgresql"/>,
211 <xref linkend="redland"/>,
212 <xref linkend="serf"/>, and
[c20bced]213 <xref linkend="unixodbc"/>
[d2d3fc5]214 </para>
215
[2b5f3d7]216
[d2d3fc5]217 <bridgehead renderas="sect4">Optional</bridgehead>
218 <para role="optional">
[4469169]219 <xref linkend="avahi"/>,
[c20bced]220 <xref linkend="bluez"/>,
[d8ddab5]221 <xref linkend="dconf"/>,
[a76bd33]222 <xref linkend="desktop-file-utils"/>,
[4469169]223 <xref linkend="doxygen"/> (not relevant if using --disable-odk),
[1d23596]224 <xref linkend="evolution-data-server"/>,
[f4bb9987]225 <xref linkend="gdb"/>,
[94b42903]226 <xref linkend="gnutls"/>,
[c084a2a]227<!-- not anymore in the book, but included in apache-ant
228 <xref linkend="junit"/>, -->
[0293de0]229 <xref linkend="kf5-frameworks"/>,
[dba494f]230 <xref linkend="libpaper"/>,
[b33ea6fa]231 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
232 <xref linkend="mitkrb"/>,
[037fc0be]233 <xref linkend="nasm"/>,
[2b5f3d7]234 <xref linkend="poppler"/> (currently broken),
[b33ea6fa]235 <xref linkend="sane"/>,
[1d23596]236 <xref linkend="telepathy-glib"/>,
[037fc0be]237 <xref linkend="valgrind"/>,
[b33ea6fa]238 <xref linkend="vlc"/>,
[1d23596]239 <xref linkend="zenity"/>,
[037fc0be]240 <ulink url="https://commons.apache.org/proper/commons-codec/">Apache Commons Codec</ulink>,
241 <ulink url="https://hc.apache.org/httpclient-3.x/">Apache Commons HttpClient</ulink>,
242 <ulink url="https://commons.apache.org/proper/commons-lang/">Apache Commons Lang</ulink>,
243 <ulink url="https://commons.apache.org/proper/commons-logging/">Apache Commons Logging</ulink>,
244 <ulink url="http://www.beanshell.org/">BeanShell</ulink>,
[64812ba3]245 <ulink url="https://projects.coin-or.org/CoinMP/">CoinMP</ulink>,
[b33ea6fa]246 <ulink url="http://sourceforge.net/projects/cppunit/">Cppunit</ulink>,
[037fc0be]247 <ulink url="http://www.firebirdsql.org/">Firebird</ulink>,
[d8ddab5]248 <ulink url="https://github.com/behdad/glyphy">glyphy</ulink>,
[037fc0be]249 <ulink url="http://ftp.gnome.org/pub/gnome/sources/gnome-vfs/">Gnome VFS</ulink>,
250
[0e719c4]251 <ulink url="https://github.com/hamcrest/JavaHamcrest/releases">hamcrest</ulink>,
252 <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
[b33ea6fa]253 <ulink url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
[0e719c4]254 <ulink url="http://include-what-you-use.org/">iwyu</ulink>,
[5892480]255 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libabw">libabw</ulink>,
256 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</ulink>,
[83bc811e]257 <ulink url="http://sourceforge.net/projects/libcmis/">libcmis</ulink>,
[b33ea6fa]258 <ulink url="http://www.sourceforge.net/projects/libebook/">libebook</ulink>,
[7313b4b]259 <ulink url="https://wiki.documentfoundation.org/Libexttextcat">libexttextcat</ulink>,
[5892480]260 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand">libfreehand</ulink>,
[0191062b]261 <ulink url="http://tagoh.bitbucket.org/liblangtag/">liblangtag</ulink>,
[5892480]262 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libmspub">libmspub</ulink>,
[b33ea6fa]263 <ulink url="http://sourceforge.net/projects/libmwaw/">libmwaw</ulink>,
[885af2e]264 <ulink url="http://sourceforge.net/projects/libwpd/files/libodfgen/">libodfgen</ulink>,
[5892480]265 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker">libpagemaker</ulink>,
[64419b7]266 <ulink url="http://sourceforge.net/projects/libwpd/files/librevenge/">librevenge (WordPerfect Document importer)</ulink>,
[5892480]267 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</ulink>,
[b33ea6fa]268 <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>,
269 <ulink url="http://libwpg.sourceforge.net/">libwpg</ulink>,
270 <ulink url="http://libwps.sourceforge.net/">libwps</ulink>,
271 <ulink url="http://lpsolve.sourceforge.net/">lp_solve</ulink>,
[0e719c4]272 <ulink url="https://gitlab.com/mdds/mdds">mdds</ulink>,
[d97601a]273 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
[64812ba3]274 <ulink url="https://github.com/KhronosGroup/OpenCOLLADA/">OpenCOLLADA</ulink>,
[1d23596]275 <ulink url="https://gitlab.com/orcus/orcus">Orcus</ulink>, and
276 <ulink url="https://ukoethe.github.io/vigra/">VIGRA</ulink>
[d2d3fc5]277 </para>
278
[f4bb9987]279 <para>There are many optional dependencies not listed here. They can be
280 found in <quote>download.lst</quote> (source directory).
281 </para>
282
[d2d3fc5]283 <para condition="html" role="usernotes">
284 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
285 </para>
286 </sect2>
287
288 <sect2 role="installation">
[fa29663]289 <title>Installation of LibreOffice</title>
[2dc8feb]290
[89e6d61]291 <important>
[7d38d9a]292 <para>
[7313b4b]293 Unlike the other packages, we assume that you have not yet unpacked the
294 package. This is because the <option>--no-overwrite-dir</option>
[d8ddab5]295 switch is needed in case you unpack as the <systemitem
296 class="username">root</systemitem> user.
[7d38d9a]297 </para>
[89e6d61]298 </important>
[7d38d9a]299
[fbbc908]300<screen role="nodump"><userinput>tar -xf libreoffice-&libreoffice-dlversion;.tar.xz --no-overwrite-dir &amp;&amp;
[c20bced]301cd libreoffice-&libreoffice-dlversion;</userinput></screen>
[d97601a]302
[0293de0]303<!-- keep a commented instruction if no patches are currently required
304 <para> <!- - for all recent versions - ->
[5cc300f]305 Fix build failures introduced by recent versions of <xref linkend="poppler"/>
306 and <xref linkend="boost"/>:
307 </para>
308
309<screen><userinput>patch -Np1 -i ../libreoffice-&libreoffice-dlversion;-consolidated_fixes-1.patch</userinput></screen>
[0293de0]310-->
[c599277]311
[d2d3fc5]312 <para>
[7f380f4]313 Create symlinks to tarballs from the source directory so they won't
314 get downloaded again:
[d2d3fc5]315 </para>
316
[420c072]317<screen><userinput>install -dm755 external/tarballs &amp;&amp;
[89e6d61]318ln -sv ../../../libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz external/tarballs/ &amp;&amp;
319ln -sv ../../../libreoffice-help-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
[d2d3fc5]320
[ed2cf3c]321 <para>
322 If you have downloaded the translations tarball, create a symlink:
323 </para>
324
[89e6d61]325<screen><userinput>ln -sv ../../../libreoffice-translations-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
[d2d3fc5]326
[c20bced]327 <note>
328 <para>
329 During the build process, some packages will be downloaded (including
330 the ones listed as recommended and optional dependencies) if they are
[89e6d61]331 not present on the system. Because of this, build time may vary from the
332 published time more than usual.
[c20bced]333 </para>
334 </note>
[0d7900a]335
[0c77b5ab]336 <para>
337 Due to the large size of the package, you may prefer to install it in
[d83f555]338 <filename class="directory">/opt</filename>, instead of
[14ea7e8]339 <filename class="directory">/usr</filename>. Depending on your choice,
340 replace <replaceable>&lt;PREFIX&gt;</replaceable> by
341 <filename class="directory">/usr</filename> or by
[0c77b5ab]342 <filename class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>:
343 </para>
344
345<screen><userinput>export LO_PREFIX=<replaceable>&lt;PREFIX&gt;</replaceable></userinput></screen>
[10cbf37]346
[7f380f4]347 <para>
[d2bea743]348 Locales "fr" and "en-GB", you will find below, are just examples; you
[7f380f4]349 should change them to suit your needs - you might want to read the
350 "Command Explanations", further below, before proceeding.
351 </para>
352
[0c77b5ab]353 <para>
354 Prepare <application>LibreOffice</application> for compilation by running
355 the following commands:
[d2d3fc5]356 </para>
357
[64812ba3]358<screen><userinput>sed -e "/gzip -f/d" \
[c20bced]359 -e "s|.1.gz|.1|g" \
[7f380f4]360 -i bin/distro-install-desktop-integration &amp;&amp;
[ed2cf3c]361
[5153eb9]362sed -e "/distro-install-file-lists/d" -i Makefile.in &amp;&amp;
[14ea7e8]363
[f03e2e6c]364sed -e '/JAVA_SOURCE_VER/s/6/7/' \
365 -e '/JAVA_TARGET_VER/s/6/7/' \
366 -i configure.ac
367
368<!-- Removed in 6.2 - -with-alloc=system
369 In 6.3 -disable-gtk -enable-gtk3 added (sic, I accidentally built like
[6bbca81]370 that) which allows removal of - -with-system-cairo but did NOT cause
371 system epoxy to be automatically used, as configure claimed -->
[c2af02b]372<!--
373 libfreehand-0.1.2 is downloaded (from freedesktop.org) but moving to
374 ICU-65.1 has highlighted a missing semicolon in one of the files,
375 causing libreoffice to fail to build : command moved to an option with
376 explanation until a newer version of libfreehand is pulled in.
377 \-\-with-system-icu \
378-->
[0c77b5ab]379./autogen.sh --prefix=$LO_PREFIX \
[14ea7e8]380 --sysconfdir=/etc \
[d8ddab5]381 --with-vendor=BLFS \
[201a54c]382 --with-lang='fr en-GB' \
[14ea7e8]383 --with-help \
[7f380f4]384 --with-myspell-dicts \
[cc9c627]385 --without-junit \
[7f380f4]386 --without-system-dicts \
[d8ddab5]387 --disable-dconf \
[6bbca81]388 -disable-gtk -enable-gtk3 \
[14ea7e8]389 --disable-odk \
390 --enable-release-build=yes \
[5153eb9]391 --enable-python=system \
[6bbca81]392 --with-jdk-home=/opt/jdk \
[d8ddab5]393 --with-system-apr \
[541e056]394 --with-system-boost \
[d8ddab5]395 --with-system-clucene \
[14ea7e8]396 --with-system-curl \
[6bbca81]397 --with-system-epoxy \
[14ea7e8]398 --with-system-expat \
[4132210]399 --with-system-glm \
[3b9bfde]400 --with-system-gpgmepp \
[2a75b9b]401 --with-system-graphite \
[14ea7e8]402 --with-system-harfbuzz \
403 --with-system-jpeg \
404 --with-system-lcms2 \
[d8ddab5]405 --with-system-libatomic_ops \
[14ea7e8]406 --with-system-libpng \
407 --with-system-libxml \
408 --with-system-neon \
409 --with-system-nss \
410 --with-system-odbc \
411 --with-system-openldap \
[541e056]412 --with-system-openssl \
[d8ddab5]413 --with-system-postgresql \
[14ea7e8]414 --with-system-redland \
[d8ddab5]415 --with-system-serf \
[ff13fdc2]416 --with-system-zlib</userinput></screen>
[ceadeab]417
[2b5f3d7]418<!-- - -with-system-poppler \ -->
[d2d3fc5]419 <para>
[c20bced]420 The instructions below will only build the package without running
421 any unit tests. If you prefer to run the unit tests, replace
[34fbc15b]422 <command>make build-nocheck</command> with <command>make build</command>
423 or (as a regular user only) just <command>make</command>, but do not be
424 surprised if a unit test fails right at the end of the build and
425 breaks it.
[d2d3fc5]426 </para>
427
428 <para>
[33569f0f]429 Build the package:
[d2d3fc5]430 </para>
431
[0293de0]432<screen><userinput>make build-nocheck</userinput></screen>
433<!--<screen><userinput>CPPFLAGS='-DU_USING_ICU_NAMESPACE=1' make build-nocheck</userinput></screen>-->
[d2d3fc5]434
435 <para>
[c20bced]436 Now, as the <systemitem class="username">root</systemitem> user:
[d2d3fc5]437 </para>
438
[34fbc15b]439<screen role="root"><userinput>make distro-pack-install</userinput></screen>
[c20bced]440
[d83f555]441 <para>
[cbdad90b]442 If installed in <filename
443 class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>
[64812ba3]444 some additional steps are necessary. Issue the following commands, as
445 <systemitem class="username">root</systemitem> user:
[d83f555]446 </para>
447
[cbdad90b]448<screen role="root"><userinput>if [ "$LO_PREFIX" != "/usr" ]; then
[89e6d61]449
[64812ba3]450 # This symlink is necessary for the desktop menu entries
[e43a76ca]451 ln -svf $LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice &amp;&amp;
[cbdad90b]452
[29dd48c]453 # Set up a generic location independent of version number
[a296899]454 ln -sfv libreoffice-&libreoffice-dlversion; /opt/libreoffice
[29dd48c]455
[64812ba3]456 # Icons
[20f09631]457 mkdir -vp /usr/share/pixmaps
[63e837a6]458 for i in $LO_PREFIX/share/icons/hicolor/32x32/apps/*; do
[64812ba3]459 ln -svf $i /usr/share/pixmaps
[defca61]460 done &amp;&amp;
[cbdad90b]461
[64812ba3]462 # Desktop menu entries
[e43a76ca]463 for i in $LO_PREFIX/lib/libreoffice/share/xdg/*; do
464 ln -svf $i /usr/share/applications/libreoffice-$(basename $i)
465 done &amp;&amp;
[64812ba3]466
467 # Man pages
468 for i in $LO_PREFIX/share/man/man1/*; do
[e43a76ca]469 ln -svf $i /usr/share/man/man1/
[5a3365b]470 done
471
[e43a76ca]472 unset i
[a76bd33]473fi</userinput></screen>
[64812ba3]474
[a76bd33]475 <para>
476 If you have installed <xref linkend="desktop-file-utils"/>, and you wish
477 to update the MIME database, issue, as the <systemitem class="username">
478 root</systemitem> user:
479 </para>
480
481<screen role="root"><userinput>update-desktop-database</userinput></screen>
[d83f555]482
[514797f]483 <para>
484 The suite and main modules can be started from the menu. From a terminal,
485 the suite can be started with <command>libreoffice</command> command and
486 the modules with <command>libreoffice
487 --<replaceable>&lt;module&gt;</replaceable></command> command,
488 respectively, where <replaceable>&lt;module&gt;</replaceable> is one of
489 base, calc, draw, impress, math or writer. Modules cannot be started using
490 their shell starting script names (see "Installed Programs", below), if
[7313b4b]491 LO_PREFIX is other than <filename class='directory'>/usr</filename>,
[514797f]492 unless <filename class='directory'>$LO_PREFIX/bin</filename> directory is
493 appended to the PATH.
494 </para>
495
[c20bced]496 </sect2>
497
498 <sect2 role="commands">
499 <title>Command Explanations</title>
[4c796cf]500
[d2d3fc5]501 <para>
[89e6d61]502 <command>sed -e ...</command>: The first sed prevents compression of the
[f03e2e6c]503 manual pages, the second one prevents the install from failing, and the
504 the third allows to build with OpenJDK-12.
[ed2cf3c]505 </para>
506
[d2d3fc5]507 <para>
[ed2cf3c]508 <parameter>--with-vendor=BLFS</parameter>: This switch sets BLFS as
[be307b9]509 the vendor which is mentioned when you click "About" from the Help menu
510 on the toolbar.
[d2d3fc5]511 </para>
[4c796cf]512
[ed2cf3c]513 <para>
[201a54c]514 <parameter>--with-lang='fr en-GB'</parameter>: This switch sets
[ffc716b]515 what languages to support. To list several languages, separate them with
516 a space. For all languages, use
517 <parameter>--with-lang=ALL</parameter>.
[ed2cf3c]518 </para>
519
[7f380f4]520 <note>
521 <para>
[01c0bb8]522 For a list of the available languages, look in
523 <filename>solenv/inc/langlist.mk</filename>.
[7f380f4]524 </para>
525 </note>
[ffc716b]526
527 <para>
528 <parameter>--with-help</parameter>: Without this switch, the help files
529 are not built.
[d2d3fc5]530 </para>
531
[6bbca81]532 <para>
533 <parameter>--with-jdk-home=/opt/jdk</parameter>: This parameter will silence
534 a warning that the configure script attempted to find JAVA_HOME
535 automatically (even though that is passed in the environment). Omit this if
536 you disabled java.
537 </para>
538
[7f380f4]539 <para>
540 <parameter>--with-myspell-dicts</parameter>: This switch adds myspell
541 dictionaries to the <application>LibreOffice</application> installation
542 set.
543 </para>
[dba494f]544 <!-- Unrecognized as of 6.2.0.3
[d2d3fc5]545 <para>
[dba494f]546 <parameter>- -with-alloc=system</parameter>: This switch tells
[7313b4b]547 <application>LibreOffice</application> to use the system allocator
548 instead of its internal one.
[d2d3fc5]549 </para>
[dba494f]550 -->
[d8ddab5]551 <para>
[cc9c627]552 <parameter>--with-system-boost</parameter>: This switch enables using
553 system boost. From time to time, recent versions of boost break
554 the build of libreoffice. In this case, it is possible to use the
555 bundled copy of boost, by removing this flag.
[d8ddab5]556 </para>
557
558 <para>
559 <parameter>--disable-dconf</parameter>: This switch disables compiling
560 <application>LibreOffice</application> with the
561 <application>GNOME DConf</application> configuration system support.
562 </para>
[28370fe]563
[6bbca81]564 <para>
565 <parameter>-disable-gtk -enable-gtk3</parameter>: This pair of switches
[b06fb60c]566 tell the configure script to use <application>GTK+-3</application> instead
567 of <application>GTK+-2</application>.
[6bbca81]568 </para>
569
[7f380f4]570 <para>
[b4bff899]571 <parameter>--without-junit</parameter>: This switch disables the tests
[f0506d09]572 for the deprecated HSQLDB driver which is written in Java. If you wish
[b4bff899]573 to build this driver replace this switch with the set of switches
[b06fb60c]574 described below after '--without-java'.
[7f380f4]575 </para>
576
[d2d3fc5]577 <para>
[cc9c627]578 <parameter>--without-system-dicts</parameter>: This switch disables use
579 of dictionaries from system paths, so the ones installed by this package
580 are used.
[5b9edb4]581 </para>
582
[d2d3fc5]583 <para>
[92b7b3a]584 <parameter>--disable-odk</parameter>: This switch disables installing the
[c20bced]585 office development kit. Remove if you want to develop a
586 <application>LibreOffice</application> based application.
[d2d3fc5]587 </para>
588
[4469169]589 <para>
590 <parameter>--enable-release-build=yes</parameter>: This switch enables a
[7f380f4]591 Release Build. <application>LibreOffice</application> can be built as a
592 Release Build or as a Developer Build, because their default installation
593 paths and user profile paths are different. Developer Build displays the
594 words "Dev" and "Beta" in several places (e.g, menu and splash screen).
[4469169]595 </para>
[d2d3fc5]596
597 <para>
[c20bced]598 <parameter>--enable-python=system</parameter>: This switch tells
599 <application>LibreOffice</application> to use installed
[7f380f4]600 <application>Python 3</application> to build the translations instead of
601 the bundled one.
[d2d3fc5]602 </para>
603
604 <para>
[92b7b3a]605 <parameter>--with-system-*</parameter>: These switches prevent
[c20bced]606 <application>LibreOffice</application> from trying to compile its own
607 versions of these dependencies. If you've not installed some of the
608 dependencies, remove the corresponding switches.
[d2d3fc5]609 </para>
[8c853a1]610
[0293de0]611<!--
[488b738f]612 <para>
[c1b5118]613 <command>CPPFLAGS='-DU_USING_ICU_NAMESPACE=1' make ...</command>: <xref
[488b738f]614 linkend="icu"/> has removed an implicit namespace <quote>using</quote>
[c1b5118]615 from its headers files. Setting <envar>U_USING_ICU_NAMESPACE</envar> to
[488b738f]616 1 allows to restore the former behavior, which is required for building
617 <application>libreoffice</application>.
618 </para>
[0293de0]619-->
620 <para>
621 <command>make distro-pack-install</command>: this does a normal
622 install, but if you add a DESTDIR environment variable it will also
623 install a lot of (text) gid_Module_* files in the DESTDIR, to help
624 distributions which want to break the package into parts.
625 </para>
[488b738f]626
[c20bced]627 <para>
[cc9c627]628 <option>--with-parallelism=&lt;count&gt;</option>: This switch
[ff13fdc2]629 tells <application>LibreOffice</application> to use &lt;count&gt; CPU
630 cores to compile in parallel. (Do not include literal angle brackets.)
[cc9c627]631 The default is to use all available cores on the system.
[c20bced]632 </para>
633
[87dfe6b]634 <para>
635 <option>--disable-cups</option>: Use this switch if you don't need
636 printing support.
637 </para>
638
[54666831]639 <para>
[7f380f4]640 <option>--disable-dbus</option>: Use this switch if you've not installed
641 D-Bus-1.8.0 or later. It also disables Bluetooth support and font install
642 via PackageKit.
[54666831]643 </para>
644
[1cbfd1a]645 <para>
[011ed8fa]646 <option>--disable-firebird-sdbc</option>: By default, the ability to
[1cbfd1a]647 connect to a <application>firebird</application> database is enabled.
[011ed8fa]648 Add this switch if you do not need that feature.
649 </para>
[1cbfd1a]650
[c20bced]651 <para>
[64812ba3]652 <option>--disable-gstreamer-1-0</option>: Use this switch if you have not
653 installed <xref linkend="gst10-plugins-base"/>.
[7f380f4]654 </para>
655
[ae93d7e]656 <para>
[5339d21]657 <option>--disable-gtk3</option>: Use this switch if you have not installed
658 <application>GTK+-3</application>, or if you have installed it but wish
659 to use <application>GTK+-2</application> (the menu icons differ).
[b06fb60c]660 <!-- Note that a <application>GTK+-3</application> build still
661 requires <application>GTK+-2</application> to build the gtk-plugin.-->
[ae93d7e]662 </para>
663
[d8ddab5]664 <para>
665 <option>--disable-postgresql-sdbc</option>: This switch disables compiling
666 <application>LibreOffice</application> with the ability to connect to a
[63e837a6]667 <application>PostgreSQL</application> database. Use it if you have not
668 installed <application>PostgreSQL</application> and you do not want
669 <application>LibreOffice</application> to compile its bundled copy.
[d8ddab5]670 </para>
671
[7c57f82]672 <para>
673 <option>--enable-lto</option>: This switch will enable Link Time
674 Optimization, which results in slightly smaller libraries (about 40 MB).
675 This is said to make <application>LibreOffice</application> programs
676 load faster (and possibly run faster, e.g. when recalculating a
677 spreadsheet). On an 8-core machine with 16GB of memory, the difference
678 in compile times was minimal, but an extra 2GB was used for the work
679 files. On machines with fewer processors or a lack of memory, the compile
680 might be much slower.
681 </para>
682
[cc9c627]683 <para>
[0293de0]684 <option>--without-java</option>: This switch disables
[cc9c627]685 <application>Java</application> support in
[b4bff899]686 <application>LibreOffice</application>. Java is needed for the
687 deprecated HSQLDB driver, which allows reading databases created by
688 other programs or in earlier versions of libreoffice
[0293de0]689 <application>base</application>.
690 </para>
691
692 <para>
693 <option>--with-junit=/opt/ant/lib/junit-4.12.jar</option> and
694 <option>--with-hamcrest=/opt/ant/lib/hamcrest-core-1.3.jar</option>:
695 Those options are needed if you want to run the tests.
[cc9c627]696 </para>
697
[f0506d09]698 <para>
699 <option>--without-fonts</option>: <application>LibreOffice</application>
700 includes a number of third-party TrueType fonts. If you have already
701 installed some or all of the same fonts, you may prefer to use the system
702 versions.
703 </para>
704
[be307b9]705 <para>
[dba494f]706 <!-- Brings in - -enable-qt5 as well. -->
707 <option>--enable-kde5</option>: Builds with KDE/Plasma integration. If
[0293de0]708 <xref linkend="qt5"/> and/or <xref linkend="kf5-frameworks"/> are not
709 installed in <filename class="directory">/usr</filename>, the include
710 and library directories must be specified in <envar>QT5INC</envar>,
711 <envar>QT5LIB</envar>, <envar>KF5INC</envar>, and <envar>KF5LIB</envar>,
712 respectively.
[be307b9]713 </para>
[dba494f]714
715 <para revision="systemd">
716 <option>--enable-evolution2</option>: Enables support for Evolution
717 address books through Evolution Data Server. Note that Evolution Data
718 Server must be installed for this feature to function.
719 </para>
[be307b9]720
[c2af02b]721 <para>
722 <option>--with-system-icu</option>: This command would use the system
723 version of <xref linkend="icu"/> which is normally considered to be a good
724 thing to do. However, one of the very minor packages pulled in by
725 <application>LibreOffice</application>, libfreehand-0.1.2, does not compile
726 with ICU-65.1 because of a missing semi-colon at the end of one line in one
727 of its files. Do not use this option unless you have separately installed a
728 patched or newer version of
729 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand">libfreehand</ulink>.
730 </para>
731
[d2d3fc5]732 </sect2>
733
734 <sect2 role="content">
735 <title>Contents</title>
736
737 <segmentedlist>
738 <segtitle>Installed Programs</segtitle>
[c3c56b2]739 <segtitle>Installed Libraries</segtitle>
[8c853a1]740 <segtitle>Installed Directory</segtitle>
[d2d3fc5]741
742 <seglistitem>
[4c796cf]743 <seg>
[c20bced]744 libreoffice, lobase, localc, lodraw, loffice, lofromtemplate,
[4469169]745 loimpress, lomath, loweb, lowriter, soffice and unopkg;
746 several programs under
[0c77b5ab]747 $LO_PREFIX/lib/libreoffice/program
[8c853a1]748 </seg>
[c3c56b2]749 <seg>
[4469169]750 several libraries under
[ff7ea587]751 $LO_PREFIX/lib/libreoffice/program
[c3c56b2]752 </seg>
[d2d3fc5]753 <seg>
[0c77b5ab]754 $LO_PREFIX/lib/libreoffice
[d2d3fc5]755 </seg>
756 </seglistitem>
757 </segmentedlist>
758
759 <variablelist>
760 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
761 <?dbfo list-presentation="list"?>
762 <?dbhtml list-presentation="table"?>
763
[514797f]764 <varlistentry id="libreoffice-suite">
765 <term><command>libreoffice (or soffice)</command></term>
766 <listitem>
767 <para>
768 is the main libreofice suite (symlink to
769 $LO_PREFIX/lib/libreoffice/program/soffice).
770 </para>
771 <indexterm zone="libreoffice libreoffice-suite">
772 <primary sortas="b-libreoffice-suite">libreoffice-suite</primary>
773 </indexterm>
774 </listitem>
775 </varlistentry>
776
[c20bced]777 <varlistentry id="lobase">
778 <term><command>lobase</command></term>
[d2d3fc5]779 <listitem>
780 <para>
[514797f]781 is the database manager module shell starting script.
[d2d3fc5]782 </para>
[c20bced]783 <indexterm zone="libreoffice lobase">
784 <primary sortas="b-lobase">lobase</primary>
[d2d3fc5]785 </indexterm>
786 </listitem>
787 </varlistentry>
788
[c20bced]789 <varlistentry id="localc">
790 <term><command>localc</command></term>
[d2d3fc5]791 <listitem>
792 <para>
[514797f]793 is the spreadsheet module shell starting script.
[d2d3fc5]794 </para>
[c20bced]795 <indexterm zone="libreoffice localc">
796 <primary sortas="b-localc">localc</primary>
[d2d3fc5]797 </indexterm>
798 </listitem>
799 </varlistentry>
800
[c20bced]801 <varlistentry id="lodraw">
802 <term><command>lodraw</command></term>
[d2d3fc5]803 <listitem>
804 <para>
[514797f]805 is the vector graphics editor and diagramming tool module shell
806 starting script.
[d2d3fc5]807 </para>
[c20bced]808 <indexterm zone="libreoffice lodraw">
809 <primary sortas="b-lodraw">lodraw</primary>
[d2d3fc5]810 </indexterm>
811 </listitem>
812 </varlistentry>
813
[c20bced]814 <varlistentry id="loimpress">
815 <term><command>loimpress</command></term>
[d2d3fc5]816 <listitem>
817 <para>
[514797f]818 is the (PowerPoint) presentations editor and displayer
819 module shell starting script.
[d2d3fc5]820 </para>
[c20bced]821 <indexterm zone="libreoffice loimpress">
822 <primary sortas="b-loimpress">loimpress</primary>
[d2d3fc5]823 </indexterm>
824 </listitem>
825 </varlistentry>
826
[c20bced]827 <varlistentry id="lomath">
828 <term><command>lomath</command></term>
[d2d3fc5]829 <listitem>
830 <para>
[514797f]831 is the mathematical formula editor module shell starting script.
[d2d3fc5]832 </para>
[c20bced]833 <indexterm zone="libreoffice lomath">
834 <primary sortas="b-lomath">lomath</primary>
[d2d3fc5]835 </indexterm>
836 </listitem>
837 </varlistentry>
838
[006bd37]839 <varlistentry id="loweb">
840 <term><command>loweb</command></term>
841 <listitem>
842 <para>
843 is the HTML editor module shell starting script.
844 </para>
845 <indexterm zone="libreoffice loweb">
846 <primary sortas="b-loweb">loweb</primary>
847 </indexterm>
848 </listitem>
849 </varlistentry>
850
[c20bced]851 <varlistentry id="lowriter">
852 <term><command>lowriter</command></term>
[2511f83]853 <listitem>
854 <para>
[514797f]855 is the word processor module shell starting script.
[2511f83]856 </para>
[c20bced]857 <indexterm zone="libreoffice lowriter">
858 <primary sortas="b-lowriter">lowriter</primary>
[2511f83]859 </indexterm>
860 </listitem>
861 </varlistentry>
862
[8d5cd1bb]863 <varlistentry id="unopkg">
864 <term><command>unopkg</command></term>
865 <listitem>
866 <para>
[fa29663]867 is a tool to manage <application>LibreOffice</application>
[63e837a6]868 extensions from the command line.
[8d5cd1bb]869 </para>
870 <indexterm zone="libreoffice unopkg">
871 <primary sortas="b-unopkg">unopkg</primary>
872 </indexterm>
873 </listitem>
874 </varlistentry>
875
[d2d3fc5]876 </variablelist>
[8c853a1]877
[d2d3fc5]878 </sect2>
[8c853a1]879
[d2d3fc5]880</sect1>
Note: See TracBrowser for help on using the repository browser.