source: xsoft/office/libreoffice.xml@ ec64d28

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

Minor text fixes

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

  • Property mode set to 100644
File size: 17.6 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 "6e88d3a83691cb8ee5081487c8345a6a">
11 <!ENTITY libreoffice-core-size "103 MB">
12 <!ENTITY libreoffice-buildsize "5.5 GB (450 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">LibreOffice Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <xref linkend="cups"/>,
80 <xref linkend="curl"/> or <xref linkend="wget"/>,
81 <xref linkend="gperf"/>,
82 <xref linkend="gtk2"/> or <xref linkend="gtk3"/>,
83 <application>Perl Modules</application>
84 <xref linkend="perl-archive-zip"/> and
85 <xref linkend="perl-xml-parser"/>,
86 <xref linkend="unzip"/>,
87 <xref linkend="which"/> and
88 <xref linkend="zip"/>.
89 </para>
90
91 <bridgehead renderas="sect4">Recommended</bridgehead>
92 <note>
93 <para>
94 Most of these packages are recommended because if they're not installed,
95 the build process will compile and install its own (often older)
96 version. If you're using <application>GCC 4.7</application>, some of
97 those older packages will fail to compile.
98 </para>
99 </note>
100
101 <para role="recommended">
102 <xref linkend="boost"/>,
103 <xref linkend="db"/>,
104 <xref linkend="expat"/>,
105 <xref linkend="gst-plugins-base"/>,
106 <xref linkend="libjpeg"/>,
107 <xref linkend="libgsf"/>,
108 <xref linkend="libpng"/>,
109 <xref linkend="librsvg"/>,
110 <xref linkend="libxml2"/> and <xref linkend="libxslt"/>,
111 <xref linkend="neon"/>,
112 <xref linkend="nss"/>,
113 <xref linkend="poppler"/>,
114 <xref linkend="openssl"/> and
115 <xref linkend="redland"/>.
116 </para>
117
118 <bridgehead renderas="sect4">Optional</bridgehead>
119 <para role="optional">
120 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
121 <xref linkend="mysql"/>,
122 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
123 <xref linkend="postgresql"/>,
124 <ulink url="http://sampleicc.sourceforge.net/">SampleICC</ulink>,
125 <ulink url="http://hci.iwr.uni-heidelberg.de/vigra">Vigra</ulink> and
126 <xref linkend="zenity"/>.
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">
135 <title>Installation of LibreOffice</title>
136
137 <warning>
138 <para>
139 Untaring the libreoffice-core-&libreoffice-dlversion; tarball as
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
145 could end up unable to log in again :/ If you untared it in
146 <filename class="directory">/usr</filename> you would find your user
147 account unable to access any file in
148 <filename class="directory">/usr</filename>.
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
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>
164
165 <para>
166 Install <application>LibreOffice</application> by running the following
167 commands:
168 </para>
169
170<screen><userinput>./autogen.sh --prefix=/usr \
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;
198make</userinput></screen>
199
200 <para>
201 This package does not come with a test suite.
202 </para>
203
204 <para>
205 Now, as the <systemitem class="username">root</systemitem> user:
206 </para>
207
208<screen role="root"><userinput>make install &amp;&amp;
209SOFFICE=/usr/lib/libreoffice/program/soffice &amp;&amp;
210for program in base calc draw impress math writer
211do
212 echo '#!/bin/bash' > /usr/bin/${program}
213 echo "exec ${SOFFICE} --nologo --${program} \"\${@}\"" >> /usr/bin/${program}
214 chmod 755 /usr/bin/${program}
215done &amp;&amp;
216unset SOFFICE &amp;&amp;
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;
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>
233
234 <para>
235 <option>--enable-gtk3</option>: Add this option if you've installed and
236 want to use <application>Gtk+-3</application>.
237 </para>
238
239 <para>
240 <option>--disable-gstreamer</option>: Add this option if you've not
241 installed <xref linkend="gst-plugins-base"/>.
242 </para>
243
244 <para>
245 <option>--disable-binfilter</option>: These "binfilters" enable
246 <application>LibreOffice</application> to open legacy
247 <application>Star Office</application> format documents. Compiling
248 <application>binfilter</application> requires
249 <application>Java</application>.
250 </para>
251
252 <para>
253 <option>--disable-gconf</option>: Remove this option if you want to
254 compile LibreOffice with GConf support.
255 </para>
256
257 <para>
258 <option>--disable-mozilla</option>: This option stops
259 <application>LibreOffice</application> trying to compile an old version
260 of <application>SeaMonkey</application>.
261 </para>
262
263 <para>
264 <option>--disable-odk</option>: This option disables installing the
265 office development kit. Remove this option if you want to develop a
266 <application>LibreOffice</application> based application.
267 </para>
268
269 <para>
270 <option>--disable-postgresql-sdbc</option>: This option disables compiling
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
273 remove this option. If you have installed PostgreSQL on your system and
274 would like LibreOffice to use that rather than compile its own copy, add
275 the option <option>--with-system-postgresql</option>.
276 </para>
277
278 <para>
279 <option>--with-system- ...</option>: These options prevent
280 <application>LibreOffice</application> trying to compile its own
281 versions of these dependencies. If you've not installed
282 some of the dependencies, remove the corresponding option.
283 </para>
284
285 <para>
286 <option>--with-num-cpus=$(getconf _NPROCESSORS_ONLN)</option>: This option
287 tells <application>LibreOffice</application> to use all your CPUs to
288 compile in parallel and speed up the build.
289 </para>
290
291 <para>
292 <option>--with-lang="pt-BR"</option>: This option sets what languages to
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
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>
301 </para>
302
303 <para>
304 <option>--without-java</option>: This option compiles
305 <application>LibreOffice</application> without
306 <application>Java</application> support.
307 </para>
308
309 <para>
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
316 <command>download</command> script which downloads some 470 MB of
317 tarballs. The download script is ran to get it out of the way at the
318 start so a backup copy of the downloaded files are on hand.
319 </para>
320
321 <para>
322 <command>mkdir -p ../libreoffice-downloads;
323 cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} src/*LICENSE*
324 ../libreoffice-downloads</command>: this makes a backup copy
325 of the downloaded files so you don't have to download them again if you
326 decide to recompile <application>LibreOffice</application>. In that case,
327 just start with:
328 <command>mkdir src; cp ../libreoffice-downloads/* src</command>
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
335 <application>LibreOffice</application> in its various forms. If you like
336 seeing the <application>LibreOffice</application> splash screen, remove
337 the "--nologo" option.
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
348 command rebuilds
349 <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to include
350 the new icons.
351 </para>
352
353 </sect2>
354
355 <sect2 role="configuration">
356 <title>Configuring LibreOffice</title>
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
365<screen role="root"><userinput>mkdir -p /usr/share/applications &amp;&amp;
366for program in base calc draw impress math writer
367do echo "[Desktop Entry]
368Encoding=UTF-8
369Type=Application
370Name=${program^}
371Comment=LibreOffice ${program^}
372Icon=${program}
373Exec=${program}
374Categories=Office;Application;
375StartupNotify=true
376Terminal=false" > /usr/share/applications/${program}.desktop
377done &amp;&amp;
378echo "[Desktop Entry]
379Encoding=UTF-8
380Type=Application
381Name=Printer Administration
382Comment=LibreOffice Printer Administration
383Icon=printeradmin
384Exec=printeradmin
385Categories=Office;Printing;Application;
386StartupNotify=true
387Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
388 </sect2>
389
390 <sect2 role="content">
391 <title>Contents</title>
392
393 <segmentedlist>
394 <segtitle>Installed Programs</segtitle>
395 <segtitle>Installed Directory</segtitle>
396
397 <seglistitem>
398 <seg>
399 base, calc, draw, impress, math,
400 printeradmin and writer
401 </seg>
402 <seg>
403 /usr/lib/libreoffice
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
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
487 <varlistentry id="unopkg">
488 <term><command>unopkg</command></term>
489 <listitem>
490 <para>
491 is a tool to manage <application>LibreOffice</application>
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
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>
511
512 </variablelist>
513
514 </sect2>
515
516</sect1>
Note: See TracBrowser for help on using the repository browser.