【发布时间】:2018-11-29 16:49:56
【问题描述】:
在 centos 7.5 上为 Python-2.7.15 创建 rpm 时。 我正在使用以下命令创建 rpm。
python setup.py bdist_rpm
.....
......
.....
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.UFJQ7P
+ umask 022
+ cd /root/rpmbuild/SOURCES/Python-2.7.15/build/bdist.linux-x86_64/rpm/BUILD
+ cd Python-2.7.5
+ env 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' python setup.py build
running build
running build_ext
error: pyconfig.h: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.UFJQ7P (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.UFJQ7P (%build)
error: command 'rpmbuild' failed with exit status 1
【问题讨论】:
-
你考虑过用谷歌搜索
error: pyconfig.h: No such file or directory吗?第一个链接有你的答案...