Ceph10.2.11 configure error解决

最近云计算课程有个作业要用到ceph,在编译安装ceph的时候发现缺少各种库,疯狂报错。。。在此记录。
感谢这篇文章给了很大帮助。虽然版本不一样,但解决了大部分问题。
https://blog.csdn.net/je930502/article/details/50698669

实验环境

  • 操作系统:CentOS 7.3 kernel 3.10
  • Ceph 版本:10.2.11

编译和安装ceph

解压ceph源码

tar zxvf ceph-10.2.11.tar.gz

编译和安装,依次输入下面四条命令。

./autogen.sh
./configure
make -j24
make install

错误记录

运行./autogen.sh

libtoolize failed

yum install -y libtool 

运行 ./configure 报错,主要是缺少各种依赖库,报的错如下:

g++ command could not found

yum install gcc gcc-c++ kernel-devel

configure: error: cython not found

yum install Cython

python-config not found

yum install python-devel

configure: error: libsnappy not found

yum install snappy-devel

configure: error: libleveldb not found

yum install leveldb-devel

configure: error: blkid/blkid.h not found (libblkid-dev, libblkid-devel)

yum install libblkid-devel

configure: error: libudev.h not found (libudev-dev, libudev-devel)

yum install libudev-devel

configure: error: expat.h not found (libexpat-devel)

yum install expat-devel

configure: error: keyutils

yum install keyutils-libs-devel

configure: error: no suitable crypto library found

yum install nss-devel

configure: error: no FUSE found (use –without-fuse to disable)

yum install fuse-devel

configure: error: no tcmalloc found (use –without-tcmalloc to disable)

yum install google-perftools-devel

configure: error: no libatomic-ops found (use --without-libatomic-ops to disable):

**yum install libatomic_ops-devel**

configure: error: libaio not found

 yum install libaio-devel

configure: error: xfs/xfs.h not found (–without-libxfs to disable)

yum install xfsprogs-devel

configure: error: "Can’t find boost spirit headers"

yum install boost-devel

configure: error: ldap.h not found (openldap-dev, openldap-devel)

yum install openldap-devel

运行make -j24

g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report

采用这个方法:https://blog.csdn.net/hdyes/article/details/83303085

dd if=/dev/zero of=/swapfile bs=512M count=16
mkswap /swapfile
swapon /swapfile

编译完后

swapoff /swapfile
rm /swapfile

make[3]: [compressor/zlib/libceph_zlib_la-CompressionZlib.lo] Error

yum install zlib-devel

Could not find git command.

yum install git

emm后面还没安好,明天再更。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章