error: command 'gcc' failed with exit status 1

2017-5-1 杜世伟 Python

错误:error: command 'gcc' failed with exit status 1

在 centons 使用pip安装Python模块出现error: command 'gcc' failed with exit status 1 ,明明装了gcc的,怎么会不行呢,然后发觉是failed不是not found,这说明这个错误个gcc没多大关系,应该是缺少某些功能模块,然后谷歌了一下,先后安装了python-devel,libffi-devel后还是不行,最后发觉要安装openssl-devel才行

可如下命令行安装:

yum install gcc libffi-devel python-devel openssl-devel

阅读全文>>

标签: linux gcc python pip

评论(0) 浏览(17730)

GCC:undefined reference to ‘sqrt’

2016-1-13 杜世伟 C

undefined reference to `sqrt'
代码中是我是引入math.h类库的,提示没有找到!该问题为实际上没有链接math库,编译时需要加上 -lm 参数(链接math库)
通过执行 gcc -lm test02.c -o test02即可

阅读全文>>

标签: gcc sqrt

评论(0) 浏览(3800)

gcc: error trying to exec 'cc1plus': execvp: No such file or directory

2013-12-18 杜世伟 Linux

gcc: error trying to exec 'cc1plus': execvp: No such file or directory

执行yum install gcc-c++后,问题解决...

阅读全文>>

标签: linux gcc cc1plus

评论(0) 浏览(5312)

Powered by emlog 沪ICP备2023034538号-1