source: xsoft/office/libreoffice.xml@ 601a838

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 601a838 was 601a838, checked in by Randy McMurchy <randy@…>, 12 years ago

Fixed typos and added missing XML tags

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

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