flier/gohs go hyperscan 编译报错

go build main.go
# pkg-config --cflags  -- libhs
Package libhs was not found in the pkg-config search path.
Perhaps you should add the directory containing `libhs.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libhs' found
pkg-config: exit status 1
 

需要hyperscan动态库, 我使用源码安装。

git clone https://github.com/intel/hyperscan.git
cd hyperscan/
mkdir build
 cd build/
cmake ..
make
sudo make install

然后go build即可

你可能感兴趣的:(安全,算法,golang)