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

來源:互聯網
上載者:User

我用的是RHEL5.0,所以,安裝以下兩個包就行:

[root@localhost Server]# rpm -ivh libstdc++-devel-4.1.1-52.el5.i386.rpm

warning: libstdc++-devel-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:libstdc++-devel        ########################################### [100%]
[root@localhost Server]# rpm -ivh gcc-c++-4.1.1-52.el5.i386.rpm

warning: gcc-c++-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:gcc-c++                ########################################### [100%]
[root@localhost Server]#

下面是百度搜到文章:
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

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

according to some articles on web:

1.http://forum.ubuntu.org.cn/viewtopic.php?f=85&t=102970

出現該情況是由於c++編譯器的相關package沒有安裝,以超級使用者登陸,在終端上執行:

#yum install glibc-headers

#yum install gcc-c++

2.http://wiki.ubuntu.org.cn/index.php?title=EclipseSubversion&variant=zh-cn

To solve the error
de>C++ preprocessor "/lib/cpp" fails sanity checkde> while compiling Subversion, you need to download GCC, CPP and G++ by installing the following packages

gcc cpp g++

but that is for other Linux distribution system, my is
Ubuntu, so we should install the needed libs

sudo aptitude install build-essential

this will download and install the essential lib that is build related, such as gcc g++ ....

參考文章:http://www.cnblogs.com/jjyoung/archive/2011/05/19/2050619.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.