# ./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. Servlet请求转发RequestDispatcher接口

    在Servlet中,利用RequestDispatcher对象,可以将请求转发给另外一个Servlet或JSP页面,甚至是HTML页面,来处理对请求的响应. 一,RequestDispatcher接口 ...

  2. php服务器环境变量

    可以把一些配置写到apache或nginx的配置里,然后在代码里判断环境变量来实现开发环境和线上环境的切换. 比如在本地可以 SetEnv APP_ENV local线上则 SetEnv APP_EN ...

  3. 广义线性模型 - Andrew Ng机器学习公开课笔记1.6

    在分类问题中我们如果: 他们都是广义线性模型中的一个样例,在理解广义线性模型之前须要先理解指数分布族. 指数分布族(The Exponential Family) 假设一个分布能够用例如以下公式表达, ...

  4. scala 测试类

    class NetworkUtilTest extends FunSuite with Matchers { test("testIp2Int") { val ip = Netwo ...

  5. [开机启动]Linux开机自启和运行级别

    嵌入式系统中程序自启动方法 在很多嵌入式系统中,由于可用资源较少,常常在系统启动后就直接让应用程序自动启动,以减少用户操作和节省资源.如何让自己的应用程序自动启动呢?    在Linux系统中,配置应 ...

  6. 工作中Hadoop,Spark,Phoenix,Impala 集群中遇到坑及解决方案

    1.HDFS 修复 问题描述:其他部门在yarn平台上跑spark 程序错误的生成了海量的不到100K的小文件,导致namenode压力过大,其中一个namenode宕机后,没有及时发现 使得edit ...

  7. 利用WordPress用户密码算法规则修改用户密码

    WordPress用户密码保存在wp_users数据表的user_pass字段,密码是通过Portable PHP password hashing framework类产生的, 密码的形式是随机且不 ...

  8. javascript 屏蔽F5,BackSpace等各种按键

    function DisableF5(){ with (event){ // F5 and Ctrl+R if (keyCode==116 || (ctrlKey && keyCode ...

  9. Spring Cloud是一系列框架的有序集合

    Spring Cloud是一系列框架的有序集合.它利用Spring Boot的开发便利性巧妙地简化了分布式系统基础设施的开发,如服务发现注册.配置中心.消息总线.负载均衡.断路器.数据监控等,都可以用 ...

  10. 将spark默认日志log4j替换为logback

    1.将jars文件夹下apache-log4j-extras-1.2.17.jar,commons-logging-1.1.3.jar, log4j-1.2.17.jar, slf4j-log4j12 ...