|
OpenLDAP Faq-O-Matic : OpenLDAP Software FAQ : Installation :
What do I do if REGEX is broken on my system? |
A few systems (especially older ones) do not have POSIX regex
compatible library or have a broken one.
On such systems, you need to install a third party POSIX regex
library.
|
One solution is to download and install GNU regex 0.12
(ftp://ftp.gnu.org/gnu/regex/regex-0.12.tar.gz).
Compile regex.o:
% ./configure
% make
Construct a library containing regex.o:
% ar ru libgnuregex.a regex.o
% ranlib libgnuregex.a (not required on all systems)
Tell OpenLDAP configure to use this library
( in .../ldap )
% env CPPFLAGS=-I/path/to/regex-0.12 \
LDFLAGS=-L/path/to/regex-0.12 \
LIBS=-lgnuregex \
./configure |
Another solution is to download GNU rx (ftp://ftp.gnu.org/gnu/).
|
This works on HPUX 10.20
1. download, compile and install GNU Rx (replacement for regex)
2. env LIBS=-lrx ./configure
3. make depend
4. replace <regex.h> with <rxposix.h> in include/ac/regex.h
5. compile and test |
[Append to This Answer] |