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

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

2014-03-04 11:27 477 查看
安装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.
使用本地终端安装时,可以成功安装
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息