Merge pull request #9147 from flaf/master

doc: update required packages list to build doc

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-05-23 22:20:54 +08:00
commit 4711fe1cae
2 changed files with 32 additions and 27 deletions

View File

@ -7,16 +7,31 @@ TOPDIR=`pwd`
install -d -m0755 build-doc install -d -m0755 build-doc
if command -v dpkg >/dev/null; then if command -v dpkg >/dev/null; then
for package in python-dev python-pip python-virtualenv doxygen ditaa ant libxml2-dev libxslt1-dev zlib1g-dev cython graphviz; do packages='
if [ "$(dpkg --status -- $package|sed -n 's/^Status: //p')" != "install ok installed" ]; then git
# add a space after old values gcc
missing="${missing:+$missing }$package" python-dev
fi python-pip
python-virtualenv
libxml2-dev
libxslt1-dev
doxygen
ditaa
graphviz
ant
cython
librbd-dev
zlib1g-dev'
for package in $packages; do
if [ "$(dpkg --status -- $package 2>&1 | sed -n 's/^Status: //p')" != "install ok installed" ]; then
# add a space after old values
missing="${missing:+$missing }$package"
fi
done done
if [ -n "$missing" ]; then if [ -n "$missing" ]; then
echo "$0: missing required packages, please install them:" 1>&2 echo "$0: missing required packages, please install them:" 1>&2
echo "sudo apt-get install $missing" echo "sudo apt-get install -o APT::Install-Recommends=true $missing" 1>&2
exit 1 exit 1
fi fi
elif command -v yum >/dev/null; then elif command -v yum >/dev/null; then
for package in python-devel python-pip python-virtualenv doxygen ditaa ant libxml-devel libxslt-devel Cython graphviz; do for package in python-devel python-pip python-virtualenv doxygen ditaa ant libxml-devel libxslt-devel Cython graphviz; do

View File

@ -28,32 +28,22 @@ You should have a full copy of the Ceph repository.
Install the Required Tools Install the Required Tools
-------------------------- --------------------------
To build the Ceph documentation, the following packages are required on To build the Ceph documentation, some dependencies are required.
Ubuntu 14.04: To know what packages are needed, you can launch this command::
- ``python-dev`` cd ceph
- ``python-pip`` admin/build-doc
- ``python-virtualenv``
- ``libxml2-dev``
- ``libxslt-dev``
- ``doxygen``
- ``ditaa``
- ``graphviz``
- ``ant``
- ``cython``
- ``librbd-dev``
Execute ``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 ant cython librbd-dev
If dependencies are missing, the command above will fail
with a message that suggests you a command to install all
missing dependencies.
Build the Documents Build the Documents
------------------- -------------------
Once you have installed all the dependencies, execute the build:: Once you have installed all the dependencies, execute the build (the
same command as above)::
cd ceph cd ceph
admin/build-doc admin/build-doc