ubuntu14.04 Compiling and installing Ceph

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.