Page 1 of 1

Install problem

Posted: Tue Sep 21, 2021 11:46 pm
by mega
Hello all
I am trying to install ossec agent to my Kali machine but it says every time that the install has failed, it would be great if you could help me thank you very much
This is the error message:


in file included from ./headers/shared.h:215
from client-agent/agentd.c:10:
./os_regex/os_regex.h:19:10: fatal error: pcre2.h: no such file or directory
19 | #include <pcre2.h>
compilation terminated
make: *** [makefile:1014 client-agent/agentd.o] error 1
Error 0*5.
Building error. unable to finish the installation.

Re: Install problem

Posted: Wed Sep 22, 2021 10:14 am
by scott
That means you're missing the PCRE2 dependency, this part right here:

" fatal error: pcre2.h: no such file or directory"

Re: Install problem

Posted: Tue Sep 28, 2021 9:08 am
by mega
how do I add this?

Re: Install problem

Posted: Tue Sep 28, 2021 9:16 am
by cponton
Extract pcre2-10.32.tar.gz to src/external.

Get it here: https://ftp.pcre.org/pub/pcre/pcre2-10.32.tar.gz

Re: Install problem

Posted: Wed Sep 29, 2021 4:09 am
by mega
Thank you very much