2012-05-18 20:54:51 +00:00
|
|
|
|
===============
|
|
|
|
|
Building Ceph
|
|
|
|
|
===============
|
2012-04-11 18:21:43 +00:00
|
|
|
|
Ceph provides build scripts for source code and for documentation.
|
|
|
|
|
|
|
|
|
|
Building Ceph
|
2012-05-18 20:54:51 +00:00
|
|
|
|
-------------
|
|
|
|
|
Ceph provides ``automake`` and ``configure`` scripts to streamline the build
|
|
|
|
|
process. To build Ceph, navigate to your cloned Ceph repository and execute the
|
|
|
|
|
following::
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
|
cd ceph
|
|
|
|
|
./autogen.sh
|
|
|
|
|
./configure
|
|
|
|
|
make
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
|
You can use ``make -j`` to execute multiple jobs depending upon your system. For
|
|
|
|
|
example::
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
|
make -j4
|
2012-05-03 17:15:21 +00:00
|
|
|
|
|
|
|
|
|
To install Ceph locally, you may also use::
|
2012-04-25 21:50:15 +00:00
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
|
sudo make install
|
2012-05-01 02:03:53 +00:00
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
|
If you install Ceph locally, ``make`` will place the executables in
|
|
|
|
|
``usr/local/bin``. You may add the ``ceph.conf`` file to the ``usr/local/bin``
|
|
|
|
|
directory to run an evaluation environment of Ceph from a single directory.
|
2012-05-03 17:15:21 +00:00
|
|
|
|
|
2012-04-11 18:21:43 +00:00
|
|
|
|
Building Ceph Documentation
|
2012-05-18 20:54:51 +00:00
|
|
|
|
---------------------------
|
|
|
|
|
Ceph utilizes Python’s Sphinx documentation tool. For details on the Sphinx
|
|
|
|
|
documentation tool, refer to: `Sphinx`_. To build the Ceph documentaiton,
|
|
|
|
|
navigate to the Ceph repository and execute the build script::
|
2012-04-11 18:21:43 +00:00
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
|
cd ceph
|
|
|
|
|
admin/build-doc
|
2012-05-03 17:15:21 +00:00
|
|
|
|
|
2012-04-11 18:21:43 +00:00
|
|
|
|
Once you build the documentation set, you may navigate to the source directory to view it::
|
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
|
cd build-doc/output
|
|
|
|
|
|
|
|
|
|
There should be an ``/html`` directory and a ``/man`` directory containing
|
|
|
|
|
documentation in HTML and manpage formats respectively.
|
2012-05-03 17:15:21 +00:00
|
|
|
|
|
2012-05-18 20:54:51 +00:00
|
|
|
|
.. _Sphinx: http://sphinx.pocoo.org
|