# ./configure

遇到ERROR:

checking for pfring_open in -lpcap... no

ERROR!  Libpcap library/headers (libpcap.a (or .so)/pcap.h)

not found, go get it from http://www.tcpdump.org

or use the --with-libpcap-* options, if you have it installed

in unusual place.  Also check if your libpcap depends on another

shared library that may be installed in an unusual place

在/usr/lib下找到了libpcap.so.1.1.1,于是输入:

# sudo ln -s /usr/lib/libpcap.so.1.1.1 /usr/lib/libpcap.so

再次 ./configure,遇到ERROR:

checking for pcre.h... no

ERROR!  Libpcre header not found.

Get it from http://www.pcre.org

在新立得找到libpcre3-dev安装之。再次 ./configure,新的ERROR:

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

在新立得安装libdumbnet-dev,继续./configure,new ERROR:

./configure: line 15155: daq-modules-config: command not found

checking for daq_load_modules in -ldaq_static... no

ERROR!  daq_static library not found, go get it from

http://www.snort.org/.

从官网下载 daq-1.1.1.tar.gz,并安装,又新错误:

checking for capable lex... insufficient

configure: error: Your operating system's lex is insufficient to compile

libsfbpf. You should install both bison and flex.

flex is a lex replacement that has many advantages,

including being able to compile libsfbpf.  For more

information, see http://www.gnu.org/software/flex/flex.html .

# sudo apt-get install flex

    # sudo apt-get install bison

 

新错误:

checking for libpcap version >= "1.0.0"... no

ERROR!  Libpcap library version >= 1.0.0  not found.

Get it from http://www.tcpdump.org

发现貌似是libpcap版本太低,从新立得安装libpcap-dev

终于顺利通过check,

然后 # make

            # sudo make install

daq安装完成,继续安装snort。

# cd snort-2.9.3.1

    # ./configure           没问题了

# make

    # sudo make install

搞定。

最后装好运行又有个错误。。

#snort -v

snort: error while loading shared libraries: libsfbpf.so.0: cannot open shared object file: No such file or directory

原来是装在/usr/local/lib了。做一个链接:

#sudo ln -s /usr/local/lib/libsfbpf.so.0.0.1 /usr/lib/libsfbpf.so.0

SNORT--install ---dependency-resolve的更多相关文章

  1. fedora18 You might need to install dependency packages for libxcb.

    22 down vote The page Qt for X11 Requirements lists some packages required to build Qt on Debian. Th ...

  2. install chrome in elementary os

    Elementary OS Freya 0.3.2 was officially out for public. As previous release, it comes pre-installed ...

  3. ubuntu18.04 install pip

    1. environment release version: bionic kernel version:4.15.0-29-generic 2.install pip 2.1 sudo apt-g ...

  4. maven-jar-plugin 使用maven生成可执行的jar包install a test-jar in maven

    <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> ...

  5. Install Teamviewer on 14.04? [repost]

    Ref: http://askubuntu.com/questions/453157/how-to-install-teamviewer-on-14-04 TeamViewer 是一款优秀的跨平台免费 ...

  6. maven: 基本使用

    1.项目管理工具:Maven的repository,说白了就是dependency的仓库,它按照一定的规则将dependency存放起来,以作缓存,如果本机的 repository找不到某个depen ...

  7. Storm 单机版环境搭建

    1 需要安装的软件 要使用storm首先要安装以下工具:python.zookeeper.zeromq.jzmq.storm 1.1 安装zeromq wget http://download.zer ...

  8. 命令大全/cmd/bash

    端口占用及强杀 cmd命令 netstat -aon|findstr "8080" #查看占用pid tasklist|findstr "2448" #查看被哪 ...

  9. 转:Maven常用命令

    转:Maven常用命令 Maven库: http://repo2.maven.org/maven2/ Maven依赖查询: http://mvnrepository.com/ Maven常用命令: 1 ...

  10. [Maven]初次实践

    都说Maven好,以前一直用ant,这次体验一下. 开始之前,maven给我的印象有2个,一是库依赖管理做得比较好,二是规范了构建编译过程,说白了就是什么目录都规定好了. 好开始安装,解压缩,设置m2 ...

随机推荐

  1. 转:Andriod studio技巧合集

    1. 书签(Bookmarks) 描述:这是一个很有用的功能,让你可以在某处做个标记(书签),方便后面再跳转到此处. 调用:Menu → Navigate → Bookmarks 快捷键: 添加/移除 ...

  2. php常用的正则表达式

    1. 平时做网站经常要用正则表达式,下面是一些讲解和例子,仅供大家参考和修改使用:2. "^\d+$" //非负整数(正整数 + 0)3. "^[0-9]*[1-9][0 ...

  3. docker Failed to get D-Bus connection 报错 docker run -e MYVAR1 --env MYVAR2=foo --env-file ./env.list ubuntu bash

    docker Failed to get D-Bus connection 报错 原创憬薇2016-01-15 11:25:26评论(10)40278人阅读   在centos7的容器里面出现了一个B ...

  4. HeadFisrt 设计模式03 装饰者

    类应该对扩展开放, 对修改关闭. 所谓装饰者模式, 是指用其他的类来装饰某个类, 装饰者说白了就是使用 has-a 来代替 is-a 隐喻 咖啡店, 有很多种咖啡, 咖啡里还要增加一些 milk, 面 ...

  5. 004Maven_Pom.xml文档的介绍

    很重要的一个文档,具体介绍如下:

  6. imx6 android SD卡启动

    工作中需要将imx6的android系统从SD卡启动,所以就分析了MfgTool中的脚本,分析android的分区情况,并尝试自己操作,竟然成功了,记录于此. 参考文档 http://www.kanc ...

  7. 5.3 SpEL语法

    SqEL是一个可以独立于spring的表达式语言,即它可以用在XML中对语法进行简化 5.3 SpEL语法5.3.1 基本表达式一.字面量表达式: SpEL支持的字面量包括:字符串.数字类型(int. ...

  8. 用ssh和互信链接建立批量执行

    main server: 192.168.100.101 sub sever1: 192.168.100.102 sub server2: 192.168.100.103 main server执行脚 ...

  9. Autofac IoC容器基本实战【2】

    原文:http://www.cnblogs.com/liping13599168/archive/2011/07/16/2108209.html Autofac是一款IOC框架,比较于其他的IOC框架 ...

  10. jdk 配置时时区设置

    在eclipse中的 Default VM Arguments:添加 -Duser.timezone=Aisa/Shanghai