安装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