Ceph10.2.11 configure error解决

更新:2020.5.16
搞了半天自己还是没装好。幸好群里有大佬装好了弄了个docker镜像,现在只要用那个跑就好了。
https://hub.docker.com/r/haoheipi/ceph_single


最近云计算课程有个作业要用到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 报错,主要是缺少各种依赖库,报的错如下:

我觉得我是傻逼,后面才发现有个install-deps.sh的脚本文件是来下载各种依赖的。
直接执行./install-deps.sh可能就不用一个个安装下面的包了。

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

pip command not found

yum install python-setuptools

我tm哭了,从早上make到晚上八点,竟然报了这个错!!!明天再更。。。
Could not build wheels for argparse, since package ‘wheel’ is not installed.

pip install wheel

你可能感兴趣的:(云计算,bug记录,ceph,centos)