pyenv install 2.7.5 - сбой сборки - ошибка сегментации - Fedora 29 - PullRequest
0 голосов
/ 07 июля 2019

Я пытаюсь установить python версии 2.7.5 в pyenv, но получаю ошибку BUILD FAILED.

Однако, отлично работает для других версий 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

Одинаковое поведение на разных машинах (оба имеют Fedora 29)

Все необходимые пакеты установлены, как указано в pyenv wiki

...