source: xsoft/office/libreoffice.xml@ a1d9eed

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 a1d9eed was a1d9eed, checked in by Krejzi <krejzi@…>, 11 years ago

LibreOffice 3.6.3

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

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