编译error: no acceptable C compiler found in $PATH
执行./configure时报错:
configure: error: no acceptable C compiler found in $PATH
***********************************************************
查看得知未安装合适的编译器。
sudo yum install gcc-c++
(使用sudo yum install gcc-c++时会自动安装/升级gcc及其他依赖的包。)
重新执行
./configure
make
make install
成功!
附带说明gcc与g++/gcc-c++的异同:
gcc为GNU Compiler Collection的缩写,可以编译C和C++源代码等,它是GNU开发的C和C++以及其他很多种语言的编译器(最早的时候只能编译C,后来很快进化成一个编译多种语言的集合,如Fortran、Pascal、Objective-C、Java、Ada、 Go等。)
gcc在编译C++源代码的阶段,只能编译C++源文件,而不能自动和C++程序使用的库链接(编译过程分为编译、链接两个阶段,源程序文件被编译成目标文件,多个目标文件连同库被链接成一个最终的可执行文件,可执行文件被加载到内存中运行)。因此,通常使用g++命令来完成C++程序的编译和连接,该程序会自动调用 gcc 实现编译。
g++也能编译C源代码,只不过把会把它当成C++源代码。后缀为.c的源文件,gcc把它当作是C程序,而g++把它当作是c++程序;后缀为.cpp的,两者都会认为是c++程序。注意,虽然c++是c的超集,但是两者对语法的要求是有区别的。
编译error: no acceptable C compiler found in $PATH相关推荐
- 编译Python时报错:configure: error: no acceptable C compiler found in $PATH
报错信息如下: [root@master ~]#./configure --prefix=/usr/local/python3.6 checking build system type... i686 ...
- configure 包,出现error: no acceptable C compiler found in $PATH 问题
今天在装snmp包configure 报错,无gcc编辑器帮编译,所有搜到此文章,GCC安装步骤见下一篇 转自 http://raulkang.blog.51cto.com/210239/573151 ...
- CentOS6 安装gcc编译器,解决【configure: error: no acceptable C compiler found in $PATH】问题
前言: 编译文件 ntfs-3g_ntfsprogs-2021.8.22 时报缺少C编译器错误,所以需要安装gcc编译器.绿色字体标注即是错误提示. [root@localhost ntfs-3g_n ...
- 【转载】Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH
安装python的时候出现如下的错误: [root@master ~]#./configure --prefix=/usr/local/python3.6 checking build system ...
- configure: error: no acceptable C compiler found in $PATH
配置zabbix的时候报错configure: error: no acceptable C compiler found in $PATH 解决办法:安装GCC软件套件 [root@localhos ...
- 安装Python2.7出现configure: error: no acceptable C compiler found in $PATH错误
安装Python2.7出现configure: error: no acceptable C compiler found in $PATH错误 安装步骤: 安装依赖 yum groupinstall ...
- CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH
CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH 因为是centos linux,默认可以采用yum方 ...
- 关于configure: error: no acceptable C compiler found in $PATH
Linux系统在安装python3的时候报错: $ ./configure --prefix=/usr/local/python3 checking build system type... x86_ ...
- centos7:glibc:configure: error: no acceptable C compiler found in $PATH
升级glibc2.31出现的问题: configure: error: in `/root/glibc-2.31/build': configure: error: no acceptable C c ...
最新文章
- JavaWeb学习笔记(十)--HttpServletRequest
- 人体关键点颜色和预处理
- 一个网页菜单的CSS代码分析
- 版本控制工具 svn 一
- Android之drawlayout使用和总结
- 移位运算符 实现 二进制数的 高低位翻转(完整逻辑代码)
- mysql实现自动更新时间戳
- 德国计算机博士怎样,2020年德国IT博士offer什么时候发
- Linux perf 事件调度算法
- 本地已有项目上传到码云
- 第三部分 数据结构 -- 第四章 图论算法1374:铲雪车(snow)
- 一种更优雅的蓝牙配对技术 - Cross-transport key derivation (CTKD)
- Unity用代码设置图片的压缩格式(AssetImporter/TextureImporter)
- postman和newman
- python直联(适合于企业内部的内网邮箱)发送邮件(带附件)、发送给多人、抄送给多人的示例
- 21. OP-TEE中TA与CA执行流程-------libteec介绍
- 常垒·视频:股权投资的终极思维
- 2021-07-17【普及组】模拟赛C组
- php漏洞防范措施,php漏洞php后门浅析以及防范措施
- aarch64 poky linux,aarch64-poky-linux-gcc:error::没有这样的文件或目录