source: xsoft/office/libreoffice.xml@ 9a1c6a74

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

Run make-cert.pl with perl to avoid a Bad Interpreter error message if
/usr/bin/perl does not exist

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

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