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

标签 linux amazon-ec2 snort

我正在尝试在亚马逊虚拟机上安装 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,(amazon linux基于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

问题可能与符号链接(symbolic 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(扩展包)存储库。

关于linux - 在 Amazon Linux 依赖问题 (libpcre.so.1) 上安装 snort,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34687285/

相关文章:

regex - Snort 规则正则表达式匹配

networking - 运行Snort入侵检测系统时出错

linux - 将第一列与第二列进行比较,并在 shell 脚本的第二列中取出不是唯一的值

amazon-web-services - AWS EC2 IAM 角色访问在 S3 上被拒绝

linux - snort 和 snort_inline 之间的区别

amazon-web-services - 在 AWS 中是否有私有(private)弹性 IP 地址之类的东西?

java - 如何通过java sdk在ec2实例中第二次添加用户数据

linux - 找到匹配字符串的模式并将整个模式发送到输出

linux - 如何在 Linux 上用汇编在屏幕上显示图片?

c - Newt 中的按钮