在CentOS 6.10从源码构建Yate时configure阶段报错求助
解决configure阶段C++编译器缺失的问题
构建计划
./autogen.sh ./configure make sudo make install-noapi
已完成的前置操作
为确保./autogen.sh正常运行,已执行:
yum install autoconf
出现的错误
执行sudo ./configure时触发以下报错:
sudo ./configure checking for local operating system type... Linux checking for libraries directory name... lib64 checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl.exe... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking for C++ compiler default output file name... configure: error: in `/root/yate': configure: error: C++ compiler cannot create executables
修复方案
报错核心原因是系统未安装C编译工具链,configure无法找到可用的C编译器。在CentOS/RHEL类系统上,执行以下命令安装依赖:
sudo yum install gcc-c++
安装完成后重新运行sudo ./configure即可继续构建流程。
内容的提问来源于stack exchange,提问作者Eljah
相关产品推荐
相关产品推荐

