%general-entities; ]> $LastChangedBy$ $Date$ libreoffice-&libreoffice-version;.2 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; 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-&libreoffice-version;.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 libreoffice-core-&libreoffice-version;.2.tar.xz --no-overwrite-dir && cd libreoffice-core-&libreoffice-version;.2 Install Libre Office by running the following commands: sed -i 's# ORBit-2.0##' configure.in && ./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-lang="pt-BR" \ --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 sed -i 's# ORBit-2.0##' configure.in: If you remove the configure will check for the deprecated ORBit. This sed removes the check for ORBit. : 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. : Remove this option if you want to compile Libre Office with GConf support. : 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. To list several languages, separate them with a space. For all languages, use --with-lang=ALL For a list of the available languages, after you've run ./download: ls translations/source. : This option compiles Libre Office 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 Libre Office. 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 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: 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=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