编译gcc报错error: C++ preprocessor "/lib/cpp" fails sanity check的解决办法

报错信息如下

configure: error: in `/root/gcc-6.4.0/host-x86_64-pc-linux-gnu/gcc':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

解决办法

yum install glibc-headers gcc-c++ -y

发表评论

后才能评论