BUG #15254: The configure --with-zlib option ignores zlib custom location
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.
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/installpostgresql:
./configure \
--prefix=/home/stephane/programs/install \
--without-zlibNot 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