您的位置:首页 > 编程语言 > C语言/C++

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

2011-10-29 01:41 393 查看
我用的是RHEL5.0,所以,安装以下两个包就行:

[root@localhost Server]# rpm -ivh libstdc++-devel-4.1.1-52.el5.i386.rpm


warning: libstdc++-devel-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing... ########################################### [100%]

1:libstdc++-devel ########################################### [100%]

[root@localhost Server]# rpm -ivh gcc-c++-4.1.1-52.el5.i386.rpm

warning: gcc-c++-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing... ########################################### [100%]

1:gcc-c++ ########################################### [100%]

[root@localhost Server]#

下面是百度搜到文章:

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

configure: error: C++ preprocessor "/lib/cpp" fails sanity check
according to some articles on web:
1.http://forum.ubuntu.org.cn/viewtopic.php?f=85&t=102970
出现该情况是由于c++编译器的相关package没有安装,以超级用户登陆,在终端上执行:

#yum install glibc-headers

#yum install gcc-c++
2.http://wiki.ubuntu.org.cn/index.php?title=EclipseSubversion&variant=zh-cn
To solve the error
de>C++ preprocessor "/lib/cpp" fails sanity checkde> while compiling Subversion, you need to download GCC, CPP and G++ by installing the following packages

gcc cpp g++
but that is for other Linux distribution system, my is
Ubuntu, so we should install the needed libs
sudo aptitude install build-essential
this will download and install the essential lib that is build related, such as gcc g++ ....

参考文章:http://www.cnblogs.com/jjyoung/archive/2011/05/19/2050619.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: