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

安裝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.
使用本地終端安裝時,可以成功安裝

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章