Snort 基础11

2022-05-03 10:57:56 浏览数 (2)

安装报错三
代码语言: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 daq address space ID... no
checking for daq flow ID... no
checking for DAQ_VERDICT_RETRY... no
checking for sparc... no
checking for visibility support... yes
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no

   ERROR!  zlib header not found, go get it from
   http://www.zlib.net
[root@h101 snort-2.9.7.6]# 

报错原因是 zlib 的头文件缺失

解决办法是: 安装 zlib-devel.x86_64

代码语言:javascript复制
[root@h101 snort-2.9.7.6]# yum install  zlib.x86_64  zlib-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
Package zlib-1.2.3-29.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
 Package                          Arch                         Version                               Repository                  Size
======================================================================================================================================
Installing:
 zlib-devel                       x86_64                       1.2.3-29.el6                          base                        44 k

Transaction Summary
======================================================================================================================================
Install       1 Package(s)

Total download size: 44 k
Installed size: 115 k
Is this ok [y/N]: y
Downloading Packages:
zlib-devel-1.2.3-29.el6.x86_64.rpm                                                                             |  44 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : zlib-devel-1.2.3-29.el6.x86_64                                                                                     1/1 
  Verifying  : zlib-devel-1.2.3-29.el6.x86_64                                                                                     1/1 

Installed:
  zlib-devel.x86_64 0:1.2.3-29.el6                                                                                                    

Complete!
[root@h101 snort-2.9.7.6]# 

0 人点赞