git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git and PCRE2 vs PCRE?

From
JWJeffrey Walton <noloader@gmail.com>
Date
Mar 30, 2017, 20:59 UTC
Message-ID
<CAH8yC8kOeuVjvoeg0WsSfDeakJh_es2xhYK_O_bM87DEBVcB1w@mail.gmail.com>
Some more 2.12.2 testing on Solaris 11.3 x86_64:
    ...
    CC ident.o
    CC kwset.o
    CC line-log.o
    CC levenshtein.o
    CC line-range.o
    CC list-objects.o
In file included from revision.h:5:0,
                 from line-log.c:10:
grep.h:5:18: fatal error: pcre.h: No such file or directory
 #include <pcre.h>
                  ^
compilation terminated.
gmake: *** [line-log.o] Error 1

Configure has an option for libpcre, but its not clear to me how to fine tune it for libpcre2:

$ ./configure --help | /usr/gnu/bin/grep -A 2 -i pcre
  --with-libpcre          support Perl-compatible regexes (default is NO)
                          ARG can be also prefix for libpcre library and
                          headers
Is it possible to use PCRE2 with Git? If so, how do I tell Git to use PCRE2?
Thanks in advance.
**********

$ ls /usr/local/include/pcre* /usr/local/include/pcre2.h /usr/local/include/pcre2posix.h

$ ls /usr/local/lib64/libpcre* /usr/local/lib64/libpcre2-16.a /usr/local/lib64/libpcre2-16.la /usr/local/lib64/libpcre2-16.so /usr/local/lib64/libpcre2-16.so.0 /usr/local/lib64/libpcre2-16.so.0.5.0 /usr/local/lib64/libpcre2-32.a /usr/local/lib64/libpcre2-32.la /usr/local/lib64/libpcre2-32.so /usr/local/lib64/libpcre2-32.so.0 /usr/local/lib64/libpcre2-32.so.0.5.0 /usr/local/lib64/libpcre2-8.a /usr/local/lib64/libpcre2-8.la /usr/local/lib64/libpcre2-8.so /usr/local/lib64/libpcre2-8.so.0 /usr/local/lib64/libpcre2-8.so.0.5.0 /usr/local/lib64/libpcre2-posix.a /usr/local/lib64/libpcre2-posix.la /usr/local/lib64/libpcre2-posix.so /usr/local/lib64/libpcre2-posix.so.1 /usr/local/lib64/libpcre2-posix.so.1.0.1

Next: Jeff King
Message 1 of 4 in “Git and PCRE2 vs PCRE?”
  1. Jeffrey WaltonMar 30, 2017
  2. Jeff KingMar 30, 2017
  3. Junio C HamanoMar 30, 2017
  4. Jeffrey WaltonMar 30, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.