Debian
From Ceph wiki
Installing on Debian or Ubuntu can be done in two ways, using the precompiled packages (Which can be a few days, maybe weeks behind the source) or build debian packages yourself from source, which will be the most current.
Both methods are described on this page.
Contents |
Release packages
Updated documentation: http://ceph.newdream.net/docs/master/ops/install/
Autobuilt unstable packages
Updated documentation: http://ceph.newdream.net/docs/master/ops/autobuilt/
Kernel module package
The kernel client module source is available separately in the ceph-kclient-source package, and installed at /usr/src/modules/ceph. You will need the kernel headers to compile it. To install the kernel headers for your current running kernel do:
$ apt-get install linux-headers-$(uname -r) $ apt-get install build-essential $ apt-get install ceph-kclient-source
Then
$ cd /usr/src/modules/ceph $ make $ make modules_install $ depmod $ modprobe ceph
At the moment only amd64 and i386 binary packages are available.
Please notice that you need at least a 2.6.27 kernel (which is not in Debian Lenny, but in backports).
Continue to Installing on Debian.
Building from source
If you really want to run the bleeding edge version of Ceph, but want to use the comfort of .deb packages, you could build them from source yourself.
Before doing so, check ceph_dependencies to make sure you have all those packages installed. Also install debhelper.
Install all with one command:
apt-get install debhelper autotools-dev autoconf automake g++ gcc cdbs libfuse-dev libboost-dev \ libedit-dev libssl-dev libtool libexpat1-dev libfcgi-dev libatomic-ops-dev libgoogle-perftools-dev \ libkeyutils-dev pkg-config libgtkmm-2.4-dev libcrypto++-dev python-dev libcurl4-gnutls-dev
Get a copy of the source:
git clone git://github.com/NewDreamNetwork/ceph.git
The default 'master' branch is the unstable development branch. If you prefer to live a little further from the edge you can use the bugfix ('stable') or release candidate ('next') branch:
cd ceph git checkout -b stable origin/stable
Then, build your own package:
dpkg-buildpackage
Hint: When building the packages, add the -j option to use multiple cores. -j(numcores*2) is advised.
This may take a while. When the building finishes, there should be .deb files in the parent directory which you can install with dpkg -i <deb file>