python安装pycrypto 模块提'configure:2724: error: C compiler cannot create executables'

来源:互联网 发布:畅捷通软件好用吗 编辑:程序博客网 时间:2024/06/05 09:33

# pip install pycrypto  

安装过程报错如下

configure:2722: error: in `/root/pycrypto-2.6.1':
configure:2724: error: C compiler cannot create executables

缺少C环境,yum安装,但提示gcc gcc-c++已经安装


查看config.log文件提示找不到 .so文件

# cat config.log |grep error
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
as: error while loading shared libraries: libbfd-2.23.52.0.1-55.el7.so: cannot open shared object file: No such file or directory
configure:2722: error: in `/root/pycrypto-2.6.1':
configure:2724: error: C compiler cannot create executables

# find / -name libbfd-2.23.52.0.1-55.el7.so  未找到该文件

在网上也没找到恢复的方法,因此从另一个系统 scp一份过来。

再次安装,问题依然存在,查看config.log发现提示另一个.so文件缺失。继续scp.....

最后安装成功

0 0
原创粉丝点击