pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postgresql driver for linux ODBC expect a missing pg_config file
2+ messages / 2 participants
[nested] [flat]

* Postgresql driver for linux ODBC expect a missing pg_config file
@ 2015-06-18 10:40  intmail01@gmail.com <intmail01@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: intmail01@gmail.com @ 2015-06-18 10:40 UTC (permalink / raw)
  To: pgsql-odbc

Hello,

I want to use postgresql ODBC on linux and forced to compile a new odbc
driver for postgres.
The name of the driver is psqlodbc-09.03.0400.tar.gz

I just did  command  ./configure and error occurs because 'libpq'  is
expected. I search through the file systems and found where libpq.so.*
and libpq.a are stored. After that I did a new command like this:
./configure --with-libpq=/opt/PostgreSQL/9.3/lib/

An error occurs again. The output shows last two lines :
configure: using /usr/local/include /usr/local/lib
configure: error: specified pg_config not found

Please tell me how to continue the compilation ?
The file pg_config exists and is located in /opt/PostgreSQL/9.3/bin/

Note that my postgresql binaries are downloaded directly from the
official site, I did not compile it. Installation directory is
/opt/PostgreSQL/9.3

Thank you



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Postgresql driver for linux ODBC expect a missing pg_config file
@ 2015-06-18 13:37  Heikki Linnakangas <hlinnaka@iki.fi>
  parent: intmail01@gmail.com <intmail01@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2015-06-18 13:37 UTC (permalink / raw)
  To: intmail01@gmail.com; pgsql-odbc

On 06/18/2015 06:40 AM, intmail01@gmail.com wrote:
> I just did  command  ./configure and error occurs because 'libpq'  is
> expected. I search through the file systems and found where libpq.so.*
> and libpq.a are stored. After that I did a new command like this:
> ./configure --with-libpq=/opt/PostgreSQL/9.3/lib/
>
> An error occurs again. The output shows last two lines :
> configure: using /usr/local/include /usr/local/lib
> configure: error: specified pg_config not found
>
> Please tell me how to continue the compilation ?
> The file pg_config exists and is located in /opt/PostgreSQL/9.3/bin/
>
> Note that my postgresql binaries are downloaded directly from the
> official site, I did not compile it. Installation directory is
> /opt/PostgreSQL/9.3

Try:

./configure --with-libpq=/opt/PostgreSQL/9.3/

or

./configure --with-libpq=/opt/PostgreSQL/9.3/bin/pg_config

IIRC both of those should work.

- Heikki



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-06-18 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-18 10:40 Postgresql driver for linux ODBC expect a missing pg_config file intmail01@gmail.com <intmail01@gmail.com>
2015-06-18 13:37 ` Heikki Linnakangas <hlinnaka@iki.fi>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox