OpenBSD Installation from GIT¶
Tested on OpenBSD 6.6.
Before you can build Suricata for your system, run the following commands to ensure that you have everything you need for the installation.
pkg_add gcc pcre libtool libyaml libmagic git autoconf automake rust jansson python
pkg_add will ask you about what version of autoconf and automake to install. The highest versions work well.
pkg_add will ask about what python version to install: a python 3 version is recommended.
Next, clone the repository and run autogen:
git clone https://github.com/OISF/suricata cd suricata git clone https://github.com/OISF/libhtp.git export AUTOCONF_VERSION=2.69 export AUTOMAKE_VERSION=1.16 ./autogen.sh
Note that the autoconf and automake versions need to match the version installed with pkg_add above.
To build and install Suricata, enter the following in your command line:
CC=egcc ./configure make
Install as root or using sudo:
See https://suricata.readthedocs.io/en/latest/quickstart.html for further setup guidance.