Re: Unable to compile HAProxy on RHEL7

2016-07-23 Thread Aleksandar Lazic

Hi

Am 22-07-2016 18:39, schrieb Dennis Jacobfeuerborn:

On 22.07.2016 17:43, Kuldip Madnani wrote:
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


[snipp]

include/common/regex.h:31:18: fatal error: pcre.h: No such file or 
directory

 #include 
  ^
compilation terminated.
make: *** [src/haproxy.o] Error 1


Could anybody please help?


Try "yum install pcre-devel".


and openssl-devel gcc make zlib-devel readline-devel openssl tar

I use the following Dockerfile to build haproxy maybe this helps you 
also.


https://github.com/git001/haproxy/blob/master/Dockerfile

cheers aleks



Re: Unable to compile HAProxy on RHEL7

2016-07-22 Thread Dennis Jacobfeuerborn
On 22.07.2016 17:43, Kuldip Madnani wrote:
> 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 
>   ^
> compilation terminated.
> make: *** [src/haproxy.o] Error 1
> 
> 
> Could anybody please help?

Try "yum install pcre-devel".

Regards,
  Dennis






Unable to compile HAProxy on RHEL7

2016-07-22 Thread Kuldip Madnani
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 
  ^
compilation terminated.
make: *** [src/haproxy.o] Error 1


Could anybody please help?

Thanks,
Kuldip



Sent with MailTrack