系统自带有python2.7,编译时报错
来源:3-3 Ansible配合virtualenv安装配置

金桂
2018-09-09
[root@es-test-2 Python-3.6.5]# ./configure --prefix=/usr/local --with-ensurepip=install --enable-shared LDFLAGS="-wl,-rpath /usr/local/lib"
checking build system type… x86_64-pc-linux-gnu
checking host system type… x86_64-pc-linux-gnu
checking for python3.6… no
checking for python3… no
checking for python… python
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… no
configure: error: in /usr/local/software/Python-3.6.5': configure: error: C compiler cannot create executables See
config.log’ for more details
2回答
-
一路向北
2018-09-16
可以看一下视频截图标红的地方, 这里是大写的W, 而不是小写w, 其他地方保证拼写没问题 再试着编译一下.
00 -
一路向北
2018-09-10
感谢这位同学的关注,这个错误应该是对应的Python依赖包没有安装, 可以尝试安装如下依赖包
yum install epel-release -y
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel zx-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel -y052018-09-17
相似问题