安装python报错_安装Python3 报错

在Linux环境中使用GCC安装Python3.5.2时遇到配置错误,如选项设置不当、依赖库缺失等。配置过程显示C编译器工作正常,但在检查Python3版本时未找到。检查了多个编译选项和库支持,但仍然无法成功安装。
摘要由CSDN通过智能技术生成

对linux不是很熟悉,用GCC安装python的时候出了一堆错误

大概是环境没装好吧

[root@VM_75_93_centos Python-3.5.2]# ./configure –prefix=/usr/python3

checking build system type… x86_64-unknown-linux-gnu

checking host system type… x86_64-unknown-linux-gnu

checking for –enable-universalsdk… no

checking for –with-universal-archs… no

checking MACHDEP… linux

checking for –without-gcc… no

checking for –with-icc… no

checking for gcc… gcc

checking whether the C compiler works… yes

checking for C compiler default output file name… a.out

checking for suffix of executables…

checking whether we are cross compiling… no

checking for suffix of object files… o

checking whether we are using the GNU C compiler… yes

checking whether gcc accepts -g… yes

checking for gcc option to accept ISO C89… none needed

checking how to run the C preprocessor… gcc -E

checking for grep that handles long lines and -e… /usr/bin/grep

checking for –with-cxx-main=… no

checking for g++… no

configure:

By default, distutils will build C++ extension modules with “g++”.

If this is not intended, then set CXX on the configure command line.

checking for the platform triplet based on compiler characteristics… x86_64-linux-gnu

checking for -Wl,–no-as-needed… yes

checking for egrep… /usr/bin/grep -E

checking for ANSI C header files… yes

checking for sys/types.h… yes

checking for sys/stat.h… yes

checking for stdlib.h… yes

checking for string.h… yes

checking for memory.h… yes

checking for strings.h… yes

checking for inttypes.h… yes

checking for stdint.h… yes

checking for unistd.h… yes

checking minix/config.h usability… no

checking minix/config.h presence… no

checking for minix/config.h… no

checking whether it is safe to define __EXTENSIONS__… yes

checking for –with-suffix…

checking for case-insensitive build directory… no

checking LIBRARY… libpython$(VERSION)$(ABIFLAGS).a

checking LINKCC… $(PURIFY) $(MAINCC)

checking for GNU ld… yes

checking for inline… inline

checking for –enable-shared… no

checking for –enable-profiling… no

checking LDLIBRARY… libpython$(VERSION)$(ABIFLAGS).a

checking for ranlib… ranlib

checking for ar… ar

checking for readelf… readelf

checking for python3.5… no

checking for python3… no

checking for python… python

checking for python3.5… (cached) python

checking for a BSD-compatible install… /usr/bin/install -c

checking for a thread-safe mkdir -p… /usr/bin/mkdir -p

checking for –with-pydebug… no

checking for –with-lto… no

checking for llvm-profdata… not-found

checking whether gcc accepts and needs -fno-strict-aliasing… no

checking if we can turn off gcc unused result warning… yes

checking for -Werror=declaration-after-statement… yes

checking if we can turn on gcc mixed sign comparison warning… yes

checking if we can turn on gcc unreachable code warning… no

checking whether pthreads are available without options… no

checking whether gcc accepts -Kpthread… no

checking whether gcc accepts -Kthread… no

checking whether gcc accepts -pthread… yes

checking whether g++ also accepts flags for thread support… no

checking for ANSI C header files… (cached) yes

checking asm/types.h usability… yes

checking asm/types.h presence… yes

checking for asm/types.h… yes

checking conio.h usability… no

checking conio.h presence… no

checking for conio.h… no

checking direct.h usability… no

checking direct.h presence… no

checking for direct.h… no

checking dlfcn.h usability… yes

checking dlfcn.h presence… yes

checking for dlfcn.h… yes

checking errno.h usability… yes

checking errno.h presence… yes

checking for errno.h… yes

checking fcntl.h usability… yes

checking fcntl.h presence… yes

checking for fcntl.h… yes

checking grp.h usability… yes

checking grp.h presence… yes

checking for grp.h… yes

checking ieeefp.h usability… no

checking ieeefp.h presence… no

checking for ieeefp.h… no

checking io.h usability… no

checking io.h presence… no

checking for io.h… no

checking langinfo.h usability… yes

checking langinfo.h presence… yes

checking for langinfo.h… yes

checking libintl.h usability… yes

checking libintl.h presence… yes

checking for libintl.h… yes

checking process.h usability… no

checking process.h presence… no

checking for process.h… no

checking pthread.h usability… yes

checking pthread.h presence… yes

checking for pthread.h… yes

checking sched.h usability… yes

checking sched.h presence… yes

checking for sched.h… yes

checking shadow.h usability… yes

checking shadow.h presence… yes

checking for shadow.h… yes

checking signal.h usability… yes

checking signal.h presence… yes

checking for signal.h… yes

checking for stdint.h… (cached) yes

checking stropts.h usability… no

checking stropts.h presence… no

checking for stropts.h… no

checking termios.h usability… yes

checking termios.h presence… yes

checking for termios.h… yes

checking for unistd.h… (cached) yes

checking utime.h usability… yes

checking utime.h presence… yes

checking for utime.h… yes

checking poll.h usability… yes

checking poll.h presence… yes

checking for poll.h… yes

checking sys/devpoll.h usability… no

checking sys/devpoll.h presence… no

checking for sys/devpoll.h… no

checking sys/epoll.h usability… yes

checking sys/epoll.h presence… yes

checking for sys/epoll.h… yes

checking sys/poll.h usability… yes

checking sys/poll.h presence… yes

checking for sys/poll.h… yes

checking sys/audioio.h usability… no

checking s

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值