Hyperscan 安装
源码下载
Ragel :http://www.colm.net/files/ragel/ragel-6.9.tar.gz
boost :http://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.gz
hyperscan : https://download.csdn.net/download/u014608280/12745509
第3方依赖库¶
依赖项 | 版本 | 说明 |
---|---|---|
CMake | >=2.8.11 | |
Ragel | 6.9 | |
Python | 2.7 | |
Boost | >=1.57 | 仅需要头文件,无需编译 |
Pcap | >=0.8 | Optional: 仅用于示例程序 |
SQLite | ? | Optional: 用于编译hsbench |
g++、gcc | >v4.8.1 |
一、Ragel 安装
1、tar -xvf ragel-6.10.tar.gz
2、cd ragel-6.10
3、./configure
4、 make -j
5、 make install
二、boost
boost不需要编译安装 ,如果通过系统包管理工具(yum/apt-get)安装的 版本无法满足版本需要,
解压后执行类似 ln -s /home/boost_1_59_0/boost hyperscan-4.6.0/include/boost-patched
的命令创建符号链接,注意boost路径需要是绝对路径,否则可能找不到。或者使用下文描述的BOOST_ROOT选项.(个人尝试ln方法不行, BOOST_ROOT 方法可以)
三、hyperscan 安装
在 hyperscan 源码的平级目录
1、mkdir hs_build
2、cd hs_build
3、cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=on -DDEBUG_OUTPUT=on -DBOOST_ROOT=/home/boost_1_59_0 ../hyperscan
4、make- j
5、make install
6、cmake –build .
其中 BOOST_ROOT 是指定boost路径,DDEBUG_OUTPUT 是hyperscan的调试信息 on是打开,会有很多信息输出。
参数 | 描述 |
---|---|
CMAKE_C_COMPILER | C compiler to use. Default is /usr/bin/cc. |
CMAKE_CXX_COMPILER | C++ compiler to use. Default is /usr/bin/c++. |
CMAKE_INSTALL_PREFIX | Install directory for install target |
CMAKE_BUILD_TYPE | Define which kind of build to generate. Valid options are Debug, Release, RelWithDebInfo, and MinSizeRel. Default is RelWithDebInfo. |
BUILD_SHARED_LIBS | Build Hyperscan as a shared library instead of the default static library. |
BUILD_STATIC_AND_SHARED | Build both static and shared Hyperscan libs. Default off. |
BOOST_ROOT | Location of Boost source tree. |
DEBUG_OUTPUT | Enable very verbose debug output. Default off. |
FAT_RUNTIME | Build the fat runtime. Default true on Linux, not available elsewhere. |
OPTIMISE | Turns off compiler optimizations(默认TRUE) |
我的编译过程
如果遇到如下错误说明g++版本太低,需要升级
查看g++动态库
升级参考这个文章https://blog.csdn.net/u014608280/article/details/80569328
编译example程序
gcc -o simplegrep simplegrep.c -lhs -lstdc++ -lm
对比结果
Hyperscan 安装相关推荐
- suricata mysql_Suricata启用Hyperscan支持以及Prelude-siem安装方法.md
# Suricata启用Hyperscan支持以及Prelude-siem安装方法 ## 0x01 安装 Hyperscan ### 1.Hyperscan 安装要求: * GCC 版本大于等于 4. ...
- hyperscan在IPS/IDS产品中的应用
hypercan简介 Hyperscan 5.4 Developer's Reference Guide - Hyperscan 5.4.0 documentation hyperscan是基于int ...
- Centos 8 stream安装snort3(2023年2月3日更新部分问题)
一.snort介绍 Snort是一个强大的轻量级的入侵检测系统,它具有实时数据流量分析和捕获IP网络数据包的能力,能够进行协议分析,对内容进行搜索匹配:它能够检测各种不同的攻击方式,对攻击对象进行实时 ...
- 如何在windows下成功的编译和安装python组件hyperscan
本文分享自华为云社区<Windows下python组件hyperscan的编译与安装>,作者:安全技术猿. 什么是Hyperscan: hyperscan 是英特尔推出的一款高性能正则表达 ...
- centos 8 编译安装hyperscan
一.编译安装环境配置 官方文档: http://intel.github.io/hyperscan/dev-reference/getting_started.html 1.1硬件配置 配置 参数 C ...
- Hyperscan-5.1.0 安装
安装依赖ragel ragel源码下载地址 编译安装 $ tar -xvf ragel-6.10.tar.gz $ cd ragel-6.10 $ ./configure $ make $ sudo ...
- Centos7 安装Vpp 及一些学习资料。
首先VMware虚拟机按照Centos7以上版本,以下是遇到的一些问题和安装桌面版本. 1.从centos官网下载DVD安装包 https://www.centos.org/download/ 2.虚 ...
- mac下安装python3
mac下安装python3 1.先用brew search命令查看 brew search python3 结果如下所示: ==> Formulae boost-python3 python3 ...
- GIT - 安装、设置和帮助
一. 安装 使用brew安装GIT MacBook-Pro:~ $ brew install git Updating Homebrew... ==> Auto-updated Homebrew ...
最新文章
- 浅谈Java网络编程之Socket (2)
- ethz研究生申请官网
- .Net 反射机制写Log
- GDCM:gdcm::PDFCodec的测试程序
- 机器学习部分国内牛人
- xen虚拟机管理工具xm与virsh用法
- 查询显示注释_SQL汇总--简单查询
- 什么叫组网_家庭wifi,如何组网最合适
- java vert.x_使用Vert.x将JavaScript引入Java企业
- 安卓眼球追踪_研究者开发AI眼球追踪系统 智能手机都能用
- Java从入门到高级(第三天)
- G.1用python进行精细中文分句(基于正则表达式),HarvestText:文本挖掘和预处理工具
- xml和map相互转化
- 今天我被微软狠狠地雷翻了
- 同花顺_代码解析_技术指标_Z_2
- 安装pandas-profiling错误:Could not build wheels for _ which use PEP 517 and cannot be installed directly
- 【每周一库】- teloxide (电报群机器人)
- VUE构建工具-姜威-专题视频课程
- 6.Jenkins-代码更新Jenkins自动发布项目
- Android 玩机之路(刷第三方recovery twrp+面具Magisk)