安装依赖包
- 进入容器。
podman exec -it openeuler2203sp3_build /bin/bash
- 安装通用组件。
yum install CUnit-devel boost-random checkpolicy cmake cryptsetup-devel expat-devel fmt-devel fuse-devel gperf java-devel junit keyutils-libs-devel libaio-devel libbabeltrace-devel libblkid-devel libcap-ng-devel libcurl-devel numactl-devel libicu-devel libnl3-devel liboath-devel librabbitmq-devel librdkafka-devel librdmacm-devel libtool libxml2-devel lttng-ust-devel lua-devel luarocks lz4-devel make nasm ncurses-devel ninja-build nss-devel openldap-devel openssl-devel libudev-devel python3-Cython python3-devel python3-prettytable python3-pyyaml python3-setuptools python3-sphinx re2-devel selinux-policy-devel sharutils snappy-devel sqlite-devel sudo thrift-devel valgrind-devel xfsprogs-devel xmlstarlet doxygen -y
- 编译ceph-mgr-cephadm依赖包。
- git配置。
git init git config --global http.proxy http://***** // 按需配置 git config --global http.sslVerify "false" git config --global https.proxy http://***** // 按需配置 git config --global https.sslVerify "false" git config --global http.postBuffer 1048576000 //将 Git 缓冲区大小增加到 repo 的最大单个文件大小:1G
- 编译python-asyncss依赖(openEuler 22.03推荐使用python-asyncss 2.7)。
git clone https://gitee.com/src-oepkgs/python-asyncssh.git cp python-asyncssh/* /root/rpmbuild/SOURCES/ cp python-asyncssh/* /root/rpmbuild/SPECS/ rpmbuild -bb /root/rpmbuild/SPECS/python-asyncssh.spec
- 编译python-natsort依赖。
git clone https://gitee.com/src-openeuler/python-natsort.git yum install python3-coverage python3-hypothesis python3-pytest python3-pytest-cov python3-pytest-mock cp python-natsort/* /root/rpmbuild/SOURCES/ cp python-natsort/* /root/rpmbuild/SPECS/ rpmbuild -bb /root/rpmbuild/SPECS/python-natsort.spec
- 安装RPM包。
mv /root/rpmbuild/RPMS/noarch/* /home/local_rpm/ cd /home/local_rpm/ yum install python-asyncssh-help-2.7.0-2.noarch.rpm python3-asyncssh-2.7.0-2.noarch.rpm python3-natsort-8.4.0-2.noarch.rpm
- git配置。
父主题: 编译Ceph软件包