[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ncurses 6.2 and "error: Cannot find PCRE2 library"
From: |
Jeffrey Walton |
Subject: |
Ncurses 6.2 and "error: Cannot find PCRE2 library" |
Date: |
Sun, 21 Jun 2020 17:30:47 -0400 |
Hi Everyone,
I'm configuring with --with-pcre2. PKG_CONFIG_PATH, PKG_CONFIG_LIBDIR
and --with-pkg-config-libdir are set. PCRE2 is in lib/, and its *.pc
files are in lib/pkgconfig.
$ ./configure
...
checking if you want to use PCRE2 for regular-expressions... yes
configure: error: Cannot find PCRE2 library
Failed to configure ncurses
$ ls ~/tmp/ok2delete/lib/*pcre*
/home/jwalton/tmp/ok2delete/lib/libpcre2-16.a
/home/jwalton/tmp/ok2delete/lib/libpcre2-16.la
/home/jwalton/tmp/ok2delete/lib/libpcre2-16.so
/home/jwalton/tmp/ok2delete/lib/libpcre2-16.so.0
/home/jwalton/tmp/ok2delete/lib/libpcre2-16.so.0.9.0
/home/jwalton/tmp/ok2delete/lib/libpcre2-32.a
/home/jwalton/tmp/ok2delete/lib/libpcre2-32.la
/home/jwalton/tmp/ok2delete/lib/libpcre2-32.so
/home/jwalton/tmp/ok2delete/lib/libpcre2-32.so.0
/home/jwalton/tmp/ok2delete/lib/libpcre2-32.so.0.9.0
/home/jwalton/tmp/ok2delete/lib/libpcre2-8.a
/home/jwalton/tmp/ok2delete/lib/libpcre2-8.la
/home/jwalton/tmp/ok2delete/lib/libpcre2-8.so
/home/jwalton/tmp/ok2delete/lib/libpcre2-8.so.0
/home/jwalton/tmp/ok2delete/lib/libpcre2-8.so.0.9.0
/home/jwalton/tmp/ok2delete/lib/libpcre2-posix.a
/home/jwalton/tmp/ok2delete/lib/libpcre2-posix.la
/home/jwalton/tmp/ok2delete/lib/libpcre2-posix.so
/home/jwalton/tmp/ok2delete/lib/libpcre2-posix.so.2
/home/jwalton/tmp/ok2delete/lib/libpcre2-posix.so.2.0.3
$ ls ~/tmp/ok2delete/lib/pkgconfig/*pcre*
/home/jwalton/tmp/ok2delete/lib/pkgconfig/libpcre2-16.pc
/home/jwalton/tmp/ok2delete/lib/pkgconfig/libpcre2-32.pc
/home/jwalton/tmp/ok2delete/lib/pkgconfig/libpcre2-8.pc
/home/jwalton/tmp/ok2delete/lib/pkgconfig/libpcre2-posix.pc
Here are the variables from the environment.
AUTOCONF_BUILD: x86_64-pc-linux-gnu
PKG_CONFIG_PATH: /home/jwalton/tmp/ok2delete/lib/pkgconfig
CPPFLAGS: -I/home/jwalton/tmp/ok2delete/include -DNDEBUG
CFLAGS: -g2 -O2 -march=native -fPIC -pthread
CXXFLAGS: -g2 -O2 -march=native -fPIC -pthread
LDFLAGS: -L/home/jwalton/tmp/ok2delete/lib
-Wl,-R,'$ORIGIN/../lib' -Wl,-R,/home/jwalton/tmp/ok2delete/lib
-Wl,--enable-new-dtags
LIBS: -ldl -lpthread
Any thoughts on how to work around the issue?
Thanks in advance.
config.log.zip
Description: Zip archive
- Ncurses 6.2 and "error: Cannot find PCRE2 library",
Jeffrey Walton <=