首页 > 编程语言 > 详细

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

时间:2014-03-05 09:05:06      阅读:676      评论:0      收藏:0      [点我收藏+]

安装tomcat和apache过程中,编译时报错:
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... 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: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log‘ for more details.

缺少gcc-c++,安装gcc-c++,使用yum命令
yum install gcc-c++
远程安装,能查找到相应的安装包,却总是无法安装

Trying other mirror.


Error Downloading Packages:
  gcc-c++-4.4.7-4.el6.i686: failure: Packages/gcc-c++-4.4.7-4.el6.i686.rpm from base: [Errno 256] No more mirrors to try.
  libstdc++-devel-4.4.7-4.el6.i686: failure: Packages/libstdc++-devel-4.4.7-4.el6.i686.rpm from base: [Errno 256] No more mirrors to try.
  libstdc++-4.4.7-4.el6.i686: failure: Packages/libstdc++-4.4.7-4.el6.i686.rpm from base: [Errno 256] No more mirrors to try.
使用本地终端安装时,可以成功安装

 

configure: error: C++ preprocessor "/lib/cpp" fails sanity check,布布扣,bubuko.com

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

原文:http://85042188.blog.51cto.com/7194153/1367430

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!