Suricata Installation Walkthrough

Hello,

I am trying to install Suricata on Linux Mint with the following but I am getting errors when trying to complete the installation

I have UFW and SSHGuard Installed and many ports blocked.

I got to the point of downloading and extracting as this

wget https://www.openinfosecfoundation.org/download/suricata-6.0.6.tar.gz

I am getting errors when trying to access the config file

$ sudo tar -xvf suricata-6.0.6.tar.gz
$ cd suricata-6.0.6
$ ./configure --enable-nfqueue --prefix=/usr --sysconfdir=/etc --localstatedir=/var
$ make
$ make install-full

~/suricata-6.0.6$ ./configure --enable-nfqueue --prefix=/usr --sysconfdir=/etc --localstatedir=/var
./configure: line 2618: config.log: Permission denied
./configure: line 2628: config.log: Permission denied

make: *** No targets specified and no makefile found. Stop.

make install-full

$ sudo systemctl status suricata

× suricata.service - Suricata IDS/IDP daemon
Loaded: loaded (/lib/systemd/system/suricata.service; enabled; vendor pres>
Active: failed (Result: exit-code) since Thu 2023-04-13 20:29:46 PDT; 23mi>
Docs: man:suricata(8)
man:suricatasc(8)
https://suricata-ids.org/docs/
Process: 11954 ExecStart=/usr/bin/suricata -D --af-packet -c /etc/suricata/>
Main PID: 11959 (code=exited, status=1/FAILURE)
CPU: 260ms

Apr 13 20:29:46 ghost systemd[1]: suricata.service: Scheduled restart job, rest>
Apr 13 20:29:46 ghost systemd[1]: Stopped Suricata IDS/IDP daemon.
Apr 13 20:29:46 ghost systemd[1]: suricata.service: Start request repeated too >
Apr 13 20:29:46 ghost systemd[1]: suricata.service: Failed with result 'exit-co>
Apr 13 20:29:46 ghost systemd[1]: Failed to start Suricata IDS/IDP daemon.

Building suricata requires write access to the directory containing the source tree.