configure: error: C++ preprocessor "/lib/cpp" fails sanity check
来源:互联网 发布:洗浴软件多少钱 编辑:程序博客网 时间:2024/04/28 13:22
我用的是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
gcc cpp g++
but that is for other Linux distribution system, my isUbuntu, 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
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check-centos5安装mysql报错!
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check错误解决方法
- 20140721(解决configure: error: C++ preprocessor "/lib/cpp" fails sanity check)
- error: C++ preprocessor "/lib/cpp" fails sanity check错误解决方法
- error: C++ preprocessor "/lib/cpp" fails sanity check
- SSH框架总结(框架分析+环境搭建+实例源码下载)
- StringBuilder和StringBuffer区别
- 君临天下,无所畏惧:博客开始篇
- jsf web.xml配置解析
- Mysql数据类型
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- 形态学图像处理—开运算、闭运算、形态学梯度、顶帽、黑帽
- 互连世界的神经中心-智能手机
- UDP计算校验和
- 单词在有且仅有一个字符不相同的情况下是否可以在字典里找到 hash codeforces div2 c Watto and Mechanism
- Unity - 优化(二)
- 可切换搜索引擎的导航网页搜索框,可以换百度、谷歌、搜狗不同的搜索方式
- 解决端口被占用问题
- SVN 更新后Tomcat 启动时出现问题