ref: http://01org.github.io/hyperscan/dev-reference/getting_started.htmlhtml
intel x86处理器 64-bit或32-bit模式c++
Linux:
Ubuntu 14.04 LTS or newer
RedHat/CentOS 7 or newer
FreeBSD:
10.0 or newer
Mac OS X:
10.8 or newer, using XCode/Clanggit
对Windows的支持正在试验中...github
hyperscan使用C++开发,且须要C99和C++11支持,目前支持的编译器有工具
依赖项 版本 说明 ------------------------------------------------- CMake >=2.8.11 Ragel 6.9 Python 2.7 Boost >=1.57 仅须要头文件,无需编译 Pcap >=0.8 Optional: 仅用于示例程序
注1:boost不须要编译安装,若是经过系统包管理工具(yum/apt-get)安装的
版本没法知足版本须要,则须要下载源码包,解压后执行相似flex
ln -s /home/zzq/boost_1_59_0/boost hyperscan-4.0.0/include/boost
的命令建立符号连接,注意boost路径须要是绝对路径,不然可能找不到。ui
注2:pcap库会依赖flex和bisonspa
假设在用户根目录下的hs_build下面编译hyperscan,源码在~/hyperscan-4.0.0操作系统
cd ~ mkdir hs_build cd hs_build cmake ../hyperscan-4.0.0 cmake --build . (别忘了最后有个点)
以后开始编译,成功后hs_build目录将包含编译好的hyperscan。
切换到root,运行make install可在/usr/local/下面安装相关头文件和库。
debug
hyperscan还经过cmake支持一些编译选项,如debug/release, static/shared等,如
等。