Re: Postgres RPMS for RedHat 7.2

From: Oleg Lebedev <olebedev(at)waterford(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Postgres RPMS for RedHat 7.2
Date: 2002-01-02 20:07:11
Message-ID: 3C33686F.7A6957F5@waterford.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I solved the problem by commenting out
#include <postgres.h>
in $PHP_HOME/ext/pgsql/php_pgsql.h
It turns out that php does not really need this header file, but when compiled,
it won't find it if configured with postgres installation (not src) directory.
thanks,

oleg

James Kelty wrote:

> When you compile the postgres, you can make it so that other progs can find
> the included when you need them to by putting the $PGSQL/lib in
> /etc/ld.so.conf and running /sbin/ldconfig
>
> You can always specify where the includes and libs are in php using
> the --with-pgsql=$PGSQL
>
> -James
>
> -----Original Message-----
> From: pgsql-admin-owner(at)postgresql(dot)org
> [mailto:pgsql-admin-owner(at)postgresql(dot)org]On Behalf Of Oleg Lebedev
> Sent: Friday, December 28, 2001 3:55 PM
> To: Chris Ruprecht
> Cc: 'pgsql-admin(at)postgresql(dot)org'
> Subject: [ADMIN] Postgres RPMS for RedHat 7.2
>
> Hi everybody,
> I just installed RedHat 7.2 on one of my machines. I was trying to locate
> latest
> postgres RPMS for this version of linux, but couldn't find any. When I try
> to
> use RPMS for RedHat 7.1, I get the following error:
> error: failed dependencies
> libpq.so.2 is needed by postgresql-7.1.3-1PGDG
> libreadline.so.4.1 is needed by postgresql-7.1.3-1PGDG
> I found out that the first file is in $PGSQL/lib directory, but I don't have
> libreadline.so.4.1, but libreadline.so.4 and libreadline.so.4.2 in /usr/lib.
> Is
> it possible at all to use RedHat 7.1 RPMS on RedHat 7.2?
>
> I can avoid using RPMS if smbd. can tell he how I can do a FULL installation
> of
> postgres. In other words, I want all packages in $PG_SRC/src/include to be
> compiled and place in $PGSQL/include directory, where $PG_SRC and $PGSQL are
> postgres source and installation directories respectively. The thing is that
> when I configure it with PHP, PHP can't find some of the packages in
> $PGSQL/include, so I have to configure PHP with $PG_SRC/src in order to
> compile
> it, which causes some other problems later.
> thanks,
>
> Oleg
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Nick Fankhauser 2002-01-03 13:30:38 Re: Allowing TCP/IP connections
Previous Message James Kelty 2002-01-02 19:34:50 Re: Postgres RPMS for RedHat 7.2