centos 7 ceph-10.2.3编译与安装问题记录

1. 源码编译依赖包安装

yum install libtool gcc gcc-c++ Cython snappy-devel leveldb-devel libblkid-devel libudev-devel expat-devel cryptopp-devel gperftools-devel libatomic_ops-devel libaio-devel xfsprogs-devel openldap-devel pyenv python-pip python-devel -y


2. 源码手动编译c++ 11支持问题

export CXXFLAGS=-std=c++11:$CXXFLAGS然后再make


3. rpm编译依赖安装

yum install rpm-build rpmdevtools java-devel sharutils checkpolicy selinux-policy-devel cmake libxml2-devel python-nose python-sphinx python-virtualenv valgrind-devel xmlstarlet yasm nss-devel junit selinux-policy-doc -y

4. rpm 安装

遇到selinux-policy-base依赖问题

[root@tc-server rpm]# rpm -ivh ceph-selinux-10.2.3-0.el7.centos.x86_64.rpm
error: Failed dependencies:
ceph-base = 1:10.2.3-0.el7.centos is needed by ceph-selinux-1:10.2.3-0.el7.centos.x86_64
selinux-policy-base >= 3.13.1-60.el7_2.7 is needed by ceph-selinux-1:10.2.3-0.el7.centos.x86_64


可通过yum provides selinux-policy-base查找包含selinux-policy-base = 3.13.1-60.el7_2.7或更高的包然后安装

推荐包下载地址:

http://buildlogs.centos.org/c7.1511.u.a64/selinux-policy/


然后同时安装ceph-base和ceph-selinux两个包避免相互依赖

rpm -ivh ceph-base-10.2.3-0.el7.centos.x86_64.rpm ceph-selinux-10.2.3-0.el7.centos.x86_64.rpm


你可能感兴趣的:(ceph工具部署)