configure步骤失败

来源:3-3 Ansible配合virtualenv安装配置

heyucool

2018-08-29

#  ./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 `/root/Python-3.6.5':
configure: error: C compiler cannot create executables
See `config.log' for more details

请问这可能是什么原因?


写回答

3回答

乱弹琴的web

2019-07-08

w是大写W

1
0

一路向北

2018-08-29

感谢这位同学的关注, 这里因为你没有安装一些系统依赖包, 导致编译时报错.

这里加参数是指定我们的安装目录, 以及同时安装pip包管理工具.

在编译前需要使用yum install gcc* 去安装一些系统依赖文件保证编译能够正常运行.

0
2
一路向北
可以试试这两个命令 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 -y
2018-08-30
共2条回复

heyucool

提问者

2018-08-29

我试了一下./configure不带任何参数 成功了。。为什么会这样

0
1
Lucar_陈
我也遇到你这个问题了,,我是在-Wl,-rpath 中间一点没加空格就好了,,,
2020-04-01
共1条回复

Jenkins+Ansible+Gitlab-三剑合璧掌握自动化部署

整合三大工具解决自动化部署&持续交付问题

1290 学习 · 319 问题

查看课程