安装报错二
代码语言:javascript复制[root@h101 snort-2.9.7.6]# ./configure --enable-sourcefire
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
...
...
checking for SHA256_Init in -lcrypto... no
checking for MD5_Init in -lcrypto... no
checking dnet.h usability... no
checking dnet.h presence... no
checking for dnet.h... no
checking dumbnet.h usability... no
checking dumbnet.h presence... no
checking for dumbnet.h... no
ERROR! dnet header not found, go get it from
http://code.google.com/p/libdnet/ or use the --with-dnet-*
options, if you have it installed in an unusual place
[root@h101 snort-2.9.7.6]#
报错是因为 libdnet 头文件缺失
解决办法:安装 libdnet.x86_64 和 libdnet-devel.x86_64
代码语言:javascript复制[root@h101 snort-2.9.7.6]# yum install libdnet.x86_64 libdnet-devel.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* epel: mirrors.opencas.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package libdnet.x86_64 0:1.12-6.el6 will be installed
---> Package libdnet-devel.x86_64 0:1.12-6.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
libdnet x86_64 1.12-6.el6 epel 28 k
libdnet-devel x86_64 1.12-6.el6 epel 28 k
Transaction Summary
======================================================================================================================================
Install 2 Package(s)
Total download size: 56 k
Installed size: 125 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): libdnet-1.12-6.el6.x86_64.rpm | 28 kB 00:00
(2/2): libdnet-devel-1.12-6.el6.x86_64.rpm | 28 kB 00:00
--------------------------------------------------------------------------------------------------------------------------------------
Total 140 kB/s | 56 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libdnet-1.12-6.el6.x86_64 1/2
Installing : libdnet-devel-1.12-6.el6.x86_64 2/2
Verifying : libdnet-1.12-6.el6.x86_64 1/2
Verifying : libdnet-devel-1.12-6.el6.x86_64 2/2
Installed:
libdnet.x86_64 0:1.12-6.el6 libdnet-devel.x86_64 0:1.12-6.el6
Complete!
[root@h101 snort-2.9.7.6]#