【发布时间】:2020-08-31 22:07:11
【问题描述】:
我在 CentOS 8 上安装 Python 2.4.6 时遇到问题。 我需要旧的 Python 2.4.6,因为我正在运行一些需要 Python 2.4 的应用程序。
我下载了 Python 2.4.6.tgz 包,将其解压缩并运行“./configure”,它可以工作。 当我尝试运行“make”时,我看到很多警告,最后显示以下错误消息:
gcc -pthread -Xlinker -export-dynamic -o python \
Modules/python.o \
libpython2.4.a -lpthread -ldl -lutil -lm
libpython2.4.a(posixmodule.o): In function `posix_tmpnam':
/usr/local/src/Python-2.4.6/./Modules/posixmodule.c:6240: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.4.a(posixmodule.o): In function `posix_tempnam':
/usr/local/src/Python-2.4.6/./Modules/posixmodule.c:6195: warning: the use of `tempnam' is dangerous, better use `mkstemp'
case $MAKEFLAGS in \
*-s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
/bin/sh: line 1: 5296 Segmentation fault (core dumped) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build
make: *** [Makefile:342: sharedmods] Error 139
任何想法,这里可能有什么问题?如果需要,我可以在运行“make”(很长)之后发布整个输出。 提前非常感谢。
【问题讨论】: