CentOSにtripwireをインストール際のC++エラー回避


Tripwireをインストールする際にエラーが、、、

configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
IT/WEB業界への転職なら求人サイトGreen


gcc-c++をインストールする事で解決しました。

[[email protected] ~]# yum -y install gcc-c++
Loaded plugins: downloadonly, fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: rsync.atworks.co.jp
* base: rsync.atworks.co.jp
* extras: rsync.atworks.co.jp
* rpmforge: ftp-stud.fht-esslingen.de
* updates: rsync.atworks.co.jp
rpmforge                                                           | 1.1 kB     00:00     
Excluding Packages in global exclude list
Finished
402 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.1.2-48.el5 set to be updated
--> Processing Dependency: libstdc++-devel = 4.1.2-48.el5 for package: gcc-c++
--> Running transaction check
---> Package libstdc++-devel.x86_64 0:4.1.2-48.el5 set to be updated
rpmforge/filelists                                                 | 2.9 MB     00:04     
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================
Package                   Arch             Version                  Repository      Size
==========================================================================================
Installing:
gcc-c++                   x86_64           4.1.2-48.el5             base           3.8 M
Installing for dependencies:
libstdc++-devel           x86_64           4.1.2-48.el5             base           2.8 M
Transaction Summary
==========================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)
Total download size: 6.6 M
Downloading Packages:
(1/2): libstdc++-devel-4.1.2-48.el5.x86_64.rpm                     | 2.8 MB     00:00     
(2/2): gcc-c++-4.1.2-48.el5.x86_64.rpm                             | 3.8 MB     00:00     
------------------------------------------------------------------------------------------
Total                                                     190 kB/s | 6.6 MB     00:35     
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++.x86_64 0:4.1.2-48.el5                                                           
Dependency Installed:
libstdc++-devel.x86_64 0:4.1.2-48.el5                                                   
Complete!
[[email protected] ~]# 

こちらの記事を参考にさせて頂きました!サンクスです!
[Linux]confgureでC++ preprocessor “/lib/cpp” fails sanity check

 

この記事が気に入ったら
いいね!しよう

最新情報をお届けします

follow us in feedly