source: xsoft/office/libreoffice.xml@ fa29663

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 fa29663 was fa29663, checked in by Ragnar Thomsen <rthomsen@…>, 12 years ago

LibreOffice 3.6.0 and improved Boost introduction.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10507 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;.4.tar.xz">
9 <!ENTITY libreoffice-core-download-ftp " ">
10 <!ENTITY libreoffice-core-md5sum "67cf97e86c75363238a371f64ef5f606">
11 <!ENTITY libreoffice-core-size "102 MB">
12 <!ENTITY libreoffice-buildsize "7.1 GB (446 MB installed)">
13 <!ENTITY libreoffice-time "55 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 OpenOffice.org.
37 </para>
38
39 &lfs71_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 recommend 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 <!-- LibreOffice 3.6.0.4 doesn't build with current poppler, using internal version
114 <xref linkend="poppler"/>, -->
115 <xref linkend="openssl"/> 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 LibreOffice</title>
137
138 <warning>
139 <para>
140 Untaring the libreoffice-core-&libreoffice-version;.4 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;.4.tar.xz --no-overwrite-dir &amp;&amp;
164cd libreoffice-core-&libreoffice-version;.4</userinput></screen>
165
166 <para>
167 Install <application>LibreOffice</application> by running the following
168 commands:
169 </para>
170
171<screen><userinput>patch -Np1 -i ../libreoffice-core-&libreoffice-version;.4-boost_fix-1.patch &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 \<!-- - -with-system-poppler \ -->
191 --with-system-redland \
192 --with-system-zlib \
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 -sfv ../lib/libreoffice/program/spadmin /usr/bin/printeradmin &amp;&amp;
217ln -sfv ../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 <command>patch -Np1 -i
235 ../libreoffice-core-&libreoffice-version;.4-boost_fix-1.patch</command>:
236 Fixes linking to <application>Boost</application> 1.50.
237 </para>
238
239 <para>
240 <option>--enable-gtk3</option>: Add this option if you've installed and
241 want to use <application>Gtk+-3</application>.
242 </para>
243
244 <para>
245 <option>--disable-gstreamer</option>: Add this option if you've not
246 installed <xref linkend="gst-plugins-base"/>.
247 </para>
248
249 <para>
250 <option>--disable-binfilter</option>: These "binfilters" enable
251 <application>LibreOffice</application> to open legacy
252 <application>Star Office</application> format documents. Compiling
253 <application>binfilter</application> requires
254 <application>Java</application>.
255 </para>
256
257 <para>
258 <option>--disable-gconf</option>: Remove this option if you want to
259 compile LibreOffice with GConf support.
260 </para>
261
262 <para>
263 <option>--disable-mozilla</option>: This option stops
264 <application>LibreOffice</application> trying to compile an old version
265 of <application>SeaMonkey</application>.
266 </para>
267
268 <para>
269 <option>--disable-odk</option>: This option disables installing the
270 office development kit. Remove this option if you want to develop a
271 <application>LibreOffice</application> based application.
272 </para>
273
274 <para>
275 <option>--disable-postgresql-sdbc</option>: This option disables compiling
276 LibreOffice with the ability to connect to a PostgreSQL database. If you
277 would like LibreOffice to be able to connect to a PostgreSQL database
278 remove this option. If you have installed PostgreSQL on your system and
279 would like LibreOffice to use that rather than compile its own copy, add
280 the option <option>--with-system-postgresql</option>.
281 </para>
282
283 <para>
284 <option>--with-system- ...</option>: These options prevent
285 <application>LibreOffice</application> trying to compile its own
286 versions of these dependencies. If you've not installed
287 some of the dependencies, remove the corresponding option.
288 </para>
289
290 <para>
291 <option>--with-num-cpus=$(getconf _NPROCESSORS_ONLN)</option>: This option
292 tells <application>LibreOffice</application> to use all your CPUs to
293 compile in parallel and speed up the build.
294 </para>
295
296 <para>
297 <option>--with-lang="pt-BR"</option>: This option sets what languages to
298 support. en-US is always included by default. To list several languages,
299 separate them with a space. For all languages, use --with-lang=ALL
300 </para>
301
302 <para>
303 For a list of the available languages, configure it --with-lang=ALL and
304 then after you've run ./download:
305 <command>ls translations/source</command>
306 </para>
307
308 <para>
309 <option>--without-java</option>: This option compiles
310 <application>LibreOffice</application> without
311 <application>Java</application> support.
312 </para>
313
314 <para>
315 <option>--with-vendor=LFS-BLFS</option>: This option sets LFS-BLFS as the
316 vendor which is mentioned when you click About on the toolbar.
317 </para>
318
319 <para>
320 <command>./download</command>: The build process runs the
321 <command>download</command> script which downloads some 470 MB of
322 tarballs. We run the download script to get it out of the way at the
323 start so we can make a backup copy of the downloaded files.
324 </para>
325
326 <para>
327 <command>mkdir -p ../libreoffice-downloads;
328 cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} src/*LICENSE*
329 ../libreoffice-downloads</command>: this makes a backup copy
330 of the downloaded files so you don't have to download them again if you
331 decide to recompile <application>LibreOffice</application>. In that case,
332 just start with:
333 <command>mkdir src; cp ../libreoffice-downloads/* src</command>
334 </para>
335
336 <para>
337 <command>for program in base calc draw impress math writer ...</command>:
338 These commands create 6 simple shell scripts in
339 <filename class="directory">/usr/bin</filename> that can be used to launch
340 <application>LibreOffice</application> in its various forms. If you like
341 seeing the <application>LibreOffice</application> splash screen, remove
342 the "--nologo" option.
343 </para>
344
345 <para>
346 <command>for res in 16 32 48 128 256 ...</command>: These commands copy
347 various icons into the hicolor icon theme used by
348 <application>Gtk+</application>.
349 </para>
350
351 <para>
352 <command>gtk-update-icon-cache /usr/share/icons/hicolor</command>: This
353 command rebuilds
354 <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to include
355 the new icons.
356 </para>
357 </sect2>
358
359 <sect2 role="configuration">
360 <title>Configuring LibreOffice</title>
361
362 <para>
363 If you use a desktop environment like <application>Gnome</application>
364 or <application>KDE</application> and want the programs to show up in the
365 panel's menu, as the <systemitem class="username">root</systemitem> user,
366 create some simple desktop files:
367 </para>
368
369<screen role="root"><userinput>mkdir -p /usr/share/applications &amp;&amp;
370for program in base calc draw impress math writer
371do echo "[Desktop Entry]
372Encoding=UTF-8
373Type=Application
374Name=${program^}
375Comment=LibreOffice ${program^}
376Icon=${program}
377Exec=${program}
378Categories=Office;Application;
379StartupNotify=true
380Terminal=false" > /usr/share/applications/${program}.desktop
381done &amp;&amp;
382echo "[Desktop Entry]
383Encoding=UTF-8
384Type=Application
385Name=Printer Administration
386Comment=LibreOffice Printer Administration
387Icon=printeradmin
388Exec=printeradmin
389Categories=Office;Printing;Application;
390StartupNotify=true
391Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
392 </sect2>
393
394 <sect2 role="content">
395 <title>Contents</title>
396
397 <segmentedlist>
398 <segtitle>Installed Programs</segtitle>
399 <segtitle>Installed Libraries</segtitle>
400 <segtitle>Installed Directories</segtitle>
401
402 <seglistitem>
403 <seg>
404 base,
405 calc,
406 draw,
407 impress,
408 math,
409 printeradmin and
410 writer.</seg>
411 <seg>
412 hundreds of shared libraries in
413 <filename class="directory">/usr/lib/libreoffice</filename>.
414 </seg>
415 <seg>/usr/lib/libreoffice.</seg>
416 </seglistitem>
417 </segmentedlist>
418
419 <variablelist>
420 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
421 <?dbfo list-presentation="list"?>
422 <?dbhtml list-presentation="table"?>
423
424 <varlistentry id="base">
425 <term><command>base</command></term>
426 <listitem>
427 <para>
428 is a database manager.
429 </para>
430 <indexterm zone="libreoffice base">
431 <primary sortas="b-base">base</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="calc">
437 <term><command>calc</command></term>
438 <listitem>
439 <para>
440 is a spreadsheet program.
441 </para>
442 <indexterm zone="libreoffice calc">
443 <primary sortas="b-calc">calc</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 <varlistentry id="draw">
449 <term><command>draw</command></term>
450 <listitem>
451 <para>
452 is a vector graphics editor and diagramming tool.
453 </para>
454 <indexterm zone="libreoffice draw">
455 <primary sortas="b-draw">draw</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
460 <varlistentry id="impress">
461 <term><command>impress</command></term>
462 <listitem>
463 <para>
464 can edit and display powerpoint presentations.
465 </para>
466 <indexterm zone="libreoffice impress">
467 <primary sortas="b-impress">impress</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="math">
473 <term><command>math</command></term>
474 <listitem>
475 <para>
476 is a mathematical formula editor.
477 </para>
478 <indexterm zone="libreoffice math">
479 <primary sortas="b-math">math</primary>
480 </indexterm>
481 </listitem>
482 </varlistentry>
483
484 <varlistentry id="printeradmin">
485 <term><command>printeradmin</command></term>
486 <listitem>
487 <para>
488 is a graphical interface to enable you to change your personal
489 printing preferences, which are saved in
490 <filename>~/.cups/lpoptions</filename>.
491 </para>
492 <indexterm zone="libreoffice printeradmin">
493 <primary sortas="b-printeradmin">printeradmin</primary>
494 </indexterm>
495 </listitem>
496 </varlistentry>
497
498 <varlistentry id="unopkg">
499 <term><command>unopkg</command></term>
500 <listitem>
501 <para>
502 is a tool to manage <application>LibreOffice</application>
503 extensions from the command line.
504 </para>
505 <indexterm zone="libreoffice unopkg">
506 <primary sortas="b-unopkg">unopkg</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
511 <varlistentry id="writer">
512 <term><command>writer</command></term>
513 <listitem>
514 <para>
515 is a word processor.
516 </para>
517 <indexterm zone="libreoffice writer">
518 <primary sortas="b-writer">writer</primary>
519 </indexterm>
520 </listitem>
521 </varlistentry>
522 </variablelist>
523 </sect2>
524</sect1>
Note: See TracBrowser for help on using the repository browser.