Re: Postgresql 94 from PostgreSQL RPM Repository (with Yum) - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Postgresql 94 from PostgreSQL RPM Repository (with Yum)
Date
Msg-id ad5917a9-c194-0cf5-166c-5959f94946a7@aklaver.com
Whole thread Raw
In response to Postgresql 94 from PostgreSQL RPM Repository (with Yum)  (Steve Clark <steve.clark@netwolves.com>)
List 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.klaver@aklaver.com


pgsql-general by date:

Previous
From: Devrim Gündüz
Date:
Subject: Re: Postgresql 94 from PostgreSQL RPM Repository (with Yum)
Next
From: Stephen Frost
Date:
Subject: Re: Row level security performance joining large tables