Unable to build tac_plus-ng with PCRE2
jakunow opened this issue · 3 comments
There is an error during make command complaining about pcre2.h file not found
root@kuba-VirtualBox:/home/kuba/event-driven-servers# git log -n 1 --oneline
f59679b (HEAD -> master, origin/master, origin/HEAD) PREREQUISITES.txt: update
root@kuba-VirtualBox:/home/kuba/event-driven-servers# ./configure --with-pcre2 tac_plus-ng
====================================================================================================================================================================================================
Development files were not found for: LIB-ARES, LIB-CRYPTO, LIB-CURL, LIB-FREERADIUS, LIB-PAM, LIB-SCTP, LIB-SSL, LIB-TLS, LIB-ZLIB
Development files were found for: LIB-CRYPT, LIB-PCRE2
The file
build/Makefile.inc.linux-5.19.0-50-generic-x86_64
was left unchanged. You may run "make" now. After that, you may wish to do a "make install". Alternatively, you'll find the compiled binaries (plus some ancillary scripts) in the
build/linux-5.19.0-50-generic-x86_64/fakeroot/
directory structure. It's probably advisable to have a look there in any case, as you may or may not like the particular file system layout, and this will give you a chance to see it before
installing.
Please direct support requests to the "Event-Driven Servers" Google Group at
event-driven-servers@googlegroups.com
https://groups.google.com/group/event-driven-servers
or file an issue at
https://github.com/MarcJHuber/event-driven-servers
Support requests sent to the author's private email address may be silently ignored.
====================================================================================================================================================================================================
root@kuba-VirtualBox:/home/kuba/event-driven-servers# make
make[1]: Entering directory '/home/kuba/event-driven-servers/mavis'
make[2]: Entering directory '/home/kuba/event-driven-servers/build/linux-5.19.0-50-generic-x86_64/mavis'
clang -Wall -W -Wno-strict-prototypes -Wno-implicit-fallthrough -O2 -DOSTYPE=linux -DOSLEVEL=0x05130000 -DOS="\"linux-5.19.0-50-generic-x86_64\"" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DWITH_PCRE2 -DPCRE2_CODE_UNIT_WIDTH=8 -DWITH_CRYPT -DWITH_EPOLL -DWITH_POLL -DWITH_SELECT -DWITH_IPC -I/home/kuba/event-driven-servers -I/usr/include -fPIC -DMAVIS_DIR="\"/usr/local/lib64/mavis\"" -c -o mavis_parse.o /home/kuba/event-driven-servers/mavis/mavis_parse.c
/home/kuba/event-driven-servers/mavis/mavis_parse.c:88:10: fatal error: 'pcre2.h' file not found
#include <pcre2.h>
^~~~~~~~~
1 error generated.
make[2]: *** [/home/kuba/event-driven-servers/Makefile.inc:49: mavis_parse.o] Error 1
make[2]: Leaving directory '/home/kuba/event-driven-servers/build/linux-5.19.0-50-generic-x86_64/mavis'
make[1]: *** [GNUmakefile:21: build] Error 2
make[1]: Leaving directory '/home/kuba/event-driven-servers/mavis'
make: *** [GNUmakefile:31: dirs] Error 1
Hi,
PCRE2 support is usually auto-detected (but comes close to mandatory anyway). Perhaps you configured "--with-pcre2", but don't have the PCRE2 development files installed.
Cheers,
Marc
I most probably don't have those. I wasn't aware this have to be installed separately.
What are the steps to do that? Can this be added to documentaion?
Hi,
installation depends on your Linux distribution. Ubuntu: "apt install libpcre2-dev". I don't remember what the install command is for other setups, but that should be trivial for you to find out, especially as the package name is likely similar.
The prerequisites are actually already documented in PREREQUISITES.txt.
Cheers,
Marc