Python pyenv安装2.7.5-构建失败-分段错误-Fedora 29

Python pyenv安装2.7.5-构建失败-分段错误-Fedora 29,python,pyenv,fedora-29,Python,Pyenv,Fedora 29,我正在尝试在pyenv中安装python版本2.7.5,但获取构建失败错误 但是,对于其他python版本,如2.7.15和3.7.3,工作正常 错误: Installing Python-2.7.5... patching file ./Modules/readline.c Hunk #1 succeeded at 204 (offset -2 lines). Hunk #2 succeeded at 747 (offset -2 lines). Hunk #3 succeeded at 85

我正在尝试在pyenv中安装python版本2.7.5,但获取构建失败错误

但是,对于其他python版本,如2.7.15和3.7.3,工作正常

错误:

Installing Python-2.7.5...
patching file ./Modules/readline.c
Hunk #1 succeeded at 204 (offset -2 lines).
Hunk #2 succeeded at 747 (offset -2 lines).
Hunk #3 succeeded at 857 (offset -2 lines).
Hunk #4 succeeded at 905 (offset -13 lines).
patching file ./Lib/site.py
patching file ./Lib/ssl.py
Hunk #2 succeeded at 430 (offset -5 lines).
patching file ./Modules/_ssl.c
Hunk #1 succeeded at 65 (offset -2 lines).
Hunk #2 succeeded at 304 (offset -4 lines).
Hunk #3 succeeded at 1729 (offset -83 lines).

BUILD FAILED (Fedora 29 using python-build 1.2.9-35-gb6109093)

Inspect or clean up the working tree at /tmp/python-build.20190707202141.31769
Results logged to /tmp/python-build.20190707202141.31769.log

Last 10 log lines:
        Modules/python.o \
        libpython2.7.a -lpthread -ldl  -lutil   -lm  
/usr/bin/ld: libpython2.7.a(posixmodule.o): in function `posix_tmpnam':
/tmp/python-build.20190707202141.31769/Python-2.7.5/./Modules/posixmodule.c:7515: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/bin/ld: libpython2.7.a(posixmodule.o): in function `posix_tempnam':
/tmp/python-build.20190707202141.31769/Python-2.7.5/./Modules/posixmodule.c:7462: warning: the use of `tempnam' is dangerous, better use `mkstemp'
./python -E -S -m sysconfig --generate-posix-vars
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
make: *** [Makefile:464: pybuilddir.txt] Segmentation fault (core dumped
安装Python-2.7.5。。。
修补文件。/Modules/readline.c
Hunk#1在204处成功(偏移-2行)。
Hunk#2在747(偏移量-2行)成功。
Hunk#3在857处成功(偏移量-2行)。
Hunk#4在905处成功(偏移-13行)。
修补文件。/Lib/site.py
修补文件。/Lib/ssl.py
Hunk#2在430处成功(偏移-5行)。
修补文件./Modules/_ssl.c
Hunk#1在65处成功(偏移-2行)。
Hunk#2在304处成功(偏移-4行)。
Hunk#3在1729(偏移量-83行)成功。
构建失败(Fedora29使用python构建1.2.9-35-gb6109093)
检查或清理位于/tmp/python-build.20190707202141.31769的工作树
结果记录到/tmp/python-build.20190707202141.31769.log
最后10行日志:
Modules/python.o\
libpython2.7.a-lpthread-ldl-lutil-lm
/usr/bin/ld:libpython2.7.a(posixmodule.o):在函数“posix_tmpnam”中:
/tmp/python build.20190707202141.31769/python-2.7.5//Modules/posixmodule.c:7515:警告:使用“tmpnam_r”是危险的,最好使用“mkstemp”
/usr/bin/ld:libpython2.7.a(posixmodule.o):在函数“posix_tempnam”中:
/tmp/python build.20190707202141.31769/python-2.7.5//Modules/posixmodule.c:7462:警告:使用'tempnam'是危险的,最好使用'mkstemp'
./python-E-S-msysconfig——生成posix变量
找不到与平台相关的库
考虑将$PythONHOLD设置为[:]
make:**[Makefile:464:pybuilddir.txt]分段错误(内核转储)
不同机器上的行为相同(都有Fedora 29)

所有必要的软件包均按照上的说明安装