Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os_regex.h fatal error pcre2.h No such file or directory #1766

Closed
pabmuela opened this issue Aug 30, 2019 · 1 comment
Closed

os_regex.h fatal error pcre2.h No such file or directory #1766

pabmuela opened this issue Aug 30, 2019 · 1 comment

Comments

@pabmuela
Copy link

Hi,

I try to install ossec version 3.3.0 on a:

Red Hat Enterprise Linux Server version 7.6 (Maipo)
Architecture: ppc64le
Byte Order: Little Endian

and I get these error

##############################################################
5- Installing the system

  • Running the Makefile
    cc -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR="/var/ossec" -DUSER="ossec" -DREMUSER="ossecr" -DGROUPGLOBAL="ossec" -DMAILUSER="ossecm" -DLinux -DINOTIFY_ENABLED -DZLIB_SYSTEM -DUSE_PCRE2_JIT -DCLIENT -Wall -Wextra -I./ -I./headers/ -I./client-agent -DARGV0="ossec-agentd" -c client-agent/sendmsg.c -o client-agent/sendmsg.o
    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>
    ^
    compilation terminated.
    make: *** [client-agent/sendmsg.o] Error 1

Error 0x5.
Building error. Unable to finish the installation.

##############################################################

@ddpbsd
Copy link
Member

ddpbsd commented Aug 30, 2019

As detailed here you either need to unpack the pcre2 source into external/pcre2-10.32 or use PCRE2_SYSTEM=y and have the appropriate package installed.

@ddpbsd ddpbsd closed this as completed Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants