In the case of a network, Ubuntu installation software is very convenient, to install Ceph, also on a command to fix, want to install ceph0.72 on ubuntu14.04, because the official source of Ceph Ceph-extra does not contain ubuntu14.04 trusty package, Ceph, which uses 163 of its source, is an unwanted version, so it compiles and installs Ceph 0.72, thus experiencing the process of compiling and installing Ceph.
1. Install the required packages for compilation
You have already made a cost source and modified/etc/apt/sources.list to point to your local source. The package to be loaded is really a lot.
Apt-get Update
apt-get install automake autoconf pkg-config gcc g++ make Libboost-dev libedit-dev libssl-dev libtool L ibfcgi libfcgi-dev libfuse-dev linux-kernel-headers libcrypto++-dev libaio-dev Libgoogle-perftools-dev Libkeyutils-dev uuid-dev Libatomic-ops-dev Libboost-program-options-dev libboost-thread-dev Libexpat1-dev Libleveldb-dev Libsnappy-dev Libcurl4-gnutls-dev python-argparse python-flask
2. Can be compiled after successful installation
./autogen.sh
./configure make do
install
PS: It is important to note that it requires very large memory to compile ceph, so it is recommended that the memory of the node to be installed is large enough, otherwise it will appear: g++ compiler internal Error, thus the compilation process is interrupted.
In order to ensure the normal operation of the compilation, in addition to increasing memory, it is best to also swap partitions.
DD If=/dev/zero of=/swapfile bs=64m count=16
Mkswap/swapfile
Swapon/swapfile
After you have finished editing the partition.
3. After the successful compilation, do not be happy too early, there are some things to do, compiled and installed ceph and Apt-get install Ceph can be very different, such as/etc/ceph This directory is not, about the Ceph directory, you have to create a new/etc/ceph/ ,/var/lib/ceph and so on. You need to add ceph.conf to/ETC/LD.SO.CONF.D, the content is/usr/local/lib, and then run/sbin/ldconfig to make the configuration take effect. There's nothing wrong with that.