Linux ビルドの依存関係

From The Document Foundation Wiki
Jump to: navigation, search
本ページはGlobal Wikiからの有志による翻訳ページです。未翻訳があることや内容が古い場合があります。最新化、翻訳にご協力お願いします。
日本語独自の情報についてまとめることを目的として、日本語コミュニティによって運営されているページとして 日本語コミュニティ独自ページ があります。
URLが で始まっていて、カテゴリーがJAのページです。

このページのオリジナルはLinux Build Dependenciesから2015-08-24T01:04:00にコピーしたものです。


The commands below should prepare a regular system into one able to build LibreOffice, it is by far the easiest way to use the existing package to bootstrap your build dependencies.

It is usually the case that branches that are newer than what your distro has packaged (especially master) have additional requirements, which the step will helpfully point out to you; usually these requirements are either optional and have a corresponding --disable-foo or --without-foo argument, or the requirement can be satisfied with an option to use a bundled copy via --without-system-foo argument (which should be the default already). If neither is the case then you need to install some development package on your system: look at what configure is complaining about specifically and use apt-cache search or yum search to find relevant packages, usually with -dev or -devel in the name.


このシェルは依存関係の感心事を解決する多分最も簡単な方法です。同様に必要とされるパッケージをダウンロードし、そしてLibreOffice core リポジトリをクローンすることができます。あなたはここで Pre-install シェルスクリプトをダウンロードできます。

Debian/Ubuntu、Red Hat/Fedora、openSUSE で動作します。


Make sure you have a deb-src line in /etc/apt/sources.list for Debian main. For example:

deb-src testing main


 sudo apt-get build-dep libreoffice && sudo apt-get  install git libgnomeui-dev gawk junit4  doxygen # Debian & derivatives

On Debian unstable (11/06 2010)

sudo apt-get install libgsf-1-dev

On Debian testing (29/4/2011) also

sudo apt-get install libperl-dev libarchive-zip-perl javacc openjdk-6-jdk gperf libjpeg8 python-dev bison flex libgstreamer-plugins-base-dev ant doxygen

before doing "sudo apt-get build-dep".

If you get an "No package 'gstreamer-0.10' found" error,

./ --disable-gstreamer-0_10 --enable-gstreamer



全てのケースで、/etc/apt/sources.listのラインの中にUbuntu mainについてのdeb-src をあなたが保持していることを確実にしてください。例です:

deb-src precise main


sudo apt-get build-dep libreoffice


Get upstream Junit at, because of lp#784631. When you use, specify the location of Junit with:

--with-junit=<absolute path to JUnit 4 jar>

Utopic (14.10) / Vivid (15.04)

もしあなたが configure: error: could not find function 'krb5_sendauth' required for Kerberos 5 を受け取ったならば、それは lp#1366631 の理由なので、あなたはこのようにする必要があります:

sudo apt install libkrb5-dev

もしあなたが configure:error: Qt3 headers not found. Please specify the root of your Qt3 installation by exporting QTDIR before running "configure" を受け取ったならば、あなたは autogen のオプションに --enable-kde4 --disable-kde を付け加える必要があります

Debian/Ubuntuで "libreoffice" のソースパッケージをみつけることができない

# aptitude build-dep libreoffice
Unable to find the source package for "libreoffice".
Unable to find the source package for "libreoffice".
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

あなたの /etc/apt/sources.list でこのような失敗をしそうです (Ubuntuで)-- ほとんど十中八九そのようなラインがすでにそこにあるからです、そしてコメントなしを要求します:

deb-src raring main restricted

それを追加して、それから apt-get update を行ってください、それからビルド開始。(ただしあなたが古いLibreOffice前バージョンの場合: それならLibreOfficeの代わりにopenoffice.orgで試さなければなりません)


Audio-cassette.png This page (may) contain content that is old and/or out of date.

If you have experience in this area, please review this page for accuracy. Reason: These repositories no longer exist. Sooth (talk) 2015-02-26T08:31:10 (UTC)

If you look into building recent versions of LibreOffice, we advise you to add the LibreOffice unstable repository, for reasonably up-to-date dependencies:

