参考:Getting Started — Hyperscan 5.4.0 documentationhttp://intel.github.io/hyperscan/dev-reference/getting_started.html
目录
1.下载
2.安装环境配置
2.1 硬件需求
2.2 软件需求
3.安装
3.1 创建构建目录
3.2 设置编译选项
3.3 构建hyperscan
4.安装完成测试
https://github.com/intel/hyperscan/releases
Supplemental Streaming SIMD Extensions 3 (SSSE3)
(1) 编译器要求 :
GCC, v4.8.1 or higher
gcc --version
yum install gcc
GCC mirror sites- GNU Projecthttps://gcc.gnu.org/mirrors.html
(2)系统要求:
Ubuntu 14.04 LTS or newer
RedHat/CentOS 7 or newer
(3)编译需要依赖
Dependency |
Version |
Notes |
---|---|---|
CMake |
>=2.8.11 |
|
Ragel |
6.9 |
|
Python |
2.7 |
|
Boost |
>=1.57 |
Boost headers required |
Pcap |
>=0.8 |
Optional: needed for example code only |
a. CMake
cmake -version
在线下载、升级CMake
yum install cmake
离线下载CMake
Download | CMakehttps://cmake.org/download/b. Ragel
ragel -v
下载地址:http://www.colm.net/files/ragel/ragel-6.10.tar.gzhttp://www.colm.net/files/ragel/ragel-6.10.tar.gzhttp://www.colm.net/files/ragel/ragel-6.10.tar.gz
解压后编译安装:
./configure && make && make install
c. Python
python -V
Download Python | Python.orgThe official home of the Python Programming Languagehttps://www.python.org/downloads/d. Boost
JFroghttps://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.tar.gz
将boost解压后的
ln -s boost_1_77_0/boost /include/boost
注意:链接的目录均需要绝对目录
e. Pcap
https://www.tcpdump.org/release/libpcap-1.10.1.tar.gzhttps://www.tcpdump.org/release/libpcap-1.10.1.tar.gz
./configure && make && make install
cd
mkdir
cd
cmake [-G ] [options]
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=on
Getting Started — Hyperscan 5.4.0 documentationhttp://intel.github.io/hyperscan/dev-reference/getting_started.html#cmake-configuration
Getting Started — Hyperscan 5.4.0 documentationhttp://intel.github.io/hyperscan/dev-reference/getting_started.html#build-type
cmake --build .
或者
make -j
make install
cd ./build/lib
bin/unit-hyperscan