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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

破落之实

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值