source: xsoft/office/libreoffice.xml@ e1d8846

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 e1d8846 was e1d8846, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Clarify libreoffice install instructions

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

  • Property mode set to 100644
File size: 16.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/&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 <!ENTITY libreoffice-buildsize "6.1 GB (337 MB installed)">
13 <!ENTITY libreoffice-time "121 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;.2</title>
25
26 <indexterm zone="libreoffice">
27 <primary sortas="a-libreoffice">libreoffice</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Libre Office</title>
32
33 <para>
34 <application>Libre Office</application> is a collection of programs for
35 creating and editing office documents. It is largely compatible with
36 <application>Microsoft Office</application> and
37 <application>Open Office</application> on which it is based.
38 </para>
39
40 &lfs71_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Core Download (HTTP): <ulink url="&libreoffice-core-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Core Download (FTP): <ulink url="&libreoffice-core-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Core Download MD5 sum: &libreoffice-core-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Core Download size: &libreoffice-core-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &libreoffice-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &libreoffice-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Libre Office Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Required</bridgehead>
79 <para role="required">
80 <xref linkend="cups"/>,
81 <xref linkend="curl"/> or <xref linkend="wget"/>,
82 <xref linkend="gperf"/>,
83 <xref linkend="gtk2"/> or <xref linkend="gtk3"/>,
84 <application>Perl Modules</application>
85 <xref linkend="perl-archive-zip"/> and
86 <xref linkend="perl-xml-parser"/>,
87 <xref linkend="unzip"/>,
88 <xref linkend="which"/> and
89 <xref linkend="zip"/>.
90 </para>
91
92 <bridgehead renderas="sect4">Recommended</bridgehead>
93 <note>
94 <para>
95 Most of these packages are recommend because if they're not installed
96 the build process will compile and install its own (often older)
97 version. If you're using <application>GCC 4.7</application> some of
98 those older packages will fail to compile.
99 </para>
100 </note>
101
102 <para role="recommended">
103 <xref linkend="boost"/>,
104 <xref linkend="db"/>,
105 <xref linkend="expat"/>,
106 <xref linkend="gst-plugins-base"/>,
107 <xref linkend="libjpeg"/>,
108 <xref linkend="libgsf"/>,
109 <xref linkend="libpng"/>,
110 <xref linkend="librsvg"/>,
111 <xref linkend="libxml2"/> and <xref linkend="libxslt"/>,
112 <xref linkend="neon"/>,
113 <xref linkend="nss"/>,
114 <xref linkend="openssl"/>,
115 <xref linkend="poppler"/>,
116 <xref linkend="postgresql"/> and
117 <xref linkend="redland"/>.
118 </para>
119
120 <bridgehead renderas="sect4">Optional</bridgehead>
121 <para role="optional">
122 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
123 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
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 Libre Office</title>
136
137 <warning>
138 <para>
139 Untaring the libreoffice-core-&libreoffice-version;.2 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-version;.2.tar.xz --no-overwrite-dir &amp;&amp;
163cd libreoffice-core-&libreoffice-version;.2</userinput></screen>
164
165 <para>
166 Install <application>Libre Office</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 --with-system-boost \
176 --with-system-cairo \
177 --with-system-curl \
178 --with-system-db \
179 --with-system-expat \
180 --with-system-hunspell \
181 --with-system-icu \
182 --with-system-jpeg \
183 --with-system-libpng \
184 --with-system-libxml \
185 --with-system-neon \
186 --with-system-nss \
187 --with-system-openssl \
188 --with-system-poppler \
189 --with-system-postgresql \
190 --with-system-redland \
191 --with-system-zlib \
192 --with-lang="pt-BR" \
193 --without-java \
194 --with-num-cpus=$(getconf _NPROCESSORS_ONLN) &amp;&amp;
195./download &amp;&amp;
196mkdir -p ../libreoffice-downloads &amp;&amp;
197cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} \
198 src/*LICENSE* ../libreoffice-downloads &amp;&amp;
199make</userinput></screen>
200
201 <para>This package does not come with a test suite.</para>
202
203 <para>
204 Now, as the <systemitem class="username">root</systemitem> user:
205 </para>
206
207<screen role="root"><userinput>make install &amp;&amp;
208SOFFICE=/usr/lib/libreoffice/program/soffice &amp;&amp;
209for program in base calc draw impress math writer
210do
211 echo '#!/bin/bash' > /usr/bin/${program}
212 echo "exec $SOFFICE --nologo --${program} \"\${@}\"" >> /usr/bin/${program}
213 chmod 755 /usr/bin/${program}
214done &amp;&amp;
215unset SOFFICE &amp;&amp;
216ln -s ../lib/libreoffice/program/spadmin /usr/bin/printeradmin &amp;&amp;
217ln -s ../lib/libreoffice/program/unopkg /usr/bin &amp;&amp;
218cp sysui/desktop/man/{libreoffice,unopkg}.1 /usr/share/man/man1 &amp;&amp;
219for res in 16 32 48 128 256
220do
221 mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
222 cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
223 /usr/share/icons/hicolor/${res}x${res}/apps
224 cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
225 /usr/share/icons/hicolor/${res}x${res}/mimetypes
226done &amp;&amp;
227gtk-update-icon-cache /usr/share/icons/hicolor</userinput></screen>
228 </sect2>
229
230 <sect2 role="commands">
231 <title>Command Explanations</title>
232
233 <para>
234 <option>--enable-gtk3</option>: Add this option if you've installed and
235 want to use <application>Gtk+-3</application>.
236 </para>
237
238 <para>
239 <option>--disable-gstreamer</option>: Add this option if you've not
240 installed <xref linkend="gst-plugins-base"/>.
241 </para>
242
243 <para>
244 <option>--disable-binfilter</option>: These "binfilters" enable
245 <application>Libre Office</application> to open legacy
246 <application>Star Office</application> format documents. Compiling
247 <application>binfilter</application> requires
248 <application>Java</application>.
249 </para>
250
251 <para>
252 <option>--disable-gconf</option>: Compiling with support for
253 <application>GConf</application> requires the deprecated
254 <application>ORBit</application>.
255 </para>
256
257 <para>
258 <option>--disable-mozilla</option>: This option stops
259 <application>Libre Office</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>Libre Office</application> based application.
267 </para>
268
269 <para>
270 <option>--with-system- ...</option>: These options prevent
271 <application>Libre Office</application> trying to compile its own
272 versions of these dependencies. If you've not installed
273 some of the dependencies, remove the corresponding option.
274 </para>
275
276 <para>
277 <option>--with-num-cpus=$(getconf _NPROCESSORS_ONLN)</option>: This option
278 tells <application>Libre Office</application> to use all your CPUs to compile
279 in parallel and speed up the build.
280 </para>
281
282 <para>
283 <option>--with-lang="pt-BR"</option>: This option sets what languages to
284 support. en-US is always included by default. For a list of the available
285 options: <command>ls translations/source</command>.
286 </para>
287
288 <para>
289 <option>--without-java</option>: This option compiles
290 <application>Libre Office</application> without
291 <application>Java</application> support.
292 </para>
293
294 <para>
295 <option>--with-vendor=LFS-BLFS</option>: This option sets LFS-BLFS as the
296 vendor which is mentioned when you click About on the toolbar.
297 </para>
298
299 <para>
300 <command>./download</command>: The build process runs the
301 <command>download</command> script which downloads some 470 MB of
302 tarballs. We run the download script to get it out of the way at the
303 start so we can make a backup copy of the downloaded files.
304 </para>
305
306 <para>
307 <command>mkdir -p ../libreoffice-downloads;
308 cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} src/*LICENSE*
309 ../libreoffice-downloads</command>: this makes a backup copy
310 of the downloaded files so you don't have to download them again if you
311 decide to recompile <application>Libre Office</application>. In that case,
312 just start with:
313 <command>mkdir src; cp ../libreoffice-downloads/* src</command>
314 </para>
315
316 <para>
317 <command>for program in base calc draw impress math writer ...</command>:
318 These commands create 6 simple shell scripts in
319 <filename class="directory">/usr/bin</filename> that can be used to launch
320 <application>Libre Office</application> in its various forms. If you like
321 seeing the <application>Libre Office</application> splash screen, remove
322 the "--nologo" option.
323 </para>
324
325 <para>
326 <command>for res in 16 32 48 128 256 ...</command>: These commands copy
327 various icons into the hicolor icon theme used by
328 <application>Gtk+</application>.
329 </para>
330
331 <para>
332 <command>gtk-update-icon-cache /usr/share/icons/hicolor</command>: This
333 command rebuilds
334 <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to include
335 the new icons.
336 </para>
337 </sect2>
338
339 <sect2 role="configuration">
340 <title>Configuring Libre Office</title>
341
342 <para>
343 If you use a desktop environment like <application>Gnome</application>
344 or <application>KDE</application> and want the programs to show up in the
345 panel's menu, as the <systemitem class="username">root</systemitem> user,
346 create some simple desktop files:
347 </para>
348
349<screen role="root"><userinput>mkdir -p /usr/share/applications &amp;&amp;
350for program in base calc draw impress math writer
351do echo "[Desktop Entry]
352Encoding=UTF-8
353Type=Application
354Name=${program^}
355Comment=Libre Office ${program^}
356Icon=${program}
357Exec=${program}
358Categories=Office;Application;
359StartupNotify=true
360Terminal=false" > /usr/share/applications/${program}.desktop
361done &amp;&amp;
362echo "[Desktop Entry]
363Encoding=UTF-8
364Type=Application
365Name=Printer Administration
366Comment=Libre Office Printer Administration
367Icon=printeradmin
368Exec=printeradmin
369Categories=Office;Printing;Application;
370StartupNotify=true
371Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
372 </sect2>
373
374 <sect2 role="content">
375 <title>Contents</title>
376
377 <segmentedlist>
378 <segtitle>Installed Programs</segtitle>
379 <segtitle>Installed Libraries</segtitle>
380 <segtitle>Installed Directory</segtitle>
381
382 <seglistitem>
383 <seg>base, calc, draw, impress, math, printeradmin and writer.</seg>
384 <seg>
385 Hundreds of shared libraries in
386 <filename class="directory">/usr/lib/libreoffice</filename>.
387 </seg>
388 <seg>/usr/lib/libreoffice.</seg>
389 </seglistitem>
390 </segmentedlist>
391
392 <variablelist>
393 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
394 <?dbfo list-presentation="list"?>
395 <?dbhtml list-presentation="table"?>
396
397 <varlistentry id="base">
398 <term><command>base</command></term>
399 <listitem>
400 <para>
401 is a database manager.
402 </para>
403 <indexterm zone="libreoffice base">
404 <primary sortas="b-base">base</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
409 <varlistentry id="calc">
410 <term><command>calc</command></term>
411 <listitem>
412 <para>
413 is a spreadsheet program.
414 </para>
415 <indexterm zone="libreoffice calc">
416 <primary sortas="b-calc">calc</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 <varlistentry id="draw">
422 <term><command>draw</command></term>
423 <listitem>
424 <para>
425 is a vector graphics editor and diagramming tool.
426 </para>
427 <indexterm zone="libreoffice draw">
428 <primary sortas="b-draw">draw</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 <varlistentry id="impress">
434 <term><command>impress</command></term>
435 <listitem>
436 <para>
437 can edit and display powerpoint presentations.
438 </para>
439 <indexterm zone="libreoffice impress">
440 <primary sortas="b-impress">impress</primary>
441 </indexterm>
442 </listitem>
443 </varlistentry>
444
445 <varlistentry id="math">
446 <term><command>math</command></term>
447 <listitem>
448 <para>
449 is a mathematical formula editor.
450 </para>
451 <indexterm zone="libreoffice math">
452 <primary sortas="b-math">math</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 <varlistentry id="printeradmin">
458 <term><command>printeradmin</command></term>
459 <listitem>
460 <para>
461 is a graphical interface to enable you to change your personal
462 printing preferences, which are saved in
463 <filename>~/.cups/lpoptions</filename>.
464 </para>
465 <indexterm zone="libreoffice printeradmin">
466 <primary sortas="b-printeradmin">printeradmin</primary>
467 </indexterm>
468 </listitem>
469 </varlistentry>
470
471 <varlistentry id="unopkg">
472 <term><command>unopkg</command></term>
473 <listitem>
474 <para>
475 is a tool to manage <application>Libre Office</application>
476 extensions from the command line.
477 </para>
478 <indexterm zone="libreoffice unopkg">
479 <primary sortas="b-unopkg">unopkg</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="writer">
485 <term><command>writer</command></term>
486 <listitem>
487 <para>
488 is a word processor.
489 </para>
490 <indexterm zone="libreoffice writer">
491 <primary sortas="b-writer">writer</primary>
492 </indexterm>
493 </listitem>
494 </varlistentry>
495 </variablelist>
496 </sect2>
497</sect1>
Note: See TracBrowser for help on using the repository browser.