source: xsoft/office/libreoffice.xml@ 19d81f7

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

Libre Office 3.5.4

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

  • Property mode set to 100644
File size: 16.9 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 "61afc900785dd7d071b96d9ab0af46f3">
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 -sf ../lib/libreoffice/program/spadmin /usr/bin/printeradmin &amp;&amp;
217ln -sf ../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. To list several languages,
285 separate them with a space. For all languages, use --with-lang=ALL
286 <!-- For a list of the available options:
287 <command>ls translations/source</command>. -->
288 </para>
289
290 <para>
291 <option>--without-java</option>: This option compiles
292 <application>Libre Office</application> without
293 <application>Java</application> support.
294 </para>
295
296 <para>
297 <option>--with-vendor=LFS-BLFS</option>: This option sets LFS-BLFS as the
298 vendor which is mentioned when you click About on the toolbar.
299 </para>
300
301 <para>
302 <command>./download</command>: The build process runs the
303 <command>download</command> script which downloads some 470 MB of
304 tarballs. We run the download script to get it out of the way at the
305 start so we can make a backup copy of the downloaded files.
306 </para>
307
308 <para>
309 <command>mkdir -p ../libreoffice-downloads;
310 cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} src/*LICENSE*
311 ../libreoffice-downloads</command>: this makes a backup copy
312 of the downloaded files so you don't have to download them again if you
313 decide to recompile <application>Libre Office</application>. In that case,
314 just start with:
315 <command>mkdir src; cp ../libreoffice-downloads/* src</command>
316 </para>
317
318 <para>
319 <command>for program in base calc draw impress math writer ...</command>:
320 These commands create 6 simple shell scripts in
321 <filename class="directory">/usr/bin</filename> that can be used to launch
322 <application>Libre Office</application> in its various forms. If you like
323 seeing the <application>Libre Office</application> splash screen, remove
324 the "--nologo" option.
325 </para>
326
327 <para>
328 <command>for res in 16 32 48 128 256 ...</command>: These commands copy
329 various icons into the hicolor icon theme used by
330 <application>Gtk+</application>.
331 </para>
332
333 <para>
334 <command>gtk-update-icon-cache /usr/share/icons/hicolor</command>: This
335 command rebuilds
336 <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to include
337 the new icons.
338 </para>
339 </sect2>
340
341 <sect2 role="configuration">
342 <title>Configuring Libre Office</title>
343
344 <para>
345 If you use a desktop environment like <application>Gnome</application>
346 or <application>KDE</application> and want the programs to show up in the
347 panel's menu, as the <systemitem class="username">root</systemitem> user,
348 create some simple desktop files:
349 </para>
350
351<screen role="root"><userinput>mkdir -p /usr/share/applications &amp;&amp;
352for program in base calc draw impress math writer
353do echo "[Desktop Entry]
354Encoding=UTF-8
355Type=Application
356Name=${program^}
357Comment=Libre Office ${program^}
358Icon=${program}
359Exec=${program}
360Categories=Office;Application;
361StartupNotify=true
362Terminal=false" > /usr/share/applications/${program}.desktop
363done &amp;&amp;
364echo "[Desktop Entry]
365Encoding=UTF-8
366Type=Application
367Name=Printer Administration
368Comment=Libre Office Printer Administration
369Icon=printeradmin
370Exec=printeradmin
371Categories=Office;Printing;Application;
372StartupNotify=true
373Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
374 </sect2>
375
376 <sect2 role="content">
377 <title>Contents</title>
378
379 <segmentedlist>
380 <segtitle>Installed Programs</segtitle>
381 <segtitle>Installed Libraries</segtitle>
382 <segtitle>Installed Directory</segtitle>
383
384 <seglistitem>
385 <seg>base, calc, draw, impress, math, printeradmin and writer.</seg>
386 <seg>
387 Hundreds of shared libraries in
388 <filename class="directory">/usr/lib/libreoffice</filename>.
389 </seg>
390 <seg>/usr/lib/libreoffice.</seg>
391 </seglistitem>
392 </segmentedlist>
393
394 <variablelist>
395 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
396 <?dbfo list-presentation="list"?>
397 <?dbhtml list-presentation="table"?>
398
399 <varlistentry id="base">
400 <term><command>base</command></term>
401 <listitem>
402 <para>
403 is a database manager.
404 </para>
405 <indexterm zone="libreoffice base">
406 <primary sortas="b-base">base</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="calc">
412 <term><command>calc</command></term>
413 <listitem>
414 <para>
415 is a spreadsheet program.
416 </para>
417 <indexterm zone="libreoffice calc">
418 <primary sortas="b-calc">calc</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
423 <varlistentry id="draw">
424 <term><command>draw</command></term>
425 <listitem>
426 <para>
427 is a vector graphics editor and diagramming tool.
428 </para>
429 <indexterm zone="libreoffice draw">
430 <primary sortas="b-draw">draw</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
435 <varlistentry id="impress">
436 <term><command>impress</command></term>
437 <listitem>
438 <para>
439 can edit and display powerpoint presentations.
440 </para>
441 <indexterm zone="libreoffice impress">
442 <primary sortas="b-impress">impress</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="math">
448 <term><command>math</command></term>
449 <listitem>
450 <para>
451 is a mathematical formula editor.
452 </para>
453 <indexterm zone="libreoffice math">
454 <primary sortas="b-math">math</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458
459 <varlistentry id="printeradmin">
460 <term><command>printeradmin</command></term>
461 <listitem>
462 <para>
463 is a graphical interface to enable you to change your personal
464 printing preferences, which are saved in
465 <filename>~/.cups/lpoptions</filename>.
466 </para>
467 <indexterm zone="libreoffice printeradmin">
468 <primary sortas="b-printeradmin">printeradmin</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry id="unopkg">
474 <term><command>unopkg</command></term>
475 <listitem>
476 <para>
477 is a tool to manage <application>Libre Office</application>
478 extensions from the command line.
479 </para>
480 <indexterm zone="libreoffice unopkg">
481 <primary sortas="b-unopkg">unopkg</primary>
482 </indexterm>
483 </listitem>
484 </varlistentry>
485
486 <varlistentry id="writer">
487 <term><command>writer</command></term>
488 <listitem>
489 <para>
490 is a word processor.
491 </para>
492 <indexterm zone="libreoffice writer">
493 <primary sortas="b-writer">writer</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497 </variablelist>
498 </sect2>
499</sect1>
Note: See TracBrowser for help on using the repository browser.