Hey Andy, You need to either need to rerun the install.sh with "PCRE2_SYSTEM=yes ./install.sh" or you can edit the makefile in /src. Since the build is failing on that library already you probably just need to cd /src and "make clean" and then reattempt installation. You could also delete the directory you got after decompressing the tarball, decompress it again and then run the installer.
Hope this helps! On Mon, Apr 20, 2020 at 1:22 PM Andy <[email protected]> wrote: > Where do I add this variable? > > On Monday, April 20, 2020 at 2:19:21 PM UTC-4, Vicente Munoz wrote: >> >> If I’m not mistaken you have to add the following variable before being >> able to compile OSSEC in newer versions: >> >> >> >> PCRE2_SYSTEM=*yes* >> >> >> >> VR, >> >> *Vicente Muñoz (ACSE)* >> >> *From:* [email protected] <[email protected]> *On Behalf >> Of *Andy >> *Sent:* Monday, April 20, 2020 11:10 AM >> *To:* ossec-list <[email protected]> >> *Subject:* [EXTERNAL] [ossec-list] Unable to install OSSEC Agent >> >> >> >> I am unable to install the ossec agent on a centos 7 server. I get this >> error: >> >> In file included from ./headers/shared.h:215:0, >> >> from client-agent/sendmsg.c:10: >> >> ./os_regex/os_regex.h:19:19: fatal error: pcre2.h: No such file or >> directory >> >> #include <pcre2.h> >> >> >> After installing pcre-devel, it still fails with this error. >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ossec-list" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ossec-list/87a1b5ac-5b1d-476c-bda7-1c1dfc8cdae3%40googlegroups.com >> <https://groups.google.com/d/msgid/ossec-list/87a1b5ac-5b1d-476c-bda7-1c1dfc8cdae3%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > > --- > You received this message because you are subscribed to the Google Groups > "ossec-list" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ossec-list/c7fed188-a884-40cb-94be-59d01f2878df%40googlegroups.com > <https://groups.google.com/d/msgid/ossec-list/c7fed188-a884-40cb-94be-59d01f2878df%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ossec-list/CAPR9YNRGvi3fmW%2BTQ2FnUGr1mYMVBmYgw6EYD84mC0kN%2B%2B_xBw%40mail.gmail.com.
