[iyunv@lab78 ceph]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final
Steps:
1)
./autogen.sh
./configure
2) Hit some errors when configure:
checking for uuid_parse in -luuid... no
configure: error: in `/schooner/backup/xiaofeng/ceph':
configure: error: libuuid not found
checking for blkid/blkid.h... no
configure: error: blkid/blkid.h not found (libblkid-dev, libblkid-devel)
checking libudev.h presence... no
checking for libudev.h... no
configure: error: libudev.h not found (libudev-dev, libudev-devel)
configure: error: no FUSE found (use --without-fuse to disable)
checking for malloc in -ltcmalloc... no
configure: error: in `/schooner/backup/xiaofeng/ceph':
configure: error: no tcmalloc found (use --without-tcmalloc to disable)
configure: error: No usable version of libedit found.
configure: error: no libatomic-ops found (use --without-libatomic-ops to disable)
configure: error: libleveldb not found
checking xfs/xfs.h usability... no
checking xfs/xfs.h presence... no
checking for xfs/xfs.h... no
configure: (--without-libxfs to disable)
Solutions:
#install leveldb
wget https://leveldb.googlecode.com/files/leveldb-1.14.0.tar.gz
tar zxvf leveldb-1.14.0.tar.gz
cd leveldb-1.14.0
make
cp libleveldb.* /usr/lib
cp -r include/leveldb /usr/local/include/
#install tcmalloc
#need libunwind first
wget http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99-beta.tar.gz
tar zxvf libunwind-0.99-beta.tar.gz
cd libunwind-0.99-beta
./configure
make && make install
#than gperftools
wget https://googledrive.com/host/0B6NtGsLhIcf7MWxMMF9JdTN3UVk/gperftools-2.2.1.tar.gz
tar zxvf gperftools-2.2.1.tar.gz
cd gperftools-2.2.1
./configure
make
make install
3)
#config with xfs
./configure --without-libxfs
make
some time will hit follow error when make:
/usr/bin/ld: cannot find -llz4
svn checkout http://lz4.googlecode.com/svn/trunk/ lz4
cd lz4/
make
cp liblz4.* /usr/lib
安装github trunk中的版本有风险。
4) start ceph
Will hit follow error sometimes.
./vstart.sh: line 478: btrfs: command not found
add osd0 10ce1af1-2350-458f-97f4-25841ff108b4
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
Traceback (most recent call last):
File "./ceph", line 60, in
import argparse
ImportError: No module named argparse
git clone https://github.com/AlfredChenxf/useful_script
cd useful_script
python ez_setup.py
easy_install pip
pip install argparse Summary, a script for above steps: