source: xsoft/office/libreoffice.xml@ 73d97caf

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 73d97caf was 8c853a1, checked in by Krejzi <krejzi@…>, 12 years ago

LibreOffice 3.6.2.

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

  • Property mode set to 100644
File size: 18.3 KB
RevLine 
[d2d3fc5]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
[8c853a1]8 "http://download.documentfoundation.org/libreoffice/src/&libreoffice-version;/libreoffice-core-&libreoffice-dlversion;.tar.xz">
[d2d3fc5]9 <!ENTITY libreoffice-core-download-ftp " ">
[8c853a1]10 <!ENTITY libreoffice-core-md5sum "ae171ba4633cc72dba4451b1bdd3385e">
11 <!ENTITY libreoffice-core-size "105 MB">
12 <!ENTITY libreoffice-buildsize "5.2 GB (360 MB installed)">
13 <!ENTITY libreoffice-time "60 SBU">
[d2d3fc5]14]>
15
[8c853a1]16<sect1 id="libreoffice" xreflabel="LibreOffice-&libreoffice-version;">
[d2d3fc5]17 <?dbhtml filename="libreoffice.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
[8c853a1]24 <title>LibreOffice-&libreoffice-version;</title>
[d2d3fc5]25
26 <indexterm zone="libreoffice">
[8c853a1]27 <primary sortas="a-LibreOffice">LibreOffice</primary>
[d2d3fc5]28 </indexterm>
29
30 <sect2 role="package">
[fa29663]31 <title>Introduction to LibreOffice</title>
[d2d3fc5]32
33 <para>
[fa29663]34 <application>LibreOffice</application> is a full-featured office suite.
35 It is largely compatible with <application>Microsoft Office</application>
[8c853a1]36 and is descended from <application>OpenOffice.org</application>.
[d2d3fc5]37 </para>
38
[f76286d]39 &lfs72_checked;
[d2d3fc5]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
[05bcbfeb]75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
[8c853a1]78 <para>
79 Required patch:
80 <ulink url="&patch-root;/libreoffice-core-&libreoffice-dlversion;-boost_fix-1.patch"/>
81 </para>
[05bcbfeb]82 </listitem>
[f76286d]83 <listitem>
[8c853a1]84 <para>
85 Required patch:
86 <ulink url="&patch-root;/libreoffice-core-&libreoffice-dlversion;-poppler_fix-1.patch"/>
87 </para>
[f76286d]88 </listitem>
[05bcbfeb]89 </itemizedlist>
90
[fa29663]91 <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
[d2d3fc5]92
93 <bridgehead renderas="sect4">Required</bridgehead>
94 <para role="required">
[ceadeab]95 <xref linkend="cups"/>,
96 <xref linkend="curl"/> or <xref linkend="wget"/>,
97 <xref linkend="gperf"/>,
[d97601a]98 <xref linkend="gtk2"/> or <xref linkend="gtk3"/>,
99 <application>Perl Modules</application>
[ceadeab]100 <xref linkend="perl-archive-zip"/> and
101 <xref linkend="perl-xml-parser"/>,
[d97601a]102 <xref linkend="unzip"/>,
[ceadeab]103 <xref linkend="which"/> and
104 <xref linkend="zip"/>.
[d2d3fc5]105 </para>
106
107 <bridgehead renderas="sect4">Recommended</bridgehead>
108 <note>
109 <para>
[601a838]110 Most of these packages are recommended because if they're not installed,
[ceadeab]111 the build process will compile and install its own (often older)
[601a838]112 version. If you're using <application>GCC 4.7</application>, some of
[ceadeab]113 those older packages will fail to compile.
[d2d3fc5]114 </para>
115 </note>
116
117 <para role="recommended">
118 <xref linkend="boost"/>,
119 <xref linkend="db"/>,
120 <xref linkend="expat"/>,
[ceadeab]121 <xref linkend="gst-plugins-base"/>,
[d2d3fc5]122 <xref linkend="libjpeg"/>,
[d97601a]123 <xref linkend="libgsf"/>,
[d2d3fc5]124 <xref linkend="libpng"/>,
125 <xref linkend="librsvg"/>,
126 <xref linkend="libxml2"/> and <xref linkend="libxslt"/>,
127 <xref linkend="neon"/>,
128 <xref linkend="nss"/>,
[f76286d]129 <xref linkend="poppler"/>,
[fa29663]130 <xref linkend="openssl"/> and
[d2d3fc5]131 <xref linkend="redland"/>.
132 </para>
133
134 <bridgehead renderas="sect4">Optional</bridgehead>
135 <para role="optional">
[ceadeab]136 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
[4c796cf]137 <xref linkend="mysql"/>,
[d97601a]138 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
[4c796cf]139 <xref linkend="postgresql"/>,
[d2d3fc5]140 <ulink url="http://sampleicc.sourceforge.net/">SampleICC</ulink>,
[d97601a]141 <ulink url="http://hci.iwr.uni-heidelberg.de/vigra">Vigra</ulink> and
[ceadeab]142 <xref linkend="zenity"/>.
[d2d3fc5]143 </para>
144
145 <para condition="html" role="usernotes">
146 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
147 </para>
148 </sect2>
149
150 <sect2 role="installation">
[fa29663]151 <title>Installation of LibreOffice</title>
[d2d3fc5]152
[d97601a]153 <warning>
154 <para>
[8c853a1]155 Untaring the libreoffice-core-&libreoffice-dlversion; tarball as
[d97601a]156 <systemitem class="username">root</systemitem> has the curious effect of
157 changing the ownership of the <emphasis>parent</emphasis> directory
158 to a user with numerical id 11012 and with the permissions set to allow
159 read, write and execute for that user only! If you untared as
160 <systemitem class="username">root</systemitem> in your home folder you
[ceadeab]161 could end up unable to log in again :/ If you untared it in
[d97601a]162 <filename class="directory">/usr</filename> you would find your user
163 account unable to access any file in
[ceadeab]164 <filename class="directory">/usr</filename>.
[d97601a]165 </para>
166
167 <para>
168 You can avoid this unpleasantness by
169 <emphasis>not</emphasis> untaring it as
170 <systemitem class="username">root</systemitem>. If you must untar it as
171 <systemitem class="username">root</systemitem> pass the option
172 <option>--no-overwrite-dir</option> to tar. This is the default when you
173 untar as a user but has to be passed as an option when untaring as
174 <systemitem class="username">root</systemitem>:
175 </para>
176 </warning>
177
[8c853a1]178<screen role="root"><userinput>tar -xf libreoffice-core-&libreoffice-dlversion;.tar.xz --no-overwrite-dir &amp;&amp;
179cd libreoffice-core-&libreoffice-dlversion;</userinput></screen>
[d97601a]180
[d2d3fc5]181 <para>
[fa29663]182 Install <application>LibreOffice</application> by running the following
[d2d3fc5]183 commands:
184 </para>
185
[8c853a1]186<screen><userinput>patch -Np1 -i ../libreoffice-core-&libreoffice-dlversion;-boost_fix-1.patch &amp;&amp;
187patch -Np1 -i ../libreoffice-core-&libreoffice-dlversion;-poppler_fix-1.patch &amp;&amp;
188./autogen.sh --prefix=/usr \
189 --disable-binfilter \
190 --disable-gconf \
191 --disable-mozilla \
192 --disable-odk \
193 --disable-postgresql-sdbc \
194 --with-system-boost \
195 --with-system-cairo \
196 --with-system-curl \
197 --with-system-db \
198 --with-system-expat \
199 --with-system-gettext \
200 --with-system-icu \
201 --with-system-jpeg \
202 --with-system-libpng \
203 --with-system-libxml \
204 --with-system-neon \
205 --with-system-nss \
206 --with-system-openssl \
207 --with-system-poppler \
208 --with-system-redland \
209 --with-system-zlib \
210 --without-java \
211 --with-num-cpus=$(getconf _NPROCESSORS_ONLN) &amp;&amp;
212./download &amp;&amp;
213mkdir -p ../libreoffice-downloads &amp;&amp;
214cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} \
215 src/*LICENSE* ../libreoffice-downloads &amp;&amp;
[d2d3fc5]216make</userinput></screen>
217
[8c853a1]218 <para>
219 This package does not come with a test suite.
220 </para>
[d2d3fc5]221
222 <para>
223 Now, as the <systemitem class="username">root</systemitem> user:
224 </para>
225
[e1d8846]226<screen role="root"><userinput>make install &amp;&amp;
227SOFFICE=/usr/lib/libreoffice/program/soffice &amp;&amp;
[d2d3fc5]228for program in base calc draw impress math writer
229do
[e1d8846]230 echo '#!/bin/bash' > /usr/bin/${program}
[604ba3d8]231 echo "exec ${SOFFICE} --nologo --${program} \"\${@}\"" >> /usr/bin/${program}
[d2d3fc5]232 chmod 755 /usr/bin/${program}
[e1d8846]233done &amp;&amp;
234unset SOFFICE &amp;&amp;
[604ba3d8]235ln -sfv ../lib/libreoffice/program/spadmin /usr/bin/printeradmin &amp;&amp;
236ln -sfv ../lib/libreoffice/program/unopkg /usr/bin &amp;&amp;
237cp sysui/desktop/man/{libreoffice,unopkg}.1 /usr/share/man/man1 &amp;&amp;
[d2d3fc5]238for res in 16 32 48 128 256
239do
240 mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
241 cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
242 /usr/share/icons/hicolor/${res}x${res}/apps
243 cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
244 /usr/share/icons/hicolor/${res}x${res}/mimetypes
245done &amp;&amp;
246gtk-update-icon-cache /usr/share/icons/hicolor</userinput></screen>
247 </sect2>
248
249 <sect2 role="commands">
250 <title>Command Explanations</title>
[fa29663]251
[d2d3fc5]252 <para>
[a6af3ab9]253 <option>--enable-gtk3</option>: Add this option if you've installed and
[d2d3fc5]254 want to use <application>Gtk+-3</application>.
255 </para>
256
[ceadeab]257 <para>
[a6af3ab9]258 <option>--disable-gstreamer</option>: Add this option if you've not
[ceadeab]259 installed <xref linkend="gst-plugins-base"/>.
260 </para>
261
[d2d3fc5]262 <para>
263 <option>--disable-binfilter</option>: These "binfilters" enable
[fa29663]264 <application>LibreOffice</application> to open legacy
[d2d3fc5]265 <application>Star Office</application> format documents. Compiling
266 <application>binfilter</application> requires
267 <application>Java</application>.
268 </para>
269
270 <para>
[604ba3d8]271 <option>--disable-gconf</option>: Remove this option if you want to
[fa29663]272 compile LibreOffice with GConf support.
[d2d3fc5]273 </para>
274
275 <para>
276 <option>--disable-mozilla</option>: This option stops
[fa29663]277 <application>LibreOffice</application> trying to compile an old version
[d2d3fc5]278 of <application>SeaMonkey</application>.
279 </para>
280
281 <para>
[9a1c6a74]282 <option>--disable-odk</option>: This option disables installing the
[a6af3ab9]283 office development kit. Remove this option if you want to develop a
[fa29663]284 <application>LibreOffice</application> based application.
[d2d3fc5]285 </para>
286
[4c796cf]287 <para>
288 <option>--disable-postgresql-sdbc</option>: This option disables compiling
[fa29663]289 LibreOffice with the ability to connect to a PostgreSQL database. If you
290 would like LibreOffice to be able to connect to a PostgreSQL database
[4c796cf]291 remove this option. If you have installed PostgreSQL on your system and
[fa29663]292 would like LibreOffice to use that rather than compile its own copy, add
[4c796cf]293 the option <option>--with-system-postgresql</option>.
294 </para>
295
[d2d3fc5]296 <para>
[9a1c6a74]297 <option>--with-system- ...</option>: These options prevent
[fa29663]298 <application>LibreOffice</application> trying to compile its own
[a6af3ab9]299 versions of these dependencies. If you've not installed
300 some of the dependencies, remove the corresponding option.
[d2d3fc5]301 </para>
302
303 <para>
304 <option>--with-num-cpus=$(getconf _NPROCESSORS_ONLN)</option>: This option
[fa29663]305 tells <application>LibreOffice</application> to use all your CPUs to
[4c796cf]306 compile in parallel and speed up the build.
[d2d3fc5]307 </para>
308
309 <para>
310 <option>--with-lang="pt-BR"</option>: This option sets what languages to
[19d81f7]311 support. en-US is always included by default. To list several languages,
312 separate them with a space. For all languages, use --with-lang=ALL
[4c796cf]313 </para>
314
315 <para>
316 For a list of the available languages, configure it --with-lang=ALL and
317 then after you've run ./download:
318 <command>ls translations/source</command>
[d2d3fc5]319 </para>
320
321 <para>
322 <option>--without-java</option>: This option compiles
[fa29663]323 <application>LibreOffice</application> without
[d2d3fc5]324 <application>Java</application> support.
325 </para>
326
327 <para>
[5b9edb4]328 <option>--with-vendor=LFS-BLFS</option>: This option sets LFS-BLFS as the
329 vendor which is mentioned when you click About on the toolbar.
330 </para>
331
332 <para>
333 <command>./download</command>: The build process runs the
[8e2c769]334 <command>download</command> script which downloads some 470 MB of
335 tarballs. We run the download script to get it out of the way at the
[5b9edb4]336 start so we can make a backup copy of the downloaded files.
[d2d3fc5]337 </para>
338
339 <para>
[5b9edb4]340 <command>mkdir -p ../libreoffice-downloads;
[8e2c769]341 cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} src/*LICENSE*
342 ../libreoffice-downloads</command>: this makes a backup copy
[5b9edb4]343 of the downloaded files so you don't have to download them again if you
[fa29663]344 decide to recompile <application>LibreOffice</application>. In that case,
[5b9edb4]345 just start with:
346 <command>mkdir src; cp ../libreoffice-downloads/* src</command>
[d2d3fc5]347 </para>
348
349 <para>
350 <command>for program in base calc draw impress math writer ...</command>:
351 These commands create 6 simple shell scripts in
352 <filename class="directory">/usr/bin</filename> that can be used to launch
[fa29663]353 <application>LibreOffice</application> in its various forms. If you like
354 seeing the <application>LibreOffice</application> splash screen, remove
[4f304a0a]355 the "--nologo" option.
[d2d3fc5]356 </para>
357
358 <para>
359 <command>for res in 16 32 48 128 256 ...</command>: These commands copy
360 various icons into the hicolor icon theme used by
361 <application>Gtk+</application>.
362 </para>
363
364 <para>
365 <command>gtk-update-icon-cache /usr/share/icons/hicolor</command>: This
[a6af3ab9]366 command rebuilds
[9a1c6a74]367 <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to include
[a6af3ab9]368 the new icons.
[d2d3fc5]369 </para>
[8c853a1]370
[d2d3fc5]371 </sect2>
372
373 <sect2 role="configuration">
[fa29663]374 <title>Configuring LibreOffice</title>
[d2d3fc5]375
376 <para>
377 If you use a desktop environment like <application>Gnome</application>
378 or <application>KDE</application> and want the programs to show up in the
379 panel's menu, as the <systemitem class="username">root</systemitem> user,
380 create some simple desktop files:
381 </para>
382
[c099902d]383<screen role="root"><userinput>mkdir -p /usr/share/applications &amp;&amp;
384for program in base calc draw impress math writer
[d2d3fc5]385do echo "[Desktop Entry]
386Encoding=UTF-8
387Type=Application
388Name=${program^}
[fa29663]389Comment=LibreOffice ${program^}
[d2d3fc5]390Icon=${program}
391Exec=${program}
392Categories=Office;Application;
393StartupNotify=true
394Terminal=false" > /usr/share/applications/${program}.desktop
[4f304a0a]395done &amp;&amp;
396echo "[Desktop Entry]
397Encoding=UTF-8
398Type=Application
399Name=Printer Administration
[fa29663]400Comment=LibreOffice Printer Administration
[4f304a0a]401Icon=printeradmin
402Exec=printeradmin
[2511f83]403Categories=Office;Printing;Application;
[4f304a0a]404StartupNotify=true
405Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
[d2d3fc5]406 </sect2>
407
408 <sect2 role="content">
409 <title>Contents</title>
410
411 <segmentedlist>
412 <segtitle>Installed Programs</segtitle>
[8c853a1]413 <segtitle>Installed Directory</segtitle>
[d2d3fc5]414
415 <seglistitem>
[4c796cf]416 <seg>
[8c853a1]417 base, calc, draw, impress, math,
418 printeradmin and writer
419 </seg>
[d2d3fc5]420 <seg>
[8c853a1]421 /usr/lib/libreoffice
[d2d3fc5]422 </seg>
423 </seglistitem>
424 </segmentedlist>
425
426 <variablelist>
427 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
428 <?dbfo list-presentation="list"?>
429 <?dbhtml list-presentation="table"?>
430
431 <varlistentry id="base">
432 <term><command>base</command></term>
433 <listitem>
434 <para>
435 is a database manager.
436 </para>
437 <indexterm zone="libreoffice base">
438 <primary sortas="b-base">base</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442
443 <varlistentry id="calc">
444 <term><command>calc</command></term>
445 <listitem>
446 <para>
447 is a spreadsheet program.
448 </para>
449 <indexterm zone="libreoffice calc">
450 <primary sortas="b-calc">calc</primary>
451 </indexterm>
452 </listitem>
453 </varlistentry>
454
455 <varlistentry id="draw">
456 <term><command>draw</command></term>
457 <listitem>
458 <para>
459 is a vector graphics editor and diagramming tool.
460 </para>
461 <indexterm zone="libreoffice draw">
462 <primary sortas="b-draw">draw</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
467 <varlistentry id="impress">
468 <term><command>impress</command></term>
469 <listitem>
470 <para>
471 can edit and display powerpoint presentations.
472 </para>
473 <indexterm zone="libreoffice impress">
474 <primary sortas="b-impress">impress</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 <varlistentry id="math">
480 <term><command>math</command></term>
481 <listitem>
482 <para>
483 is a mathematical formula editor.
484 </para>
485 <indexterm zone="libreoffice math">
486 <primary sortas="b-math">math</primary>
487 </indexterm>
488 </listitem>
489 </varlistentry>
490
[2511f83]491 <varlistentry id="printeradmin">
492 <term><command>printeradmin</command></term>
493 <listitem>
494 <para>
495 is a graphical interface to enable you to change your personal
496 printing preferences, which are saved in
497 <filename>~/.cups/lpoptions</filename>.
498 </para>
499 <indexterm zone="libreoffice printeradmin">
500 <primary sortas="b-printeradmin">printeradmin</primary>
501 </indexterm>
502 </listitem>
503 </varlistentry>
504
[8d5cd1bb]505 <varlistentry id="unopkg">
506 <term><command>unopkg</command></term>
507 <listitem>
508 <para>
[fa29663]509 is a tool to manage <application>LibreOffice</application>
[8d5cd1bb]510 extensions from the command line.
511 </para>
512 <indexterm zone="libreoffice unopkg">
513 <primary sortas="b-unopkg">unopkg</primary>
514 </indexterm>
515 </listitem>
516 </varlistentry>
517
[d2d3fc5]518 <varlistentry id="writer">
519 <term><command>writer</command></term>
520 <listitem>
521 <para>
522 is a word processor.
523 </para>
524 <indexterm zone="libreoffice writer">
525 <primary sortas="b-writer">writer</primary>
526 </indexterm>
527 </listitem>
528 </varlistentry>
[8c853a1]529
[d2d3fc5]530 </variablelist>
[8c853a1]531
[d2d3fc5]532 </sect2>
[8c853a1]533
[d2d3fc5]534</sect1>
Note: See TracBrowser for help on using the repository browser.