%general-entities; ]> $LastChangedBy$ $Date$ LibreOffice-&libreoffice-version; LibreOffice Introduction to LibreOffice LibreOffice is a full-featured office suite. It is largely compatible with Microsoft Office and is descended from OpenOffice.org. &lfs72_checked; Package Information Core Download (HTTP): Core Download (FTP): Core Download MD5 sum: &libreoffice-core-md5sum; Core Download size: &libreoffice-core-size; Estimated disk space required: &libreoffice-buildsize; Estimated build time: &libreoffice-time; LibreOffice Dependencies Required , or , , or , Perl Modules and , , and . Recommended Most of these packages are recommended because if they're not installed, the build process will compile and install its own (often older) version. If you're using GCC 4.7, some of those older packages will fail to compile. , , , , , , , , and , , , , and . Optional Hunspell, , MyThes, , SampleICC, Vigra and . User Notes: Installation of LibreOffice Untaring the libreoffice-core-&libreoffice-dlversion; tarball as root has the curious effect of changing the ownership of the parent directory to a user with numerical id 11012 and with the permissions set to allow read, write and execute for that user only! If you untared as root in your home folder you could end up unable to log in again :/ If you untared it in /usr you would find your user account unable to access any file in /usr. You can avoid this unpleasantness by not untaring it as root. If you must untar it as root pass the option to tar. This is the default when you untar as a user but has to be passed as an option when untaring as root: tar -xf libreoffice-core-&libreoffice-dlversion;.tar.xz --no-overwrite-dir && cd libreoffice-core-&libreoffice-dlversion; Install LibreOffice by running the following commands: ./autogen.sh --prefix=/usr \ --disable-binfilter \ --disable-gconf \ --disable-mozilla \ --disable-odk \ --disable-postgresql-sdbc \ --with-system-boost \ --with-system-cairo \ --with-system-curl \ --with-system-db \ --with-system-expat \ --with-system-gettext \ --with-system-icu \ --with-system-jpeg \ --with-system-libpng \ --with-system-libxml \ --with-system-neon \ --with-system-nss \ --with-system-openssl \ --with-system-poppler \ --with-system-redland \ --with-system-zlib \ --without-java \ --with-num-cpus=$(getconf _NPROCESSORS_ONLN) && ./download && mkdir -p ../libreoffice-downloads && cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} \ src/*LICENSE* ../libreoffice-downloads && make This package does not come with a test suite. Now, as the root user: make install && SOFFICE=/usr/lib/libreoffice/program/soffice && for program in base calc draw impress math writer do echo '#!/bin/bash' > /usr/bin/${program} echo "exec ${SOFFICE} --nologo --${program} \"\${@}\"" >> /usr/bin/${program} chmod 755 /usr/bin/${program} done && unset SOFFICE && ln -sfv ../lib/libreoffice/program/spadmin /usr/bin/printeradmin && ln -sfv ../lib/libreoffice/program/unopkg /usr/bin && cp sysui/desktop/man/{libreoffice,unopkg}.1 /usr/share/man/man1 && for res in 16 32 48 128 256 do mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes} cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \ /usr/share/icons/hicolor/${res}x${res}/apps cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \ /usr/share/icons/hicolor/${res}x${res}/mimetypes done && gtk-update-icon-cache /usr/share/icons/hicolor Command Explanations : Add this option if you've installed and want to use Gtk+-3. : Add this option if you've not installed . : These "binfilters" enable LibreOffice to open legacy Star Office format documents. Compiling binfilter requires Java. : Remove this option if you want to compile LibreOffice with GConf support. : This option stops LibreOffice trying to compile an old version of SeaMonkey. : This option disables installing the office development kit. Remove this option if you want to develop a LibreOffice based application. : This option disables compiling LibreOffice with the ability to connect to a PostgreSQL database. If you would like LibreOffice to be able to connect to a PostgreSQL database remove this option. If you have installed PostgreSQL on your system and would like LibreOffice to use that rather than compile its own copy, add the option . : These options prevent LibreOffice trying to compile its own versions of these dependencies. If you've not installed some of the dependencies, remove the corresponding option. : This option tells LibreOffice to use all your CPUs to compile in parallel and speed up the build. : This option sets what languages to support. en-US is always included by default. To list several languages, separate them with a space. For all languages, use --with-lang=ALL For a list of the available languages, configure it --with-lang=ALL and then after you've run ./download: ls translations/source : This option compiles LibreOffice without Java support. : This option sets LFS-BLFS as the vendor which is mentioned when you click About on the toolbar. ./download: The build process runs the download script which downloads some 470 MB of tarballs. We run the download script to get it out of the way at the start so we can make a backup copy of the downloaded files. mkdir -p ../libreoffice-downloads; cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} src/*LICENSE* ../libreoffice-downloads: this makes a backup copy of the downloaded files so you don't have to download them again if you decide to recompile LibreOffice. In that case, just start with: mkdir src; cp ../libreoffice-downloads/* src for program in base calc draw impress math writer ...: These commands create 6 simple shell scripts in /usr/bin that can be used to launch LibreOffice in its various forms. If you like seeing the LibreOffice splash screen, remove the "--nologo" option. for res in 16 32 48 128 256 ...: These commands copy various icons into the hicolor icon theme used by Gtk+. gtk-update-icon-cache /usr/share/icons/hicolor: This command rebuilds /usr/share/icons/hicolor/icon-theme.cache to include the new icons. Configuring LibreOffice If you use a desktop environment like Gnome or KDE and want the programs to show up in the panel's menu, as the root user, create some simple desktop files: mkdir -p /usr/share/applications && for program in base calc draw impress math writer do echo "[Desktop Entry] Encoding=UTF-8 Type=Application Name=${program^} Comment=LibreOffice ${program^} Icon=${program} Exec=${program} Categories=Office;Application; StartupNotify=true Terminal=false" > /usr/share/applications/${program}.desktop done && echo "[Desktop Entry] Encoding=UTF-8 Type=Application Name=Printer Administration Comment=LibreOffice Printer Administration Icon=printeradmin Exec=printeradmin Categories=Office;Printing;Application; StartupNotify=true Terminal=false" > /usr/share/applications/printeradmin.desktop Contents Installed Programs Installed Directory base, calc, draw, impress, math, printeradmin and writer /usr/lib/libreoffice Short Descriptions base is a database manager. base calc is a spreadsheet program. calc draw is a vector graphics editor and diagramming tool. draw impress can edit and display powerpoint presentations. impress math is a mathematical formula editor. math printeradmin is a graphical interface to enable you to change your personal printing preferences, which are saved in ~/.cups/lpoptions. printeradmin unopkg is a tool to manage LibreOffice extensions from the command line. unopkg writer is a word processor. writer