source: xsoft/office/libreoffice.xml@ 4c796cf

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

Implemented some of Armin's suggestions for Libre Office

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

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