当我进行配置时,我得到了这个输出
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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... 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: C++ compiler cannot create executables
答案1
下面的命令应该可以帮到你。如果没有,请也发布你的输入和输出。
sudo apt-get install gcc*
答案2
至少,从源代码编译软件时,要build-essential
安装以下包:
sudo apt-get install build-essential
它将安装g++
、make
和 Debian 包开发工具。