解决“configure: line 2747: -g: command not found”

下面这个错误是因为没有安装g++

$ ./configure --prefix=/data1/mooon/run

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... no

checking for mawk... mawk

checking whether make sets $(MAKE)... yes

./configure: line 2747: -g: command not found

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 whether the C++ compiler works... no

configure: error: in `/data1/mooon/src/common_library/src':

configure: error: C++ compiler cannot create executables

See `config.log' for more details

执行“$ sudo apt-get install g++”成功安装后,问题即可解决

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

扫码关注云+社区

领取腾讯云代金券