安装 sentry 报了 ERROR: Failed building wheel for xmlsec
Building wheels for collected packages: xmlsec
Building wheel for xmlsec (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /root/sentry-env/bin/python3 /root/sentry-env/lib64/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpocbkphzk
cwd: /tmp/pip-install-khjr7jk_/xmlsec_cbaabd7846d844adba51746c8b68c126
Complete output (14 lines):
running bdist_wheel
running build
running build_py
package init file 'src/xmlsec/__init__.py' not found (or not a regular file)
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/xmlsec
copying src/xmlsec/py.typed -> build/lib.linux-x86_64-3.6/xmlsec
copying src/xmlsec/constants.pyi -> build/lib.linux-x86_64-3.6/xmlsec
copying src/xmlsec/template.pyi -> build/lib.linux-x86_64-3.6/xmlsec
copying src/xmlsec/__init__.pyi -> build/lib.linux-x86_64-3.6/xmlsec
copying src/xmlsec/tree.pyi -> build/lib.linux-x86_64-3.6/xmlsec
running build_ext
error: xmlsec1 is not installed or not in path.
----------------------------------------
ERROR: Failed building wheel for xmlsec
Failed to build xmlsec
ERROR: Could not build wheels for xmlsec, which is required to install pyproject.toml-based projects
处理办法:
yum install -y xmlsec1 xmlsec1-devel libxml2 libxml2-devel xmlsec1-openssl xmlsec1-openssl-devel
后续有报了如下错误
/bin/ld: 找不到 -lltdl
collect2: 错误:ld 返回 1
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for xmlsec
Failed to build xmlsec
ERROR: Could not build wheels for xmlsec, which is required to install pyproject.toml-based projects
处理办法:
yum install -y libtool-ltdl
# sudo find / -name libltdl.so*
/usr/lib64/libltdl.so.7
/usr/lib64/libltdl.so.7.3.0
ln -s /usr/lib64/libltdl.so.7.3.0 /usr/lib/libltdl.so
继续执行安装就成功了!