source: xsoft/office/libreoffice.xml@ 5b9edb4

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 5b9edb4 was 5b9edb4, checked in by Andrew Benton <andy@…>, 12 years ago

Libreoffice 3.5.3.2

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

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