pg_config problem on Solaris 10u7 X64

Lists: pgsql-hackers
From: Amber <guxiaobo1982(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_config problem on Solaris 10u7 X64
Date: 2010-07-21 02:52:04
Message-ID: AANLkTik6OQB_l82fnqBEvuVHas2um5L2IX7-ueK2Jubw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,
I am trying to build RPostgreSQL on Solaris 10u7 X64, but have problems
with pg_config, the configure script of RPostgreSQL checks for pg_config and
got “checking for pg_config... /usr/bin/pg_config”. In Solaris 10u7 X64,
three versions of PostgreSQL are installed, there are in
/usr/postgres/8.2(8.2.9) and /usr/postgres/8.3(8.3.3), the corresponding bin
files are in /usr/postgres/<version>/bin and
/usr/postgres/<version>/bin/amd64, and the libraries in /usr/bin is 8.1.11
and it seems a 32bit, and I can’t find the 64bit version bins for 8.1.11.
My question is how to let RPostgreSQL configure script find the 64bit
pg_config.


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Amber <guxiaobo1982(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_config problem on Solaris 10u7 X64
Date: 2010-07-21 10:57:02
Message-ID: AANLkTimhoksp_ft-HRRCBP+QTJ_y-wqP3HzQ6NQydMEH@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Jul 20, 2010 at 10:52 PM, Amber <guxiaobo1982(at)gmail(dot)com> wrote:
>  I am trying to build RPostgreSQL on Solaris 10u7 X64, but have problems
> with pg_config, the configure script of RPostgreSQL checks for pg_config and
> got “checking for pg_config... /usr/bin/pg_config”. In Solaris 10u7 X64,
> three versions of PostgreSQL are installed, there are in
> /usr/postgres/8.2(8.2.9) and /usr/postgres/8.3(8.3.3), the corresponding bin
> files are in /usr/postgres/<version>/bin and
> /usr/postgres/<version>/bin/amd64, and the libraries in /usr/bin is 8.1.11
> and it seems a 32bit, and I can’t find the 64bit version bins for 8.1.11.
> My question is how to let RPostgreSQL configure script find the 64bit
> pg_config.

My first guess would be to try changing your PATH before running configure.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


From: Bjorn Munch <bjorn(dot)munch(at)oracle(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_config problem on Solaris 10u7 X64
Date: 2010-07-22 07:46:56
Message-ID: 20100722074656.GA11313@khepri15.norway.sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 21/07 06.57, Robert Haas wrote:
> On Tue, Jul 20, 2010 at 10:52 PM, Amber <guxiaobo1982(at)gmail(dot)com> wrote:
> >  I am trying to build RPostgreSQL on Solaris 10u7 X64, but have problems
> > with pg_config, the configure script of RPostgreSQL checks for pg_config and
> > got ?checking for pg_config... /usr/bin/pg_config?. In Solaris 10u7 X64,
> > three versions of PostgreSQL are installed, there are in
> > /usr/postgres/8.2(8.2.9) and /usr/postgres/8.3(8.3.3), the corresponding bin
> > files are in /usr/postgres/<version>/bin and
> > /usr/postgres/<version>/bin/amd64, and the libraries in /usr/bin is 8.1.11
> > and it seems a 32bit, and I can?t find the 64bit version bins for 8.1.11.
> > My question is how to let RPostgreSQL configure script find the 64bit
> > pg_config.
>
> My first guess would be to try changing your PATH before running configure.

Yes, you should set your PATH to have /usr/postgres/<version>/bin/64
before /usr/bin, if you want to use the 64 bit pg_config for 8.2 or
8.3.

I think 8.1 was only included as 32 bit in Solaris.

--
Bjorn Munch, Release Engineer
Oracle Corp. (formerly at Sun)
Trondheim, Norway