Re: BUG #15254: The configure --with-zlib option ignores zlib customlocation - Mailing list pgsql-bugs

From Andres Freund
Subject Re: BUG #15254: The configure --with-zlib option ignores zlib customlocation
Date
Msg-id 20180627210551.b4g45ku66wyqvn5g@alap3.anarazel.de
Whole thread Raw
In response to BUG #15254: The configure --with-zlib option ignores zlib customlocation  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
Hi,

On 2018-06-27 20:52:04 +0000, PG Bug reporting form wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      15254
> Logged by:          Stephane Eybert
> Email address:      mittiprovence@yahoo.se
> PostgreSQL version: 10.4
> Operating system:   Linux Lubuntu 16.04
> Description:        
> 
> My zlib is being built under the user home directory. So is my postgresql
> system.
> 
> zlib:
> ./configure \
>   --prefix=/home/stephane/programs/install
> 
> postgresql:
> ./configure \
>   --prefix=/home/stephane/programs/install \
>   --without-zlib
> 
> Not all of us can install outside of our user directory. The postgresql
> stands out quite lonely on that.
> 

Prefix is about the install path, not about the library search path. You
can pass CPPFLAGS='-I/path/to/whatever' LDFLAGS='-L/path/to/whatever' to
configure.  Note that you'll potentially have to change your system
search library path, or LD_LIBRARY_PATH, environment to allow
libc/kernel to find shared libraries.

Greetings,

Andres Freund


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15254: The configure --with-zlib option ignores zlib customlocation
Next
From: Alexey Bashtanov
Date:
Subject: Re: Server Crash