CentOS下g++: command not found问题的解决
来源:互联网 发布:alexnet网络 编辑:程序博客网 时间:2024/05/02 17:07
1. 问题的提出
在安装extundelete的过程中,发现在configure过程中,出错了,具体的错误信息如下:
configure:2865: g++ --version >&5./configure: line 2867: g++: command not foundconfigure:2876: $? = 127configure:2865: g++ -v >&5./configure: line 2867: g++: command not foundconfigure:2876: $? = 127configure:2865: g++ -V >&5./configure: line 2867: g++: command not foundconfigure:2876: $? = 127configure:2865: g++ -qversion >&5./configure: line 2867: g++: command not foundconfigure:2876: $? = 127configure:2896: checking whether the C++ compiler worksconfigure:2918: g++ conftest.cpp >&5./configure: line 2920: g++: command not foundconfigure:2922: $? = 127configure:2960: result: noconfigure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME "extundelete"| #define PACKAGE_TARNAME "extundelete"| #define PACKAGE_VERSION "0.2.4"| #define PACKAGE_STRING "extundelete 0.2.4"| #define PACKAGE_BUGREPORT "extundelete.sourceforge.net"| #define PACKAGE_URL ""| #define PACKAGE "extundelete"| #define VERSION "0.2.4"| /* end confdefs.h. */|| int| main ()| {|| ;| return 0;| }configure:2965: error: in `/root/extundelete-0.2.4':configure:2967: error: C++ compiler cannot create executablesSee `config.log' for more details
经过分析,发现其中的关键错误信息是:
g++: command not foundg++马上就脑补为gc++的编译器是不是没有安装呀? 估计是的,按图索骥,安装看看。
2. 安装以及解决
由于本人使用的OS环境为centos, 其默认的包管理工具为yum, 故按照依赖包:
yum -y update gccyum -y install gcc+ gcc-c++执行上述命令之后,可以返现gcc相关命令都按照成功了,故问题解决。
3. 总结分析
默认情况下,centos并未按照gcc相关的编译命令,如果在安装软件之时,有时候需要从源代码编译开始,进行安装;此时就需要gcc的命令支持。
0 0
- CentOS下g++: command not found问题的解决
- g++: command not found的解决
- g++: command not found的解决
- g++: command not found的解决
- g++: command not found的解决
- g++: command not found的解决
- g++: command not found的解决
- g++: command not found的解决
- 解决g++:command not found
- 解决在Windows下Cygwin Command not found的问题
- linux下 command not found 问题的解决
- linux下 的command not found解决
- 解决scp: command not found的问题
- pod command not found问题的解决
- CentOS 中 make: g++ command not found
- 解决出现“ gmake: g++: Command not found gmake: *** [project.o] Error 127”的问题
- libtool: line 990: g++: command not found的解决
- deepin 编译提示g++: command not found的解决
- SPRING源码学习之路(一)
- Android webview实现h5视频全屏播放兼容Android7.0,自己添加webview库兼容全部版本
- AutoMapper使用
- JavaScript深拷贝与浅拷贝的区别
- 设计模式之装饰者模式
- CentOS下g++: command not found问题的解决
- 色值的透明度与十六进制代码转换
- centos安装web流量查看于监测工具vnstat-php-frontend
- MJExtension 字典转模型
- hihocoder #1272 : 买零食
- 51nod-1596 搬货物
- 使用FloatingActionButton滑动消失后不再显示问题
- lucene打分公式
- 用audacity生成一定长度pcm数据并encode成aac