早教吧 育儿知识 作业答案 考试题库 百科 知识分享

在redhat6.0在安装ext3grep的时候,在./configure的时候出现了好多的错误.[root@localhostext3grep-0.10.2]#./configurecheckingforaBSD-compatibleinstall.../usr/bin/install-ccheckingwhetherbuildenvironmentissane...yescheckingf

题目详情
在redhat 6.0在安装ext3grep的时候,在./configure的时候出现了好多的错误.
[root@localhost ext3grep-0.10.2]# ./configure
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...gawk
checking whether make sets $(MAKE)...yes
checking whether to enable maintainer-specific portions of Makefiles...no
checking for gcc...gcc
checking whether the C compiler works...yes
checking for C compiler default output file name...a.out
checking for suffix of executables...
checking whether we are cross compiling...no
checking for suffix of object files...o
checking whether we are using the GNU C compiler...yes
checking whether gcc accepts -g...yes
checking for gcc option to accept ISO C89...none needed
checking for style of include used by make...GNU
checking dependency style of gcc...pch
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 we are using the GNU C++ compiler...no
checking whether g++ accepts -g...no
checking dependency style of g++...none
checking how to run the C++ preprocessor.../lib/cpp
configure:error:in `/usr/software/ext3grep-0.10.2':
configure:error:C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
[root@localhost ext3grep-0.10.2]#
▼优质解答
答案和解析
出现该情况是由于c++编译器的相关package没有安装,以root用户登陆,在终端上执行:
# yum install glibc-headers
# yum install gcc-c++
rpm安装也可以
cd /media/cdrom/package #安装盘里软件包路径
rpm -ivh glibc-headers
rpm -ivh gcc-c++