source: xsoft/office/libreoffice.xml@ a1d9eed

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 a1d9eed was a1d9eed, checked in by Krejzi <krejzi@…>, 11 years ago

LibreOffice 3.6.3

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

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