%general-entities; ]> $LastChangedBy$ $Date$ libre-office-&libreoffice-version; libreoffice Introduction to Libre Office Libre Office is a collection of programs for creating and editing office documents. It is largely compatible with Microsoft Office and Open Office on which it is based. &lfs71_checked; Package Information Core Download (HTTP): Core Download (FTP): Core Download MD5 sum: &libreoffice-core-md5sum; Core Download size: &libreoffice-core-size; Dictionaries Download (HTTP): Dictionaries Download (FTP): Dictionaries Download MD5 sum: &libreoffice-dictionaries-md5sum; Dictionaries Download size: &libreoffice-dictionaries-size; Help Download (HTTP): Help Download (FTP): Help Download MD5 sum: &libreoffice-help-md5sum; Help Download size: &libreoffice-help-size; Translations Download (HTTP): Translations Download (FTP): Translations Download MD5 sum: &libreoffice-translations-md5sum; Translations Download size: &libreoffice-translations-size; Estimated disk space required: &libreoffice-buildsize; Estimated build time: &libreoffice-time; Libre Office Dependencies Required , or , , or , Perl Modules and , , and . Recommended Most of these packages are recommend 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 Libre Office Untaring the libreoffice-core-3.5.2.2 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 --no-overwrite-dir libreoffice-core-&libreoffice-version;.tar.xz && cd libreoffice-core-&libreoffice-version; Install Libre Office by running the following commands: tar -xf ../libreoffice-translations-&libreoffice-version;.tar.xz --strip-components=1 && tar -xf ../libreoffice-help-&libreoffice-version;.tar.xz --strip-components=1 && tar -xf ../libreoffice-dictionaries-&libreoffice-version;.tar.xz --strip-components=1 && sed -i '/$Prepend/s:^[^#]:# &:' \ i18npool/source/breakiterator/data/char{,_in}.txt && ./autogen.sh --prefix=/usr \ --disable-binfilter \ --disable-gconf \ --disable-mozilla \ --disable-odk \ --with-system-boost \ --with-system-cairo \ --with-system-curl \ --with-system-db \ --with-system-expat \ --with-system-hunspell \ --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-postgresql \ --with-system-redland \ --with-system-zlib \ --with-num-cpus=$(getconf _NPROCESSORS_ONLN) \ --with-vendor="BLFS" \ --with-lang="pt-BR" \ --without-java && ./download && mkdir -p ../libre-office-downloads && cp -rf src/* ../libre-office-downloads && make This package does not come with a test suite. Now, as the root user: make install && for program in base calc draw impress math writer do echo "#!/bin/bash exec /usr/lib/libreoffice/program/soffice --nologo --${program} \"\${@}\"" \ > /usr/bin/${program} chmod 755 /usr/bin/${program} done && ln -s ../lib/libreoffice/program/spadmin /usr/bin/printeradmin && ln -s ../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 tar -xf ../libreoffice-translations-&libreoffice-version;.tar.xz --strip-components=1: This command untars the translations inside the source. The option removes the leading directory from the path of the untared files. Without this option we would need to move or symlink the translations folder into the correct position. tar -xf ../libreoffice-help-&libreoffice-version;.tar.xz --strip-components=1: This command untars the help files inside the source. The option removes the leading directory from the path of the untared files. Without this option we would need to move or symlink the helpcontent2 folder into the correct position. tar -xf ../libreoffice-dictionaries-&libreoffice-version;.tar.xz --strip-components=1: This command untars the dictionaries inside the source. The option removes the leading directory from the path of the untared files. Without this option we would need to move or symlink the dictionaries folder into the correct position. sed -i '/$Prepend/s:^[^#]:# &:' i18npool/source/breakiterator/data/char{,_in}.txt: This sed fixes compiling with ICU 49 installed on your system. : Add this option if you've installed and want to use Gtk+-3. : Add this option if you've not installed . : These "binfilters" enable Libre Office to open legacy Star Office format documents. Compiling binfilter requires Java. : Compiling with support for GConf requires the deprecated ORBit. : This option stops Libre Office 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 Libre Office based application. : These options prevent Libre Office 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 Libre Office 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. For a list of the available options: ls translations/source. : This option compiles Libre Office without Java support. ./download: The download script downloads the source to a collection of things that might be needed during the build process. mkdir -p ../libre-office-downloads; cp -rf src/* ../libre-office-downloads: The download script downloads some 320MB of source tarballs, many of which are not needed as they are probably already installed on your system. This command makes a backup copy of the downloaded files so you don't have to download them again if you decide to recompile Libre Office. In that case, just start by mkdir src; cp ../libre-office-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 Libre Office in its various forms. If you like seeing the Libre Office 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 Libre Office 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: for program in base calc draw impress math writer do echo "[Desktop Entry] Encoding=UTF-8 Type=Application Name=${program^} Comment=Libre Office ${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=Libre Office Printer Administration Icon=printeradmin Exec=printeradmin Categories=Office;Printing;Application; StartupNotify=true Terminal=false" > /usr/share/applications/printeradmin.desktop Contents Installed Programs Installed Libraries Installed Directory base, calc, draw, impress, math, printeradmin and writer. Hundreds of shared libraries in /usr/lib/libreoffice. /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 Libre Office extensions from the command line. unopkg writer is a word processor. writer