2012-05-18 20:54:51 +00:00
|
|
|
=====================
|
|
|
|
Build Prerequisites
|
|
|
|
=====================
|
|
|
|
Before you can build Ceph source code or Ceph documentation, you need to install
|
|
|
|
several libraries and tools.
|
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
|
|
|
|
|
|
|
Prerequisites for Building Ceph Source Code
|
|
|
|
===========================================
|
2012-05-18 20:54:51 +00:00
|
|
|
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
|
|
|
|
2012-05-18 20:54:51 +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
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
Ubuntu Requirements
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
- ``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``
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
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-23 22:44:11 +00:00
|
|
|
sudo apt-get install uuid-dev libkeyutils-dev libgoogle-perftools-dev libatomic-ops-dev libaio-dev libgdata-common libgdata13
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
|
|
Debian
|
|
|
|
------
|
|
|
|
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)
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
- ``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
|
|
|
|
|
|
|
Prerequisites for Building Ceph Documentation
|
|
|
|
=============================================
|
|
|
|
Ceph utilizes Python's Sphinx documentation tool. For details on
|
2012-05-18 20:54:51 +00:00
|
|
|
the Sphinx documentation tool, refer to: `Sphinx`_
|
|
|
|
Follow the directions at `Sphinx 1.1.3`_
|
|
|
|
to install Sphinx. To run Sphinx, with ``admin/build-doc``, at least the
|
|
|
|
following are required:
|
2012-04-12 18:35:45 +00:00
|
|
|
|
|
|
|
- ``python-dev``
|
|
|
|
- ``python-pip``
|
|
|
|
- ``python-virtualenv``
|
|
|
|
- ``libxml2-dev``
|
|
|
|
- ``libxslt-dev``
|
|
|
|
- ``doxygen``
|
|
|
|
- ``ditaa``
|
|
|
|
- ``graphviz``
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
Execute ``sudo apt-get install`` for each dependency that isn't installed on
|
|
|
|
your host. ::
|
|
|
|
|
|
|
|
sudo apt-get install python-dev python-pip python-virtualenv libxml2-dev libxslt-dev doxygen ditaa graphviz
|
2012-04-12 18:35:45 +00:00
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
.. _Sphinx: http://sphinx.pocoo.org
|
|
|
|
.. _Sphinx 1.1.3: http://pypi.python.org/pypi/Sphinx
|