Re: BUG #15254: The configure --with-zlib option ignores zlib custom location

From: Andres Freund <andres(at)anarazel(dot)de>
To: mittiprovence(at)yahoo(dot)se, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15254: The configure --with-zlib option ignores zlib custom location
Date: 2018-06-27 21:05:51
Message-ID: 20180627210551.b4g45ku66wyqvn5g@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)yahoo(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Luca Ferrari 2018-06-28 06:15:02 Re: could not read block 0 in file : read only 0 of 8192 bytes when doing nasty on immutable index function
Previous Message PG Bug reporting form 2018-06-27 20:52:04 BUG #15254: The configure --with-zlib option ignores zlib custom location