: Postgres installation error on CentOS

From: Venkat Balaji <venkat(dot)balaji(at)verse(dot)in>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: : Postgres installation error on CentOS
Date: 2011-11-15 11:58:07
Message-ID: CAFrxt0ie-8AYhRPzoBerZ_JNACoa-usE=uAcUfHAzUTToc1D8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

We are facing an issue while installing Postgres-9.0.1 on CentOS-5.

Below is the error we are encountering -

./configure -- output

checking for inflate in -lz... no
configure: error: zlib library not found
If you have zlib already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-zlib to disable zlib support.

Inside the config.log, below is what we see -

configure:8204: checking for inflate in -lz
configure:8239: gcc -o conftest -O2 -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing -fwrapv -D_GNU_SOURCE conftest.c -lz -lreadline
-ltermcap -lcrypt -ldl -lm >&5
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz

Zlib rpms are installed and below is the rpm -qa output -

[root(at)localhost postgresql-9.0.1]# rpm -qa | grep zlib
zlib-1.2.3-4.el5
jzlib-1.0.7-4jpp.1
zlib-devel-1.2.3-4.el5
zlib-1.2.3-3

Thanks
VB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2011-11-15 12:26:19 Re: : Postgres installation error on CentOS
Previous Message Andrew Sullivan 2011-11-15 10:30:07 Re: how to adjust auto increment id offset?