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

时间:2016-01-08 22:38:25

标签: 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,(因为这是亚马逊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

问题可能与符号链接有关吗?

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

任何帮助都将非常感谢! :d

谢谢!

1 个答案:

答案 0 :(得分:2)

这最终修复了我的libdnet错误:

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

我还必须通过yum安装它们才能让Snort和DAQ正确配置和制作:

  • bison.x86_64
  • flex.x86_64
  • libpcap.x86_64
  • PCRE-devel.x86_64

这四个人不需要从yum获得EPEL(扩展包装)回购。