Bug #39157
[build from source for centos 7] option --single-version-externally-managed not recognized
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Hi all.
I build ceph from source for centos 7 use this guide : https://arthurchiao.github.io/blog/build-ceph/
after do_cmakes.sh successfully, i run rpmbuild --rebuild ceph-13.2.5-140.g5ae3e4b.el7.src.rpm
it has error
-- Installing: /root/rpmbuild/BUILDROOT/ceph-13.2.5-140.g5ae3e4b.el7.x86_64/usr/lib64/ceph/mgr/balancer/module.py usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: option --single-version-externally-managed not recognized CMake Error at src/pybind/rados3/cmake_install.cmake:65 (message): Failed to build and install cython3_rados python module Call Stack (most recent call first): src/pybind/cmake_install.cmake:81 (INCLUDE) src/cmake_install.cmake:397 (INCLUDE) cmake_install.cmake:38 (INCLUDE) make: *** [install] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.eJdfJd (%install)
I tried to update setuptools and wheel but it not working
pip install -U setuptools pip install -U wheel
How i can fix this issue.
Thanks
History
#1 Updated by Zhi Zhang over 4 years ago
@hoan, I guess your env had multiple versions of python, e,g. python 2.x and 3.x.
I got the same issue recently when building and installing cython3_rados pkg by python 3.x.
pip is used for python 2.x by default. I resolved the issue by installing following pkgs as my python version is 3.6:
yum install python36-pip python36-setuptools