在 Amazon Linux 上安装 snort 依赖性问题 (libpcre.so.1)

Installing snort on Amazon Linux Dependancy Issue (libpcre.so.1)

我正在尝试在亚马逊虚拟机上安装 snort,但我 运行 遇到了依赖性问题。我真的很感激任何帮助! :D

以下操作系统信息:

# uname -a

Linux hostname 4.1.13-19.30.amzn1.x86_64 #1 SMP Fri Dec 11 03:42:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

我已经下载了snort rpm,(amazonlinux基于centos版本,我也直接用yum试过,我遇到了同样的问题)。以下证据:

# yum localinstall snort-2.9.8.0-1.centos7.x86_64.rpm
Loaded plugins: priorities, update-motd, upgrade-helper
Examining snort-2.9.8.0-1.centos7.x86_64.rpm: 1:snort-2.9.8.0-1.x86_64
Marking snort-2.9.8.0-1.centos7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package snort.x86_64 1:2.9.8.0-1 will be installed
--> Processing Dependency: libdnet.so.1()(64bit) for package: 1:snort-2.9.8.0-1.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1:snort-2.9.8.0-1.x86_64
--> Finished Dependency Resolution
Error: Package: 1:snort-2.9.8.0-1.x86_64 (/snort-2.9.8.0-1.centos7.x86_64)
       Requires: libdnet.so.1()(64bit)
Error: Package: 1:snort-2.9.8.0-1.x86_64 (/snort-2.9.8.0-1.centos7.x86_64)
       Requires: libpcre.so.1()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我检查了yum的依赖性,证据如下:

# yum provides libdnet
Loaded plugins: priorities, update-motd, upgrade-helper
libdnet-1.11-1.1.el3.rf.x86_64 : Simple portable interface to lowlevel networking routines
Repo        : installed

这个问题可能与符号 link 有关吗?

或者可能是操作系统不兼容的问题?

如有任何帮助,我们将不胜感激! :D

谢谢!

这终于为我修复了 libdnet 错误:

sudo yum install libdnet-devel.x86_64 --enablerepo=epel

我还必须通过 yum 安装这些以让 Snort 和 DAQ 正确配置和制作:

  • 野牛.x86_64
  • flex.x86_64
  • libpcap.x86_64
  • pcre-devel.x86_64

这四个不需要 yum 的 EPEL(扩展包)repo。