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


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++


 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM