Configure: Error: C ++ Preprocessor "/lib/CPP" fails sanity check

Source: Internet
Author: User

I use rhel5.0, so install the following two packages:

[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 ################################### ####### [1, 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 ++ ################################### ####### [1, 100%]
[Root @ localhost server] #

Below is What Baidu foundArticle:
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

This occurs because the package related to the C ++ compiler is not installed. Log On As a Super User and run the following command on the terminal:

# 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 shoshould 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 ++ ....

Reference: http://www.cnblogs.com/jjyoung/archive/2011/05/19/2050619.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.