I want to compile HAProxy version 1.6.7 for which i am using the following
steps:
1. tar xzvf haproxy-1.6.7.tar.gz
2. make TARGET="generic" USE_STATIC_PCRE=1 USE_OPENSSL=1 USE_LIBCRYPT=1
USE_ZLIB=1
But getting this error:
$ make TARGET="generic" USE_STATIC_PCRE=1 USE_OPENSSL=1 USE_LIBCRYPT=1
USE_ZLIB=1
gcc -Iinclude -Iebtree -Wall -O2 -g -fno-strict-aliasing
-Wdeclaration-after-statement -DTPROXY -DCONFIG_HAP_CRYPT -DUSE_ZLIB
-DENABLE_POLL -DUSE_OPENSSL -DUSE_PCRE -I/usr/local/include
-DCONFIG_HAPROXY_VERSION=\"1.6.7\" -DCONFIG_HAPROXY_DATE=\"2016/07/13\" \
-DBUILD_TARGET='"generic"' \
-DBUILD_ARCH='""' \
-DBUILD_CPU='"generic"' \
-DBUILD_CC='"gcc"' \
-DBUILD_CFLAGS='"-O2 -g -fno-strict-aliasing
-Wdeclaration-after-statement"' \
-DBUILD_OPTIONS='"USE_LIBCRYPT=1 USE_ZLIB=1 USE_OPENSSL=1
USE_STATIC_PCRE=1"' \
-c -o src/haproxy.o src/haproxy.c
In file included from include/types/proxy.h:33:0,
from include/proto/log.h:32,
from include/common/cfgparse.h:29,
from src/haproxy.c:63:
include/common/regex.h:31:18: fatal error: pcre.h: No such file or directory
#include <pcre.h>
^
compilation terminated.
make: *** [src/haproxy.o] Error 1
Could anybody please help?
Thanks,
Kuldip
Sent with MailTrack
<https://mailtrack.io/install?source=signature&lang=en&[email protected]&idSignature=22>