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
10 -
一路向北
2018-08-29
感谢这位同学的关注, 这里因为你没有安装一些系统依赖包, 导致编译时报错.
这里加参数是指定我们的安装目录, 以及同时安装pip包管理工具.
在编译前需要使用yum install gcc* 去安装一些系统依赖文件保证编译能够正常运行.
022018-08-30 -
heyucool
提问者
2018-08-29
我试了一下./configure不带任何参数 成功了。。为什么会这样
012020-04-01
相似问题