集成RE开源库Oniguruma

安装

git clone https://github.com/kkos/oniguruma
cd oniguruma
autoreconf -vfi (* case: configure script is not found.)
./configure
# 对于没有sudo权限或者想自己指定按照路径
./configure --prefix /install/to/path
make
make isntall

环境

# 直接命令行输入,当然也可以考虑写入~/.bashrc
export LD_LIBRARY_PATH=/install/to/path/lib:$LD_LIBRARY_PATH

测试

cd sample
gcc simple.c -L/install/to/path/lib -I//install/to/path/include -lonig -o test
./test

更多参见link

你可能感兴趣的:(ruby,Logstash,re)