ファイル改ざん検知させるために、Tripwireを導入していた際に、下記のエラーがでました。
1 2 |
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らしいです。
最新版を入れたい方は、こちらからどうぞ
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
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! |