Skip to content

Building Sagan on CentOS7

commandline_be edited this page Dec 14, 2017 · 9 revisions

First let's get some libraries ready

check what's on your system already (optional)
yum list libestr-devel libee-devel liblognorm-devel libdnet-devel libmaxminddb-devel
install a list of dependencies included with CentOS7 (maxmind geoip included)
yum install libestr-devel libee-devel liblognorm-devel libdnet-devel libmaxminddb-devel
change directory to your favorite directory for building software and clone the stable Sagan

For the latest stable version

git clone https://github.com/beave/sagan -b 1.1.0

For the current most recent version (1.1.8)

git clone -o d10a92c9d0a6ec39f26c149179ce0494a4ceba96 https://github.com/beave/sagan.git

Do note this version switches to sagan.yaml and also changes directory layout

Time to compile

Do note this is not optimized in any way, performance may be much lower than possible with optimizations.    
generate the compilation script
sh autogen.sh
compile for geoip and sagan bluedot
./configure --enable-geoip2 --enable-bluedot
install sagan into /usr/local/bin
make install

uninstall ?

make uninstall
Clone this wiki locally