source: xsoft/office/libreoffice.xml@ d97601a

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

Libre Office tweaks.
The dependencies are still a work in progress.

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

  • Property mode set to 100644
File size: 18.8 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/3.5.2/libreoffice-core-&libreoffice-version;.tar.xz">
9 <!ENTITY libreoffice-core-download-ftp " ">
10 <!ENTITY libreoffice-core-md5sum "a21156d5657b8619a523ffdc5cc0003e">
11 <!ENTITY libreoffice-core-size "99 MB">
12
13 <!ENTITY libreoffice-dictionaries-download-http
14 "http://download.documentfoundation.org/libreoffice/src/3.5.2/libreoffice-dictionaries-&libreoffice-version;.tar.xz">
15 <!ENTITY libreoffice-dictionaries-download-ftp " ">
16 <!ENTITY libreoffice-dictionaries-md5sum "782d0cecfccc200f8ad0a07f0cb53f08">
17 <!ENTITY libreoffice-dictionaries-size "31 MB">
18 <!ENTITY libreoffice-help-download-http
19 "http://download.documentfoundation.org/libreoffice/src/3.5.2/libreoffice-help-&libreoffice-version;.tar.xz">
20 <!ENTITY libreoffice-help-download-ftp " ">
21 <!ENTITY libreoffice-help-md5sum "3c064a24191274fcd8fd466ce9d5dc42">
22 <!ENTITY libreoffice-help-size "2 MB">
23
24 <!ENTITY libreoffice-translations-download-http
25 "http://download.documentfoundation.org/libreoffice/src/3.5.2/libreoffice-translations-&libreoffice-version;.tar.xz">
26 <!ENTITY libreoffice-translations-download-ftp " ">
27 <!ENTITY libreoffice-translations-md5sum "17ebcd0d25e716d3905b1a905907fd67">
28 <!ENTITY libreoffice-translations-size "11.7 MB">
29
30 <!ENTITY libreoffice-buildsize "6 GB (379 MB installed)">
31 <!ENTITY libreoffice-time "61 SBU">
32]>
33
34<sect1 id="libreoffice" xreflabel="Libre-Office-&libreoffice-version;">
35 <?dbhtml filename="libreoffice.html"?>
36
37 <sect1info>
38 <othername>$LastChangedBy$</othername>
39 <date>$Date$</date>
40 </sect1info>
41
42 <title>Libre Office &libreoffice-version;</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="gtk2"/> or <xref linkend="gtk3"/>,
163 <application>Perl Modules</application>
164 <xref linkend="perl-xml-parser"/> and
165 <xref linkend="perl-archive-zip"/>,
166 <xref linkend="unzip"/>,
167 <xref linkend="zip"/> and
168 <xref linkend="which"/>.
169 </para>
170
171 <bridgehead renderas="sect4">Recommended</bridgehead>
172 <note>
173 <para>
174 These packages are recommend because if they're not installed the build
175 process will compile and install its own (often older) version.
176 </para>
177 </note>
178
179 <para role="recommended">
180 <xref linkend="boost"/>,
181 <xref linkend="curl"/>,
182 <xref linkend="db"/>,
183 <xref linkend="expat"/>,
184 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
185 <xref linkend="libjpeg"/>,
186 <xref linkend="libgsf"/>,
187 <xref linkend="libpng"/>,
188 <xref linkend="librsvg"/>,
189 <xref linkend="libxml2"/> and <xref linkend="libxslt"/>,
190 <xref linkend="neon"/>,
191 <xref linkend="nss"/>,
192 <xref linkend="openssl"/>,
193 <xref linkend="poppler"/>,
194 <xref linkend="postgresql"/> and
195 <xref linkend="redland"/>.
196 </para>
197
198 <bridgehead renderas="sect4">Optional</bridgehead>
199 <para role="optional">
200 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
201 <ulink url="http://sampleicc.sourceforge.net/">SampleICC</ulink>,
202 <ulink url="http://hci.iwr.uni-heidelberg.de/vigra">Vigra</ulink> and
203 <xref linkend="zenity"/>
204 .
205 </para>
206
207 <para condition="html" role="usernotes">
208 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
209 </para>
210 </sect2>
211
212 <sect2 role="installation">
213 <title>Installation of Libre Office</title>
214
215 <warning>
216 <para>
217 Untaring the libreoffice-core-3.5.2.2 tarball as
218 <systemitem class="username">root</systemitem> has the curious effect of
219 changing the ownership of the <emphasis>parent</emphasis> directory
220 to a user with numerical id 11012 and with the permissions set to allow
221 read, write and execute for that user only! If you untared as
222 <systemitem class="username">root</systemitem> in your home folder you
223 could end up unable to log in again. If you untared it in
224 <filename class="directory">/usr</filename> you would find your user
225 account unable to access any file in
226 <filename class="directory">/usr</filename> :/
227 </para>
228
229 <para>
230 You can avoid this unpleasantness by
231 <emphasis>not</emphasis> untaring it as
232 <systemitem class="username">root</systemitem>. If you must untar it as
233 <systemitem class="username">root</systemitem> pass the option
234 <option>--no-overwrite-dir</option> to tar. This is the default when you
235 untar as a user but has to be passed as an option when untaring as
236 <systemitem class="username">root</systemitem>:
237 </para>
238 </warning>
239
240<screen role="root"><userinput>tar xf --no-overwrite-dir libreoffice-core-&libreoffice-version;.tar.xz &amp;&amp;
241cd libreoffice-core-&libreoffice-version;</userinput></screen>
242
243 <para>
244 Install <application>Libre Office</application> by running the following
245 commands:
246 </para>
247
248<screen><userinput>tar -xf ../libreoffice-translations-&libreoffice-version;.tar.xz --strip-components=1 &amp;&amp;
249tar -xf ../libreoffice-help-&libreoffice-version;.tar.xz --strip-components=1 &amp;&amp;
250tar -xf ../libreoffice-dictionaries-&libreoffice-version;.tar.xz --strip-components=1 &amp;&amp;
251./autogen.sh --prefix=/usr \
252 --disable-binfilter \
253 --disable-gconf \
254 --disable-mozilla \
255 --disable-odk \
256 --with-system-boost \
257 --with-system-cairo \
258 --with-system-curl \
259 --with-system-db \
260 --with-system-expat \
261 --with-system-hunspell \
262 --with-system-icu \
263 --with-system-jpeg \
264 --with-system-libpng \
265 --with-system-libxml \
266 --with-system-neon \
267 --with-system-nss \
268 --with-system-openssl \
269 --with-system-poppler \
270 --with-system-postgresql \
271 --with-system-redland \
272 --with-system-zlib \
273 --with-num-cpus=$(getconf _NPROCESSORS_ONLN) \
274 --with-vendor="BLFS" \
275 --with-lang="pt-BR" \
276 --without-java &amp;&amp;
277./download &amp;&amp;
278mkdir -p ../libre-office-downloads &amp;&amp;
279cp -rf src/* ../libre-office-downloads &amp;&amp;
280make</userinput></screen>
281
282 <para>
283 This package does not come with a test suite.
284 </para>
285
286 <para>
287 Now, as the <systemitem class="username">root</systemitem> user:
288 </para>
289
290<screen role="root"><userinput>make install &amp;&amp;
291for program in base calc draw impress math writer
292do
293 echo "#!/bin/bash
294 exec /usr/lib/libreoffice/program/soffice --${program} \"\${@}\"" > /usr/bin/${program}
295 chmod 755 /usr/bin/${program}
296done &amp;&amp;
297for res in 16 32 48 128 256
298do
299 mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
300 cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
301 /usr/share/icons/hicolor/${res}x${res}/apps
302 cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
303 /usr/share/icons/hicolor/${res}x${res}/mimetypes
304done &amp;&amp;
305gtk-update-icon-cache /usr/share/icons/hicolor</userinput></screen>
306 </sect2>
307
308 <sect2 role="commands">
309 <title>Command Explanations</title>
310
311 <para>
312 <command>tar -xf ../libreoffice-translations-&libreoffice-version;.tar.xz
313 --strip-components=1</command>: This untars the translations inside the
314 source. The <option>--strip-components=1</option> option removes the
315 leading directory from the path of the untared files. Without this option
316 we would need to move or symlink the
317 <filename class="directory">translations</filename> folder into the
318 correct position.
319 </para>
320
321 <para>
322 <command>tar -xf ../libreoffice-help-&libreoffice-version;.tar.xz
323 --strip-components=1</command>: This untars the help files inside the
324 source. The <option>--strip-components=1</option> option removes the
325 leading directory from the path of the untared files. Without this option
326 we would need to move or symlink the
327 <filename class="directory">helpcontent2</filename> folder into the
328 correct position.
329 </para>
330
331 <para>
332 <command>tar -xf ../libreoffice-dictionaries-&libreoffice-version;.tar.xz
333 --strip-components=1</command>: This untars the dictionaries inside the
334 source. The <option>--strip-components=1</option> option removes the
335 leading directory from the path of the untared files. Without this option
336 we would need to move or symlink the
337 <filename class="directory">dictionaries</filename> folder into the
338 correct position.
339 </para>
340
341 <para>
342 <option>--enable-gtk3</option>: add this option if you've installed and
343 want to use <application>Gtk+-3</application>.
344 </para>
345
346 <para>
347 <option>--disable-binfilter</option>: These "binfilters" enable
348 <application>Libre Office</application> to open legacy
349 <application>Star Office</application> format documents. Compiling
350 <application>binfilter</application> requires
351 <application>Java</application>.
352 </para>
353
354 <para>
355 <option>--disable-gconf</option>: Compiling with support for
356 <application>GConf</application> requires the deprecated
357 <application>ORBit</application>.
358 </para>
359
360 <para>
361 <option>--disable-mozilla</option>: This option stops
362 <application>Libre Office</application> trying to compile an old version
363 of <application>SeaMonkey</application>.
364 </para>
365
366 <para>
367 <option>--disable-odk</option>: This disables installing the office
368 development kit. remove this option if you want to develop a
369 <application>Libre Office</application> based application.
370 </para>
371
372 <para>
373 <option>--with-system- ...</option>: These options stops it trying to
374 compile its own versions of these dependencies. If you've not installed
375 some of these dependencies remove the corresponding option.
376 </para>
377
378 <para>
379 <option>--with-num-cpus=$(getconf _NPROCESSORS_ONLN)</option>: This option
380 tells it to use all your CPUs to compile in parallel and speed up the
381 build.
382 </para>
383
384 <para>
385 <option>--with-lang="pt-BR"</option>: This option sets what languages to
386 support. en-US is always included by default. For a list of the available
387 options: <command>ls translations/source</command>.
388 </para>
389
390 <para>
391 <option>--without-java</option>: This option compiles
392 <application>Libre Office</application> without
393 <application>Java</application> support.
394 </para>
395
396 <para>
397 <command>./download</command>: The <command>download</command> script
398 downloads the source to a collection of things that might be needed during
399 the build process.
400 </para>
401
402 <para>
403 <command>mkdir -p ../libre-office-downloads;
404 cp -rf src/* ../libre-office-downloads</command>: The
405 <command>download</command> script downloads some 320MB of source
406 tarballs, many of which are not not needed as they are probably already
407 installed on your system. This command makes a backup copy of the
408 downloaded files so you don't have to download them again if you decide to
409 recompile <application>Libre Office</application>. In that case, just
410 start by <command>mkdir src; cp ../libre-office-downloads/* src</command>
411 </para>
412
413 <para>
414 <command>for program in base calc draw impress math writer ...</command>:
415 These commands create 6 simple shell scripts in
416 <filename class="directory">/usr/bin</filename> that can be used to launch
417 <application>Libre Office</application>.
418 </para>
419
420 <para>
421 <command>for res in 16 32 48 128 256 ...</command>: These commands copy
422 various icons into the hicolor icon theme used by
423 <application>Gtk+</application>.
424 </para>
425
426 <para>
427 <command>gtk-update-icon-cache /usr/share/icons/hicolor</command>: This
428 rebuilds <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to
429 include the new icons.
430 </para>
431 </sect2>
432
433 <sect2 role="configuration">
434 <title>Configuring Libre Office</title>
435
436 <para>
437 If you use a desktop environment like <application>Gnome</application>
438 or <application>KDE</application> and want the programs to show up in the
439 panel's menu, as the <systemitem class="username">root</systemitem> user,
440 create some simple desktop files:
441 </para>
442
443<screen role="root"><userinput>for program in base calc draw impress math writer
444do echo "[Desktop Entry]
445Encoding=UTF-8
446Type=Application
447Name=${program^}
448Comment=Libre Office ${program^}
449Icon=${program}
450Exec=${program}
451Categories=Office;Application;
452StartupNotify=true
453Terminal=false" > /usr/share/applications/${program}.desktop
454done</userinput></screen>
455 </sect2>
456
457 <sect2 role="content">
458 <title>Contents</title>
459
460 <segmentedlist>
461 <segtitle>Installed Programs</segtitle>
462 <segtitle>Installed Libraries</segtitle>
463 <segtitle>Installed Directory</segtitle>
464
465 <seglistitem>
466 <seg>base, calc, draw, impress, math and writer.</seg>
467 <seg>
468 Hundreds of shared libraries in
469 <filename class="directory">/usr/lib/libreoffice</filename>.
470 </seg>
471 <seg>/usr/lib/libreoffice.</seg>
472 </seglistitem>
473 </segmentedlist>
474
475 <variablelist>
476 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
477 <?dbfo list-presentation="list"?>
478 <?dbhtml list-presentation="table"?>
479
480 <varlistentry id="base">
481 <term><command>base</command></term>
482 <listitem>
483 <para>
484 is a database manager.
485 </para>
486 <indexterm zone="libreoffice base">
487 <primary sortas="b-base">base</primary>
488 </indexterm>
489 </listitem>
490 </varlistentry>
491
492 <varlistentry id="calc">
493 <term><command>calc</command></term>
494 <listitem>
495 <para>
496 is a spreadsheet program.
497 </para>
498 <indexterm zone="libreoffice calc">
499 <primary sortas="b-calc">calc</primary>
500 </indexterm>
501 </listitem>
502 </varlistentry>
503
504 <varlistentry id="draw">
505 <term><command>draw</command></term>
506 <listitem>
507 <para>
508 is a vector graphics editor and diagramming tool.
509 </para>
510 <indexterm zone="libreoffice draw">
511 <primary sortas="b-draw">draw</primary>
512 </indexterm>
513 </listitem>
514 </varlistentry>
515
516 <varlistentry id="impress">
517 <term><command>impress</command></term>
518 <listitem>
519 <para>
520 can edit and display powerpoint presentations.
521 </para>
522 <indexterm zone="libreoffice impress">
523 <primary sortas="b-impress">impress</primary>
524 </indexterm>
525 </listitem>
526 </varlistentry>
527
528 <varlistentry id="math">
529 <term><command>math</command></term>
530 <listitem>
531 <para>
532 is a mathematical formula editor.
533 </para>
534 <indexterm zone="libreoffice math">
535 <primary sortas="b-math">math</primary>
536 </indexterm>
537 </listitem>
538 </varlistentry>
539
540 <varlistentry id="writer">
541 <term><command>writer</command></term>
542 <listitem>
543 <para>
544 is a word processor.
545 </para>
546 <indexterm zone="libreoffice writer">
547 <primary sortas="b-writer">writer</primary>
548 </indexterm>
549 </listitem>
550 </varlistentry>
551 </variablelist>
552 </sect2>
553</sect1>
Note: See TracBrowser for help on using the repository browser.