sudo zypper ar

For openSUSE 12.3 for example:

sudo zypper ar

If you want to work with a git checkout, naturally then you'd want git, too:

sudo zypper in git

Now install all build dependencies:

sudo zypper si -d libreoffice                                                     # for openSUSE >= 12.1 and maintenance update to LO >= 3.4
sudo zypper si -d libreoffice-bootstrap                                           # for openSUSE == 11.4

IMPORTANT: Please, make sure that you have a reasonable Java SDK. Unfortunately, gcj is installed by default but it does not work reasonably. Please, do:

sudo zypper in java-1_6_0-openjdk-devel                                           # if you prefer pure open source solution

sudo zypper in java-1_6_0-sun-devel                                               # if you prefer Oracle Java


 sudo yum-builddep libreoffice                                                                  # for Fedora &gt;= 15
 sudo yum-builddep                                                               # for RHEL-6, Fedora &lt; 15; &amp; derivatives
 sudo yum install gcc-c++ ant java-devel junit4 flex bison  perl-Archive-Zip \
 gtk2-devel freetype-devel gstreamer-devel autoconf gperf libXaw-devel \
 GConf2-devel gnome-vfs2-devel cups-devel  gstreamer-plugins-base-devel
                                                                                                # for RHEL-5 and derivative

See also Fedora Rawhide Build Notes

Unless you absolutely want to use gnome-vfs, configure libreoffice with an extra --enable-gio - that's how the native fedora packages are built. If instead you go with the default, you need

sudo yum install gnome-vfs2-devel

Arch Linux

Setup the basic build system:

sudo pacman -S base-devel

Make sure that you have installed at least the fonts that are required for the user interface:

sudo pacman -S ttf-dejavu artwiz-fonts

There are the following three methods to get the dependencies. If 'gcc-libs-multilib' is installed, you will have to remove the 'gcc-libs' dependency.

Directly with pacman (Recommended)

These make dependencies are copied from the official PKGBUILD of Arch Build System.

sudo pacman -S --needed 'boost' 'sane' 'perl-archive-zip' 'zip' 'unzip' 'xulrunner' 'unixodbc' 'hsqldb-java' \
                        'apache-ant' 'gperf' 'poppler' 'kdelibs' 'gconf' 'cppunit' \
                        'beanshell'  'vigra' 'libldap' 'clucene' 'libmythes' 'junit' 'libwpg' 'imagemagick' \
                        'mesa>=7.5' 'gstreamer0.10-base>=0.10.26' \
                        "curl>=7.20.0" "hunspell>=1.2.8" "python2>=2.7" 'libwpd>=0.9.0' 'libxaw' "neon>=0.28.6" \
                        'pango' 'nspr' 'libjpeg' 'libxrandr' 'libgl' 'dbus-glib' "icu>=4.6" 'libxslt' \
                        'redland' 'graphite' 'hyphen' 'lpsolve' 'gcc-libs' 'sh' \
                        'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'java-runtime' 'gtk2'

If you don't plan to be working on Java, you can remove hsqldb-java, apache-ant, junit, java-runtime, beanshell from this list as LibreOffice mostly runs without it.

From AUR

sudo pacman -S --needed yaourt
yaourt libreoffice-git

This will show the missing dependencies, clone the git repository and start building.

From Arch Build System

sudo pacman -S --needed abs
sudo abs extra/libreoffice            # get the PKGBUILD for Arch Linux
cp /var/abs/extra/libreoffice/* /tmp  # need to be in directory with write permission 
cd /tmp
makepkg -s                            # install build dependencies

If you run makepkg without the -s option now, this will not get the sources from git but download tarballs.

Vine Linux

sudo apt-get install gtk2-devel cups-devel \
python-devel xorg-x11-devel GConf-devel\
gnome-vfs2-devel gstreamer-devel gstreamer-plugins-devel \
mesa-libGLU-devel libjpeg-turbo-devel \
ant java-1.6.0-openjdk-devel \
ccache git


Install Archive::Zip perl module. Refer to this website on how to manually install a perl module.

./ --without-java --disable-postgresql-sdbc --disable-gstreamer