Обсуждение: : Postgres installation error on CentOS

Поиск
Список
Период
Сортировка

: Postgres installation error on CentOS

От
Venkat Balaji
Дата:
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@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


Re: : Postgres installation error on CentOS

От
Alban Hertroys
Дата:
On 15 November 2011 12:58, Venkat Balaji <venkat.balaji@verse.in> wrote:
> Hello,
> We are facing an issue while installing Postgres-9.0.1 on CentOS-5.

That name always makes me wonder when they're releasing PennyOS or DollarOS :P

> Below is the error we are encountering -
> ./configure -- output
> checking for inflate in -lz... no
> configure: error: zlib library not found
...
> /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz

Apparently your installed libz doesn't provide a function that
configure is checking for. Perhaps upgrading it helps, if possible?

Another possibility is that configure gets pointed to an old version
of zlib as the first result from LD. You could try removing that, but
you probably have dependencies on it from other packages.

> Zlib rpms are installed and below is the rpm -qa output -
> [root@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

As a non-linux user this doesn't mean much to me.
--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

Re: : Postgres installation error on CentOS

От
Venkat Balaji
Дата:
Hi Alban,

Thanks for the reply !

I was able to resolve this issue, but, not by removing the older version of zlib (i was unable to do so due to dependencies).

I did not have older version of zlib-devel installed, I did that and able to install.

Regards,
VB

On Tue, Nov 15, 2011 at 5:56 PM, Alban Hertroys <haramrae@gmail.com> wrote:
On 15 November 2011 12:58, Venkat Balaji <venkat.balaji@verse.in> wrote:
> Hello,
> We are facing an issue while installing Postgres-9.0.1 on CentOS-5.

That name always makes me wonder when they're releasing PennyOS or DollarOS :P

> Below is the error we are encountering -
> ./configure -- output
> checking for inflate in -lz... no
> configure: error: zlib library not found
...
> /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz

Apparently your installed libz doesn't provide a function that
configure is checking for. Perhaps upgrading it helps, if possible?

Another possibility is that configure gets pointed to an old version
of zlib as the first result from LD. You could try removing that, but
you probably have dependencies on it from other packages.

> Zlib rpms are installed and below is the rpm -qa output -
> [root@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

As a non-linux user this doesn't mean much to me.
--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.