Re: Postgresql 94 from PostgreSQL RPM Repository (with Yum)

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Steve Clark <steve(dot)clark(at)netwolves(dot)com>, pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgresql 94 from PostgreSQL RPM Repository (with Yum)
Date: 2016-11-10 14:40:43
Message-ID: ad5917a9-c194-0cf5-166c-5959f94946a7@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/10/2016 04:56 AM, Steve Clark wrote:
> Hi
>
> I installed the following package:
> postgresql94-server-9.4.9-1PGDG.rhel6.x86_64
> postgresql94-plperl-9.4.9-1PGDG.rhel6.x86_64
> postgresql94-plpython-9.4.9-1PGDG.rhel6.x86_64
> postgresql94-contrib-9.4.9-1PGDG.rhel6.x86_64
> postgresql94-devel-9.4.9-1PGDG.rhel6.x86_64
> postgresql94-libs-9.4.9-1PGDG.rhel6.x86_64
> postgresql94-9.4.9-1PGDG.rhel6.x86_64
>
> Then tried to build pmacct and the configure complained it couldn't find
> the libpq library. I looked for
> a package-config file for the above but couldn't find one.
>
> What am I missing?

I just ran the configure on a source installed version of Postgres and it worked.

What it was looking for:

checking whether to enable PostgreSQL support... yes
checking for PGSQL... no
checking default locations for libpq... found in /usr/local/pgsql/lib
checking default locations for libpq-fe.h... found in /usr/local/pgsql/include

And from the configure file:

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default locations for libpq-fe.h" >&5
$as_echo_n "checking default locations for libpq-fe.h... " >&6; }
if test -r /usr/include/libpq-fe.h; then
PGSQL_CFLAGS="-I/usr/include"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/include" >&5
$as_echo "found in /usr/include" >&6; }
elif test -r /usr/include/postgresql/libpq-fe.h; then
PGSQL_CFLAGS="-I/usr/include/postgresql"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/include/postgresql" >&5
$as_echo "found in /usr/include/postgresql" >&6; }
elif test -r /usr/local/include/libpq-fe.h; then
PGSQL_CFLAGS="-I/usr/local/include"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/local/include" >&5
$as_echo "found in /usr/local/include" >&6; }
elif test -r /usr/local/pgsql/include/libpq-fe.h; then
PGSQL_CFLAGS="-I/usr/local/pgsql/include"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/local/pgsql/include" >&5
$as_echo "found in /usr/local/pgsql/include" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }
_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $PGSQL_CFLAGS"
ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
if test "x$ac_cv_header_libpq_fe_h" = xyes; then :

So it is looking in the default source install locations. The RPMs I believe
install in different locations. Running configure --help shows environment variables
that can be set to change the configure search behavior.

>
> Thanks,
> Steve
>
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2016-11-10 14:50:31 Re: Row level security performance joining large tables
Previous Message Devrim Gündüz 2016-11-10 14:36:15 Re: Postgresql 94 from PostgreSQL RPM Repository (with Yum)