2012-05-18 20:54:51 +00:00
|
|
|
=====================
|
|
|
|
Build Prerequisites
|
|
|
|
=====================
|
2012-04-11 18:21:43 +00:00
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
.. tip:: Check this section to see if there are specific prerequisites for your
|
|
|
|
Linux/Unix distribution.
|
2012-04-11 18:21:43 +00:00
|
|
|
|
2012-11-08 06:16:50 +00:00
|
|
|
Before you can build Ceph source code, you need to install several libraries
|
|
|
|
and tools. Ceph provides ``autoconf`` and ``automake`` scripts to get you
|
|
|
|
started quickly. Ceph build scripts depend on the following:
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
|
|
- ``autotools-dev``
|
|
|
|
- ``autoconf``
|
|
|
|
- ``automake``
|
|
|
|
- ``cdbs``
|
|
|
|
- ``gcc``
|
|
|
|
- ``g++``
|
|
|
|
- ``git``
|
|
|
|
- ``libboost-dev``
|
|
|
|
- ``libedit-dev``
|
|
|
|
- ``libssl-dev``
|
|
|
|
- ``libtool``
|
|
|
|
- ``libfcgi``
|
|
|
|
- ``libfcgi-dev``
|
|
|
|
- ``libfuse-dev``
|
|
|
|
- ``linux-kernel-headers``
|
|
|
|
- ``libcrypto++-dev``
|
|
|
|
- ``libcrypto++``
|
|
|
|
- ``libexpat1-dev``
|
|
|
|
- ``pkg-config``
|
2012-04-25 21:50:15 +00:00
|
|
|
- ``libcurl4-gnutls-dev``
|
2012-04-11 18:21:43 +00:00
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
On Ubuntu, execute ``sudo apt-get install`` for each dependency that isn't
|
|
|
|
installed on your host. ::
|
2012-04-11 18:21:43 +00:00
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
sudo apt-get install autotools-dev autoconf automake cdbs gcc g++ git libboost-dev libedit-dev libssl-dev libtool libfcgi libfcgi-dev libfuse-dev linux-kernel-headers libcrypto++-dev libcrypto++ libexpat1-dev
|
2012-04-11 18:21:43 +00:00
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
On Debian/Squeeze, execute ``aptitude install`` for each dependency that isn't
|
|
|
|
installed on your host. ::
|
2012-04-11 18:21:43 +00:00
|
|
|
|
2013-01-03 21:29:20 +00:00
|
|
|
aptitude install autotools-dev autoconf automake cdbs gcc g++ git libboost-dev libedit-dev libssl-dev libtool libfcgi libfcgi-dev libfuse-dev linux-kernel-headers libcrypto++-dev libcrypto++ libexpat1-dev pkg-config libcurl4-gnutls-dev
|
|
|
|
|
|
|
|
On Debian/Wheezy, you may also need::
|
2012-04-11 18:21:43 +00:00
|
|
|
|
2013-05-07 23:08:11 +00:00
|
|
|
keyutils-dev libaio libboost-thread-dev
|
2013-01-03 21:29:20 +00:00
|
|
|
|
|
|
|
.. note:: Some distributions that support Google's memory profiler tool may use
|
|
|
|
a different package name (e.g., ``libgoogle-perftools4``).
|
2012-04-11 18:21:43 +00:00
|
|
|
|
2012-11-08 06:16:50 +00:00
|
|
|
Ubuntu
|
|
|
|
======
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
|
|
- ``uuid-dev``
|
2012-05-23 22:44:11 +00:00
|
|
|
- ``libkeyutils-dev``
|
2012-04-11 18:21:43 +00:00
|
|
|
- ``libgoogle-perftools-dev``
|
|
|
|
- ``libatomic-ops-dev``
|
|
|
|
- ``libaio-dev``
|
|
|
|
- ``libgdata-common``
|
|
|
|
- ``libgdata13``
|
2013-02-27 23:53:51 +00:00
|
|
|
- ``libsnappy-dev``
|
|
|
|
- ``libleveldb-dev``
|
|
|
|
|
|
|
|
Execute ``sudo apt-get install`` for each dependency that isn't installed on
|
|
|
|
your host. ::
|
|
|
|
|
2013-02-28 00:03:31 +00:00
|
|
|
sudo apt-get install uuid-dev libkeyutils-dev libgoogle-perftools-dev libatomic-ops-dev libaio-dev libgdata-common libgdata13 libsnappy-dev libleveldb-dev
|
|
|
|
|
2013-02-27 23:53:51 +00:00
|
|
|
|
2012-04-11 18:21:43 +00:00
|
|
|
Debian
|
2012-11-08 06:16:50 +00:00
|
|
|
======
|
|
|
|
|
2012-04-11 18:21:43 +00:00
|
|
|
Alternatively, you may also install::
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
aptitude install fakeroot dpkg-dev
|
|
|
|
aptitude install debhelper cdbs libexpat1-dev libatomic-ops-dev
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
|
|
openSUSE 11.2 (and later)
|
2012-11-08 06:16:50 +00:00
|
|
|
=========================
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
|
|
- ``boost-devel``
|
|
|
|
- ``gcc-c++``
|
|
|
|
- ``libedit-devel``
|
|
|
|
- ``libopenssl-devel``
|
|
|
|
- ``fuse-devel`` (optional)
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
Execute ``zypper install`` for each dependency that isn't installed on your
|
|
|
|
host. ::
|
2012-04-11 18:21:43 +00:00
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
zypper install boost-devel gcc-c++ libedit-devel libopenssl-devel fuse-devel
|
2012-04-12 18:35:45 +00:00
|
|
|
|