咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

Linux系统安装./configure 配置文件时出错checking for g++... no

2016-12-15 10:53:22 403次

问题出现如图:

111111111111.png

问题出现在新安装的系统进行安装软件时候出现这个情况。

现在需要安装软件,安装软件时报错:

make: *** 没有指明目标并且找不到 makefile。 停止。

原因是因为没有执行./configure

接下来执行 ./configure 报错:

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 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
See `config.log' for more details.

原因是缺少c++编译器,也可以查看日志得到一些信息,安装c++编译器来解决问题

yum install gcc-c++ 

首页
最新活动
个人中心