You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.05 12:21:02