Cloud Nine

Avatar

This blog is my everything!!

11/08
2009
configure: error: C++ preprocessor “/lib/cpp” fails sanity checkの対処法
11月 8, 2009 0

ファイル改ざん検知させるために、Tripwireを導入していた際に、下記のエラーがでました。

configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

対処方法


これはgcc-c++が入っていないとでるようなので、単純に下記のコマンドで解決できます。
yumで入れると、 gcc-c++-4.1.2-46ですが、最新版はgcc-c++-4.4.2-7らしいです。
最新版を入れたい方は、こちらからどうぞ

yum install gcc-c++
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.optus.net
 * base: mirror.optus.net
 * extras: mirror.optus.net
 * updates: mirror.optus.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.i386 0:4.1.2-46.el5_4.1 set to be updated
--> Processing Dependency: libstdc++-devel = 4.1.2-46.el5_4.1 for package: gcc-c++
--> Running transaction check
---> Package libstdc++-devel.i386 0:4.1.2-46.el5_4.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package                  Arch          Version                    Repository        Size
==========================================================================================
Installing:
 gcc-c++                  i386          4.1.2-46.el5_4.1           updates          3.4 M
Installing for dependencies:
 libstdc++-devel          i386          4.1.2-46.el5_4.1           updates          2.8 M

Transaction Summary
==========================================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 6.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): libstdc++-devel-4.1.2-46.el5_4.1.i386.rpm                   | 2.8 MB     00:03
(2/2): gcc-c++-4.1.2-46.el5_4.1.i386.rpm                           | 3.4 MB     00:03
------------------------------------------------------------------------------------------
Total                                                     936 kB/s | 6.2 MB     00:06
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : libstdc++-devel                                                    1/2
  Installing     : gcc-c++                                                            2/2

Installed:
  gcc-c++.i386 0:4.1.2-46.el5_4.1

Dependency Installed:
  libstdc++-devel.i386 0:4.1.2-46.el5_4.1

Complete!

Tags:

, ,

関連記事

気に入った方はbookmarkしてください。


最近読んだお勧めの書籍 2009/08/17更新

No Comments, Comment or Ping

Reply to “configure: error: C++ preprocessor “/lib/cpp” fails sanity checkの対処法”