configure: error: C++ preprocessor "/lib/cpp" fails sanity check
參考鏈接:
error: C++ preprocessor "/lib/cpp" fails sanity check錯誤解決方法
一:錯誤發生情景:
安裝gcc時,使用make命令時,報如下錯誤:
... configure: error: C++ preprocessor "/lib/cpp" fails sanity check ....
二、錯誤原因:
缺少必要的C++庫。
三、解決:
(1) CentOS系統,運行命令:
yum install glibc-headers
yum install gcc-c++
(2) Ubuntu系統中,運行命令:
apt-get install build-essential
apt-get install g++