Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

compile glib 2.48 does not recognize pcre with utf support

Tags:

gcc

utf-8

pcre

glib

I have compiled pcre 8.38 from source with --enable-utf8 --enable-unicode-properties and a pcretest -C utf retuns 1.

a which pcretest returns /home/mybin/bin/pcretest

However when compiling glib 2.48 using PCRE_LIBS="/home/mybin/lib" PCRE_CFLAGS="/home/mybin/bin" i get a configure error from configure.log

checking for PCRE... yes
checking for Unicode support in PCRE... no
configure: error: *** The system-supplied PCRE does not support Unicode properties or UTF-8.

is there something else I should check to get the glib configure to pass?

like image 810
art vanderlay Avatar asked Mar 26 '16 22:03

art vanderlay


2 Answers

If internal glib pcre is acceptable option then you may use --with-pcre in configure.

like image 147
Ersan J Sano Avatar answered Nov 03 '22 01:11

Ersan J Sano


Run ldconfig after make install step of libpcre. After that try ./configure in glib.

like image 25
Kiran P Avatar answered Nov 03 '22 00:11

Kiran P