source: xsoft/office/libreoffice.xml@ 4abd884

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 4abd884 was 4abd884, checked in by Krejzi <krejzi@…>, 11 years ago

Boost 1.52.0, ICU 50.1.1 and LibreOffice 3.6.4.

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

  • Property mode set to 100644
File size: 17.6 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
7 <!ENTITY libreoffice-core-download-http
[8c853a1]8 "http://download.documentfoundation.org/libreoffice/src/&libreoffice-version;/libreoffice-core-&libreoffice-dlversion;.tar.xz">
[d2d3fc5]9 <!ENTITY libreoffice-core-download-ftp " ">
[4abd884]10 <!ENTITY libreoffice-core-md5sum "6e88d3a83691cb8ee5081487c8345a6a">
[a1d9eed]11 <!ENTITY libreoffice-core-size "103 MB">
[4abd884]12 <!ENTITY libreoffice-buildsize "5.5 GB (450 MB installed)">
[8c853a1]13 <!ENTITY libreoffice-time "60 SBU">
[d2d3fc5]14]>
15
[8c853a1]16<sect1 id="libreoffice" xreflabel="LibreOffice-&libreoffice-version;">
[d2d3fc5]17 <?dbhtml filename="libreoffice.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
[8c853a1]24 <title>LibreOffice-&libreoffice-version;</title>
[d2d3fc5]25
26 <indexterm zone="libreoffice">
[8c853a1]27 <primary sortas="a-LibreOffice">LibreOffice</primary>
[d2d3fc5]28 </indexterm>
29
30 <sect2 role="package">
[fa29663]31 <title>Introduction to LibreOffice</title>
[d2d3fc5]32
33 <para>
[fa29663]34 <application>LibreOffice</application> is a full-featured office suite.
35 It is largely compatible with <application>Microsoft Office</application>
[8c853a1]36 and is descended from <application>OpenOffice.org</application>.
[d2d3fc5]37 </para>
38
[f76286d]39 &lfs72_checked;
[d2d3fc5]40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Core Download (HTTP): <ulink url="&libreoffice-core-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Core Download (FTP): <ulink url="&libreoffice-core-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Core Download MD5 sum: &libreoffice-core-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Core Download size: &libreoffice-core-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &libreoffice-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &libreoffice-time;
71 </para>
72 </listitem>
73 </itemizedlist>
[05bcbfeb]74
[fa29663]75 <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
[d2d3fc5]76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
[ceadeab]79 <xref linkend="cups"/>,
80 <xref linkend="curl"/> or <xref linkend="wget"/>,
81 <xref linkend="gperf"/>,
[d97601a]82 <xref linkend="gtk2"/> or <xref linkend="gtk3"/>,
83 <application>Perl Modules</application>
[ceadeab]84 <xref linkend="perl-archive-zip"/> and
85 <xref linkend="perl-xml-parser"/>,
[d97601a]86 <xref linkend="unzip"/>,
[ceadeab]87 <xref linkend="which"/> and
88 <xref linkend="zip"/>.
[d2d3fc5]89 </para>
90
91 <bridgehead renderas="sect4">Recommended</bridgehead>
92 <note>
93 <para>
[601a838]94 Most of these packages are recommended because if they're not installed,
[ceadeab]95 the build process will compile and install its own (often older)
[601a838]96 version. If you're using <application>GCC 4.7</application>, some of
[ceadeab]97 those older packages will fail to compile.
[d2d3fc5]98 </para>
99 </note>
100
101 <para role="recommended">
102 <xref linkend="boost"/>,
103 <xref linkend="db"/>,
104 <xref linkend="expat"/>,
[ceadeab]105 <xref linkend="gst-plugins-base"/>,
[d2d3fc5]106 <xref linkend="libjpeg"/>,
[d97601a]107 <xref linkend="libgsf"/>,
[d2d3fc5]108 <xref linkend="libpng"/>,
109 <xref linkend="librsvg"/>,
110 <xref linkend="libxml2"/> and <xref linkend="libxslt"/>,
111 <xref linkend="neon"/>,
112 <xref linkend="nss"/>,
[f76286d]113 <xref linkend="poppler"/>,
[fa29663]114 <xref linkend="openssl"/> and
[d2d3fc5]115 <xref linkend="redland"/>.
116 </para>
117
118 <bridgehead renderas="sect4">Optional</bridgehead>
119 <para role="optional">
[ceadeab]120 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
[4c796cf]121 <xref linkend="mysql"/>,
[d97601a]122 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
[4c796cf]123 <xref linkend="postgresql"/>,
[d2d3fc5]124 <ulink url="http://sampleicc.sourceforge.net/">SampleICC</ulink>,
[d97601a]125 <ulink url="http://hci.iwr.uni-heidelberg.de/vigra">Vigra</ulink> and
[ceadeab]126 <xref linkend="zenity"/>.
[d2d3fc5]127 </para>
128
129 <para condition="html" role="usernotes">
130 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
131 </para>
132 </sect2>
133
134 <sect2 role="installation">
[fa29663]135 <title>Installation of LibreOffice</title>
[d2d3fc5]136
[d97601a]137 <warning>
138 <para>
[8c853a1]139 Untaring the libreoffice-core-&libreoffice-dlversion; tarball as
[d97601a]140 <systemitem class="username">root</systemitem> has the curious effect of
141 changing the ownership of the <emphasis>parent</emphasis> directory
142 to a user with numerical id 11012 and with the permissions set to allow
143 read, write and execute for that user only! If you untared as
144 <systemitem class="username">root</systemitem> in your home folder you
[ceadeab]145 could end up unable to log in again :/ If you untared it in
[d97601a]146 <filename class="directory">/usr</filename> you would find your user
147 account unable to access any file in
[ceadeab]148 <filename class="directory">/usr</filename>.
[d97601a]149 </para>
150
151 <para>
152 You can avoid this unpleasantness by
153 <emphasis>not</emphasis> untaring it as
154 <systemitem class="username">root</systemitem>. If you must untar it as
155 <systemitem class="username">root</systemitem> pass the option
156 <option>--no-overwrite-dir</option> to tar. This is the default when you
157 untar as a user but has to be passed as an option when untaring as
158 <systemitem class="username">root</systemitem>:
159 </para>
160 </warning>
161
[8c853a1]162<screen role="root"><userinput>tar -xf libreoffice-core-&libreoffice-dlversion;.tar.xz --no-overwrite-dir &amp;&amp;
163cd libreoffice-core-&libreoffice-dlversion;</userinput></screen>
[d97601a]164
[d2d3fc5]165 <para>
[fa29663]166 Install <application>LibreOffice</application> by running the following
[d2d3fc5]167 commands:
168 </para>
169
[4abd884]170<screen><userinput>./autogen.sh --prefix=/usr \
[8c853a1]171 --disable-binfilter \
172 --disable-gconf \
173 --disable-mozilla \
174 --disable-odk \
175 --disable-postgresql-sdbc \
176 --with-system-boost \
177 --with-system-cairo \
178 --with-system-curl \
179 --with-system-db \
180 --with-system-expat \
181 --with-system-gettext \
182 --with-system-icu \
183 --with-system-jpeg \
184 --with-system-libpng \
185 --with-system-libxml \
186 --with-system-neon \
187 --with-system-nss \
188 --with-system-openssl \
189 --with-system-poppler \
190 --with-system-redland \
191 --with-system-zlib \
192 --without-java \
193 --with-num-cpus=$(getconf _NPROCESSORS_ONLN) &amp;&amp;
194./download &amp;&amp;
195mkdir -p ../libreoffice-downloads &amp;&amp;
196cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} \
197 src/*LICENSE* ../libreoffice-downloads &amp;&amp;
[d2d3fc5]198make</userinput></screen>
199
[8c853a1]200 <para>
201 This package does not come with a test suite.
202 </para>
[d2d3fc5]203
204 <para>
205 Now, as the <systemitem class="username">root</systemitem> user:
206 </para>
207
[e1d8846]208<screen role="root"><userinput>make install &amp;&amp;
209SOFFICE=/usr/lib/libreoffice/program/soffice &amp;&amp;
[d2d3fc5]210for program in base calc draw impress math writer
211do
[e1d8846]212 echo '#!/bin/bash' > /usr/bin/${program}
[604ba3d8]213 echo "exec ${SOFFICE} --nologo --${program} \"\${@}\"" >> /usr/bin/${program}
[d2d3fc5]214 chmod 755 /usr/bin/${program}
[e1d8846]215done &amp;&amp;
216unset SOFFICE &amp;&amp;
[604ba3d8]217ln -sfv ../lib/libreoffice/program/spadmin /usr/bin/printeradmin &amp;&amp;
218ln -sfv ../lib/libreoffice/program/unopkg /usr/bin &amp;&amp;
219cp sysui/desktop/man/{libreoffice,unopkg}.1 /usr/share/man/man1 &amp;&amp;
[d2d3fc5]220for res in 16 32 48 128 256
221do
222 mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
223 cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
224 /usr/share/icons/hicolor/${res}x${res}/apps
225 cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
226 /usr/share/icons/hicolor/${res}x${res}/mimetypes
227done &amp;&amp;
228gtk-update-icon-cache /usr/share/icons/hicolor</userinput></screen>
229 </sect2>
230
231 <sect2 role="commands">
232 <title>Command Explanations</title>
[fa29663]233
[d2d3fc5]234 <para>
[a6af3ab9]235 <option>--enable-gtk3</option>: Add this option if you've installed and
[d2d3fc5]236 want to use <application>Gtk+-3</application>.
237 </para>
238
[ceadeab]239 <para>
[a6af3ab9]240 <option>--disable-gstreamer</option>: Add this option if you've not
[ceadeab]241 installed <xref linkend="gst-plugins-base"/>.
242 </para>
243
[d2d3fc5]244 <para>
245 <option>--disable-binfilter</option>: These "binfilters" enable
[fa29663]246 <application>LibreOffice</application> to open legacy
[d2d3fc5]247 <application>Star Office</application> format documents. Compiling
248 <application>binfilter</application> requires
249 <application>Java</application>.
250 </para>
251
252 <para>
[604ba3d8]253 <option>--disable-gconf</option>: Remove this option if you want to
[fa29663]254 compile LibreOffice with GConf support.
[d2d3fc5]255 </para>
256
257 <para>
258 <option>--disable-mozilla</option>: This option stops
[fa29663]259 <application>LibreOffice</application> trying to compile an old version
[d2d3fc5]260 of <application>SeaMonkey</application>.
261 </para>
262
263 <para>
[9a1c6a74]264 <option>--disable-odk</option>: This option disables installing the
[a6af3ab9]265 office development kit. Remove this option if you want to develop a
[fa29663]266 <application>LibreOffice</application> based application.
[d2d3fc5]267 </para>
268
[4c796cf]269 <para>
270 <option>--disable-postgresql-sdbc</option>: This option disables compiling
[fa29663]271 LibreOffice with the ability to connect to a PostgreSQL database. If you
272 would like LibreOffice to be able to connect to a PostgreSQL database
[4c796cf]273 remove this option. If you have installed PostgreSQL on your system and
[fa29663]274 would like LibreOffice to use that rather than compile its own copy, add
[4c796cf]275 the option <option>--with-system-postgresql</option>.
276 </para>
277
[d2d3fc5]278 <para>
[9a1c6a74]279 <option>--with-system- ...</option>: These options prevent
[fa29663]280 <application>LibreOffice</application> trying to compile its own
[a6af3ab9]281 versions of these dependencies. If you've not installed
282 some of the dependencies, remove the corresponding option.
[d2d3fc5]283 </para>
284
285 <para>
286 <option>--with-num-cpus=$(getconf _NPROCESSORS_ONLN)</option>: This option
[fa29663]287 tells <application>LibreOffice</application> to use all your CPUs to
[4c796cf]288 compile in parallel and speed up the build.
[d2d3fc5]289 </para>
290
291 <para>
292 <option>--with-lang="pt-BR"</option>: This option sets what languages to
[19d81f7]293 support. en-US is always included by default. To list several languages,
294 separate them with a space. For all languages, use --with-lang=ALL
[4c796cf]295 </para>
296
297 <para>
298 For a list of the available languages, configure it --with-lang=ALL and
299 then after you've run ./download:
300 <command>ls translations/source</command>
[d2d3fc5]301 </para>
302
303 <para>
304 <option>--without-java</option>: This option compiles
[fa29663]305 <application>LibreOffice</application> without
[d2d3fc5]306 <application>Java</application> support.
307 </para>
308
309 <para>
[5b9edb4]310 <option>--with-vendor=LFS-BLFS</option>: This option sets LFS-BLFS as the
311 vendor which is mentioned when you click About on the toolbar.
312 </para>
313
314 <para>
315 <command>./download</command>: The build process runs the
[8e2c769]316 <command>download</command> script which downloads some 470 MB of
317 tarballs. We run the download script to get it out of the way at the
[5b9edb4]318 start so we can make a backup copy of the downloaded files.
[d2d3fc5]319 </para>
320
321 <para>
[5b9edb4]322 <command>mkdir -p ../libreoffice-downloads;
[8e2c769]323 cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} src/*LICENSE*
324 ../libreoffice-downloads</command>: this makes a backup copy
[5b9edb4]325 of the downloaded files so you don't have to download them again if you
[fa29663]326 decide to recompile <application>LibreOffice</application>. In that case,
[5b9edb4]327 just start with:
328 <command>mkdir src; cp ../libreoffice-downloads/* src</command>
[d2d3fc5]329 </para>
330
331 <para>
332 <command>for program in base calc draw impress math writer ...</command>:
333 These commands create 6 simple shell scripts in
334 <filename class="directory">/usr/bin</filename> that can be used to launch
[fa29663]335 <application>LibreOffice</application> in its various forms. If you like
336 seeing the <application>LibreOffice</application> splash screen, remove
[4f304a0a]337 the "--nologo" option.
[d2d3fc5]338 </para>
339
340 <para>
341 <command>for res in 16 32 48 128 256 ...</command>: These commands copy
342 various icons into the hicolor icon theme used by
343 <application>Gtk+</application>.
344 </para>
345
346 <para>
347 <command>gtk-update-icon-cache /usr/share/icons/hicolor</command>: This
[a6af3ab9]348 command rebuilds
[9a1c6a74]349 <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to include
[a6af3ab9]350 the new icons.
[d2d3fc5]351 </para>
[8c853a1]352
[d2d3fc5]353 </sect2>
354
355 <sect2 role="configuration">
[fa29663]356 <title>Configuring LibreOffice</title>
[d2d3fc5]357
358 <para>
359 If you use a desktop environment like <application>Gnome</application>
360 or <application>KDE</application> and want the programs to show up in the
361 panel's menu, as the <systemitem class="username">root</systemitem> user,
362 create some simple desktop files:
363 </para>
364
[c099902d]365<screen role="root"><userinput>mkdir -p /usr/share/applications &amp;&amp;
366for program in base calc draw impress math writer
[d2d3fc5]367do echo "[Desktop Entry]
368Encoding=UTF-8
369Type=Application
370Name=${program^}
[fa29663]371Comment=LibreOffice ${program^}
[d2d3fc5]372Icon=${program}
373Exec=${program}
374Categories=Office;Application;
375StartupNotify=true
376Terminal=false" > /usr/share/applications/${program}.desktop
[4f304a0a]377done &amp;&amp;
378echo "[Desktop Entry]
379Encoding=UTF-8
380Type=Application
381Name=Printer Administration
[fa29663]382Comment=LibreOffice Printer Administration
[4f304a0a]383Icon=printeradmin
384Exec=printeradmin
[2511f83]385Categories=Office;Printing;Application;
[4f304a0a]386StartupNotify=true
387Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
[d2d3fc5]388 </sect2>
389
390 <sect2 role="content">
391 <title>Contents</title>
392
393 <segmentedlist>
394 <segtitle>Installed Programs</segtitle>
[8c853a1]395 <segtitle>Installed Directory</segtitle>
[d2d3fc5]396
397 <seglistitem>
[4c796cf]398 <seg>
[8c853a1]399 base, calc, draw, impress, math,
400 printeradmin and writer
401 </seg>
[d2d3fc5]402 <seg>
[8c853a1]403 /usr/lib/libreoffice
[d2d3fc5]404 </seg>
405 </seglistitem>
406 </segmentedlist>
407
408 <variablelist>
409 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
410 <?dbfo list-presentation="list"?>
411 <?dbhtml list-presentation="table"?>
412
413 <varlistentry id="base">
414 <term><command>base</command></term>
415 <listitem>
416 <para>
417 is a database manager.
418 </para>
419 <indexterm zone="libreoffice base">
420 <primary sortas="b-base">base</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
425 <varlistentry id="calc">
426 <term><command>calc</command></term>
427 <listitem>
428 <para>
429 is a spreadsheet program.
430 </para>
431 <indexterm zone="libreoffice calc">
432 <primary sortas="b-calc">calc</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="draw">
438 <term><command>draw</command></term>
439 <listitem>
440 <para>
441 is a vector graphics editor and diagramming tool.
442 </para>
443 <indexterm zone="libreoffice draw">
444 <primary sortas="b-draw">draw</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="impress">
450 <term><command>impress</command></term>
451 <listitem>
452 <para>
453 can edit and display powerpoint presentations.
454 </para>
455 <indexterm zone="libreoffice impress">
456 <primary sortas="b-impress">impress</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="math">
462 <term><command>math</command></term>
463 <listitem>
464 <para>
465 is a mathematical formula editor.
466 </para>
467 <indexterm zone="libreoffice math">
468 <primary sortas="b-math">math</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
[2511f83]473 <varlistentry id="printeradmin">
474 <term><command>printeradmin</command></term>
475 <listitem>
476 <para>
477 is a graphical interface to enable you to change your personal
478 printing preferences, which are saved in
479 <filename>~/.cups/lpoptions</filename>.
480 </para>
481 <indexterm zone="libreoffice printeradmin">
482 <primary sortas="b-printeradmin">printeradmin</primary>
483 </indexterm>
484 </listitem>
485 </varlistentry>
486
[8d5cd1bb]487 <varlistentry id="unopkg">
488 <term><command>unopkg</command></term>
489 <listitem>
490 <para>
[fa29663]491 is a tool to manage <application>LibreOffice</application>
[8d5cd1bb]492 extensions from the command line.
493 </para>
494 <indexterm zone="libreoffice unopkg">
495 <primary sortas="b-unopkg">unopkg</primary>
496 </indexterm>
497 </listitem>
498 </varlistentry>
499
[d2d3fc5]500 <varlistentry id="writer">
501 <term><command>writer</command></term>
502 <listitem>
503 <para>
504 is a word processor.
505 </para>
506 <indexterm zone="libreoffice writer">
507 <primary sortas="b-writer">writer</primary>
508 </indexterm>
509 </listitem>
510 </varlistentry>
[8c853a1]511
[d2d3fc5]512 </variablelist>
[8c853a1]513
[d2d3fc5]514 </sect2>
[8c853a1]515
[d2d3fc5]516</sect1>
Note: See TracBrowser for help on using the repository browser.