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