Ceph编译:L版本及其之后的版本。
1. 编译前准备
下载代码库
git clone git://github.com/ceph/ceph.git all
或者
git clone --recursive https://github.com/ceph/ceph.git
假如想看v13.2.2的代码
只clone一个分支的:
git clone -b v10.2.5 --single-branch git://github.com/ceph/ceph.git single
如果想看v13.2.2分支最后提交的代码:
git clone -b v10.2.5 --single-branch --depth 1 git://github.com/ceph/ceph.git singledep1
使用install-deps.sh解决编译过程中的依赖。首先要解决install-deps执行个安装依赖包很慢的问题:
提前准备好eple:
yum install http://mirrors.aliyun.com/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
rm -rf /etc/yum.repos.d/epel*
装完了删除,这个是为了绕过包验证
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
删除慢速的 aliyuncs:
sed -i '/aliyuncs/d' /etc/yum.repos.d/epel.repo
install-deps.sh第72行的需要修改需要修改成aliyun的: