centos8 编译ceph16.2.5-----未成功

ceph 16.25工程管理脚本用了dnf和dnf-utlis,centos7(软件库比较老,且p版本已经不支持centos7)安装部署比较麻烦,所以最好用centos8做编译环境。

1. 从github下载ceph项目及其子项目源码

git clone https://github.com/ceph/ceph.git
git submodule update --init --recursive
2.配置好国内yum源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
运行源码目录下install-deps.sh,安装依赖包

cd ceph
./install-deps.sh
 

3.运行以下脚本

./do_cmake.sh
cd build
make
 

yum源问题:

1.Base源:

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

2.epel源:

mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel.repo

3.CentOS-SCLo-rh源:

https://blog.csdn.net/HD2killers/article/details/82728775

其他问题:

1.No CMAKE_CXX_COMPILER could be found.

解决办法:

yum install gcc-c++ ncurses-devel bison

2.  Can't find sphinx-build.

解决办法:

yum install python-sphinx

3.GCC 7+ required due to C++17 requirements

解决办法:

$ sudo yum install centos-release-scl
$ sudo yum install devtoolset-7
$ scl enable devtoolset-7 bash

为了避免每次手动生效,可以在.bashrc中设置:

source /opt/rh/devtoolset-7/enable
or
source scl_source enable devtoolset-7

4.Could NOT find verbs (missing: VERBS_LIBRARIES VERBS_INCLUDE_DIR)

解决办法:

yum install rdma-core-devel

5.Could NOT find udev (missing: UDEV_LIBRARIES UDEV_INCLUDE_DIR)

解决办法:

yum install systemd-devel

6.Could NOT find blkid (missing: BLKID_LIBRARIES BLKID_INCLUDE_DIR)

解决办法:

yum install libblkid-devel

7.Could NOT find keyutils (missing: KEYUTILS_LIBRARIES KEYUTILS_INCLUDE_DIR)

yum install keyutils-libs-devel

8.Could NOT find OpenLdap (missing: OPENLDAP_INCLUDE_DIR LDAP_LIBRARY

yum install openldap-devel

9.Could NOT find leveldb (missing: LEVELDB_LIBRARIES LEVELDB_INCLUDE_DIR)

yum install leveldb-devel

10.Could NOT find snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)

yum install snappy-devel

11.Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR) (Required is at
  least version "1.7")

yum install lz4-devel

12.Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)

yum install curl-devel

其他:

yum install libaio-devel openssl-devel expat-devel liboath-devel lttng-ust-devel libbabeltrace-devel python36-Cython fuse-devel libnl3-devel librabbitmq-devel libcap-ng-devel gperf librabbitmq-devel librdkafka-devel
————————————————
版权声明:本文为CSDN博主「helloanthea」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/helloanthea/article/details/103728684

报错记录:

 Could NOT find libcryptsetup (missing: LIBCRYPTSETUP_INCLUDE_DIR
  LIBCRYPTSETUP_LIBRARIES)
 

Could NOT find SQLite3 (missing: SQLite3_LIBRARY SQLite3_INCLUDE_DIR)
Call Stack (most recent call first):

CentOS 安装Sqlite3_superbfly的专栏-CSDN博客

方法二:

 sudo yum install sqlite-devel
方法三:

sudo gem install sqlite3-ruby

Could NOT find snappy 

dnf --enablerepo=powertools install snappy-devel

 Could NOT find OpenSSL

dnf --enablerepo=powertools install openssl-devel

Could NOT find EXPAT

dnf --enablerepo=powertools install expat-devel


Could NOT find Python3

dnf --enablerepo=powertools install python3-devel

Could NOT find LTTngUST

dnf --enablerepo=powertools install lttng-ust-devel

Could NOT find Lua

dnf --enablerepo=powertools install lua-devel

WITH_BLUESTORE is ON, but none of the bluestore backends is enabled.

dnf --enablerepo=powertools install  libaio-devel
 

fatal: clone of 'https://github.com/ceph/googletest' into submodule path

[root@fedora ceph]# ./do_cmake.sh
+ '[' -d .git ']'
+ git submodule update --init --recursive
Cloning into '/home/lcx/ceph/src/dmclock'...
fatal: unable to access 'https://github.com/ceph/dmclock.git/': Failed to connect to 127.0.0.1 port 1080 after 1 ms: Connection refused
fatal: clone of 'https://github.com/ceph/dmclock.git' into submodule path '/home/lcx/ceph/src/dmclock' failed
Failed to clone 'src/dmclock'. Retry scheduled
Cloning into '/home/lcx/ceph/src/erasure-code/jerasure/gf-complete'...
fatal: unable to access 'https://github.com/ceph/gf-complete.git/': Failed to connect to 127.0.0.1 port 1080 after 0 ms: Connection refused
fatal: clone of 'https://github.com/ceph/gf-complete.git' into submodule path '/home/lcx/ceph/src/erasure-code/jerasure/gf-complete' failed
Failed to clone 'src/erasure-code/jerasure/gf-complete'. Retry scheduled
Cloning into '/home/lcx/ceph/src/fmt'...
fatal: unable to access 'https://github.com/ceph/fmt.git/': Failed to connect to 127.0.0.1 port 1080 after 0 ms: Connection refused
fatal: clone of 'https://github.com/ceph/fmt.git' into submodule path '/home/lcx/ceph/src/fmt' failed
Failed to clone 'src/fmt'. Retry scheduled
Cloning into '/home/lcx/ceph/src/googletest'...
fatal: unable to access 'https://github.com/ceph/googletest/': Failed to connect to 127.0.0.1 port 1080 after 0 ms: Connection refused
fatal: clone of 'https://github.com/ceph/googletest' into submodule path '/home/lcx/ceph/src/googletest' failed
Failed to clone 'src/googletest'. Retry scheduled
Cloning into '/home/lcx/ceph/src/isa-l'...
fatal: unable to access 'https://github.com/ceph/isa-l/': Failed to connect to 127.0.0.1 port 1080 after 0 ms: Connection refused
fatal: clone of 'https://github.com/ceph/isa-l' into submodule path '/home/lcx/ceph/src/isa-l' failed
Failed to clone 'src/isa-l'. Retry scheduled
Cloning into '/home/lcx/ceph/src/pybind/mgr/rook/rook-client-python'...
fatal: unable to access 'https://github.com/ceph/rook-client-python.git/': Failed to connect to 127.0.0.1 port 1080 after 0 ms: Connection refused
fatal: clone of 'https://github.com/ceph/rook-client-python.git' into submodule path '/home/lcx/ceph/src/pybind/mgr/rook/rook-client-python' failed
Failed to clone 'src/pybind/mgr/rook/rook-client-python'. Retry scheduled
Cloning into '/home/lcx/ceph/src/s3select'...
fatal: unable to access 'https://github.com/ceph/s3select.git/': Failed to connect to 127.0.0.1 port 1080 after 0 ms: Connection refused
fatal: clone of 'https://github.com/ceph/s3select.git' into submodule path '/home/lcx/ceph/src/s3select' failed
Failed to clone 'src/s3select'. Retry scheduled
Cloning into '/home/lcx/ceph/src/spawn'...
fatal: unable to access 'https://github.com/ceph/spawn.git/': Failed to connect to 127.0.0.1 port 1080 after 0 ms: Connection refused
fatal: clone of 'https://github.com/ceph/spawn.git' into submodule path '/home/lcx/ceph/src/spawn' failed
Failed to clone 'src/spawn'. Retry scheduled
Cloning into '/home/lcx/ceph/src/dmclock'...
fatal: unable to access 'https://github.com/ceph/dmclock.git/': Failed to connect to 127.0.0.1 port 1080 after 0 ms: Connection refused
fatal: clone of 'https://github.com/ceph/dmclock.git' into submodule path '/home/lcx/ceph/src/dmclock' failed
Failed to clone 'src/dmclock' a second time, aborting 

修改 vi .gitmodules 将命令行里的https改为git重新执行。

我改了之后发现不生效,所以我是直接找报错里面的地址 自己下载

git clone  git://github.com/ceph/spdk.git

然后将下载的结果spdk按提示“into submodule path '/home/ceph/src/spdk"移动到src下

Cloning into '/home/ceph/src/spdk'...
fatal: unable to access 'https://github.com/ceph/spdk.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
fatal: clone of 'https://github.com/ceph/spdk.git' into submodule path '/home/ceph/src/spdk' failed
Failed to clone 'src/spdk'. Retry scheduled
Cloning into '/home/ceph/src/spdk'...
fatal: unable to access 'https://github.com/ceph/spdk.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
fatal: clone of 'https://github.com/ceph/spdk.git' into submodule path '/home/ceph/src/spdk' failed
Failed to clone 'src/spdk' a second time, aborting
[root@fedora ceph]# git clone  git://github.com/ceph/spdk.git
 

  does not contain a CMakeLists.txt file.

CMake Error at src/CMakeLists.txt:735 (add_subdirectory):
  The source directory

    /home/ceph/src/dmclock

  does not contain a CMakeLists.txt file.
 

/home/ceph/src/dmclock是空目录,删掉。在ceph目录下 vi .gitmodules 找到下载地址

 [submodule "src/dmclock"]
        path = src/dmclock
        url = https://github.com/ceph/dmclock.git

git clone git://github.com/ceph/dmclock.git  下载下来后,放到目src

ERROR Performing build step for 'boost'

ERROR Performing build step for 'boost-libs'

创建环境:conda create -n 环境名称 python=版本

conda create -n env_name python=3.6

激活环境:conda activate 环境名称

conda activate env_name

  Can't find sphinx-build.

CMake Error at CMakeLists.txt:77 (message):
  Can't find sphinx-build.

centos8 安装了python3还是提示python: command not found

centos8 安装了python3还是提示python: command not found - 游牧人生 - 博客园

easy_install: command not found 

改为指定python版本的使用:

sudo python3 -m easy_install Sphinx

[root@rdma59 perf5.0]# ./ceph_perf_msgr_client: /lib64/libcrypto.so.10: version `OPENSSL_1_1_0' not found (required by libceph-common_test.so.0)
> ./ceph_perf_msgr_client: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by libceph-common_test.so.0)
> ./ceph_perf_msgr_client: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by libceph-common_test.so.0)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值