Install problem

Support/Development for OSSEC
mega
Forum User
Forum User
Posts: 5
Joined: Tue Sep 21, 2021 11:30 pm

Install problem

Unread post 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.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Install problem

Unread post by scott »

That means you're missing the PCRE2 dependency, this part right here:

" fatal error: pcre2.h: no such file or directory"
mega
Forum User
Forum User
Posts: 5
Joined: Tue Sep 21, 2021 11:30 pm

Re: Install problem

Unread post by mega »

how do I add this?
User avatar
cponton
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 61
Joined: Fri Oct 09, 2020 9:41 am

Re: Install problem

Unread post 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
mega
Forum User
Forum User
Posts: 5
Joined: Tue Sep 21, 2021 11:30 pm

Re: Install problem

Unread post by mega »

Thank you very much
Post Reply