pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
compiling odbc
17+ messages / 7 participants
[nested] [flat]

* compiling odbc
@ 2008-09-18 18:10  Brent Austin <brent1a@yahoo.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Brent Austin @ 2008-09-18 18:10 UTC (permalink / raw)
  To: pgsql-odbc

I am attempting to compile and install psqlodbc-08.03.0200 on my Mac Pro running Leopard.
Here is what I get:
client-66-xxx-17-x14:psqlodbc-08.03.0200 brent1a$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for pg_config... no
configure: error: pg_config not found (set PG_CONFIG environment variable)

How do I fix "configure: error: pg_config not found (set PG_CONFIG environment variable)"
(I'm relatively new to most of this?
thanks
-B


      

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

* Re: compiling odbc
@ 2008-09-18 18:52  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Brent Austin <brent1a@yahoo.com>
  0 siblings, 0 replies; 17+ messages in thread

From: Tom Lane @ 2008-09-18 18:52 UTC (permalink / raw)
  To: Brent Austin <brent1a@yahoo.com>; +Cc: pgsql-odbc

Brent Austin <brent1a@yahoo.com> writes:
> I am attempting to compile and install psqlodbc-08.03.0200 on my Mac Pro running Leopard.
> checking for pg_config... no
> configure: error: pg_config not found (set PG_CONFIG environment variable)

> How do I fix "configure: error: pg_config not found (set PG_CONFIG environment variable)"

Probably means you don't have Postgres itself installed.  On some
platforms it could mean that you don't have the postgresql-devel
subpackage installed, but I've not heard that anyone divides up the
package like that on OS X.

Another possibility is that PG is installed, but in a directory
that's not in your PATH.

			regards, tom lane



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

* Re: compiling odbc
@ 2008-09-18 19:15  Brent Austin <brent1a@yahoo.com>
  0 siblings, 0 replies; 17+ messages in thread

From: Brent Austin @ 2008-09-18 19:15 UTC (permalink / raw)
  To: pgsql-odbc



I just installed the latest Postgres from source so everything needed should be there. Some of the things I've been installing recently have not had the right PATH but I thought I fixed that. What would fix this problem?
I think postgres is installed in:
/usr/local/psql

would this fix it:
export PATH=$PATH:/usr/local/psql
or maybe
echo "export PATH=\"/usr/local/psql:$PATH\"" >>.bash_profile


----- Original Message ----
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brent Austin <brent1a@yahoo.com>
Cc: pgsql-odbc@postgresql.org
Sent: Thursday, September 18, 2008 1:52:00 PM
Subject: Re: [ODBC] compiling odbc 

Brent Austin <brent1a@yahoo.com> writes:
> I am attempting to compile and install psqlodbc-08.03.0200 on my Mac Pro running Leopard.
> checking for pg_config... no
> configure: error: pg_config not found (set PG_CONFIG environment variable)

> How do I fix "configure: error: pg_config not found (set PG_CONFIG environment variable)"

Probably means you don't have Postgres itself installed.  On some
platforms it could mean that you don't have the postgresql-devel
subpackage installed, but I've not heard that anyone divides up the
package like that on OS X.

Another possibility is that PG is installed, but in a directory
that's not in your PATH.

            regards, tom lane


      

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

* Re: compiling odbc
@ 2008-09-18 19:18  Brent Austin <brent1a@yahoo.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Brent Austin @ 2008-09-18 19:18 UTC (permalink / raw)
  To: pgsql-odbc

My pg_config file is in:  /usr/local/pgsql/bin  so how do I tell terminal to see that it's there instead of where it thinks it is?



----- Original Message ----
From: Brent Austin <brent1a@yahoo.com>
To: pgsql-odbc@postgresql.org
Sent: Thursday, September 18, 2008 2:15:07 PM
Subject: Re: [ODBC] compiling odbc




I just installed the latest Postgres from source so everything needed should be there. Some of the things I've been installing recently have not had the right PATH but I thought I fixed that. What would fix this problem?
I think postgres is installed in:
/usr/local/psql

would this fix it:
export PATH=$PATH:/usr/local/psql
or maybe
echo "export PATH=\"/usr/local/psql:$PATH\"" >>.bash_profile


----- Original Message ----
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brent Austin <brent1a@yahoo.com>
Cc: pgsql-odbc@postgresql.org
Sent: Thursday, September 18, 2008 1:52:00 PM
Subject: Re: [ODBC] compiling odbc 

Brent Austin <brent1a@yahoo.com> writes:
> I am attempting to compile and install psqlodbc-08.03.0200 on my Mac Pro running Leopard.
> checking for pg_config... no
> configure: error: pg_config not found (set PG_CONFIG environment variable)

> How do I fix "configure: error: pg_config not found (set PG_CONFIG environment variable)"

Probably means you don't have Postgres itself installed.  On some
platforms it could mean that you don't have the postgresql-devel
subpackage installed, but I've not heard that anyone divides up the
package like that on OS X.

Another possibility is that PG is installed, but in a directory
that's not in your PATH.

            regards, tom lane


      

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

* Re: compiling odbc
@ 2008-09-19 06:35  Albe Laurenz <laurenz.albe@wien.gv.at>
  parent: Brent Austin <brent1a@yahoo.com>
  0 siblings, 0 replies; 17+ messages in thread

From: Albe Laurenz @ 2008-09-19 06:35 UTC (permalink / raw)
  To: Brent Austin *EXTERN* <brent1a@yahoo.com>; pgsql-odbc

Brent Austin wrote:
> My pg_config file is in:  /usr/local/pgsql/bin  so how do I 
> tell terminal to see that it's there instead of where it thinks it is?
> 
> would this fix it:
> 
> export PATH=$PATH:/usr/local/psql

Erm, no.
Try:

export PATH=$PATH:/usr/local/psql/bin

Yours,
Laurenz Albe



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

* Re: compiling odbc
@ 2008-09-19 08:33  Brent Austin <brent1a@yahoo.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Brent Austin @ 2008-09-19 08:33 UTC (permalink / raw)
  To: Albe Laurenz <laurenz.albe@wien.gv.at>; pgsql-odbc

So far this is what I get when I try that command-

client-66-1xx-17-xx4:~ brent1a$ export PATH=$PATH:/usr/local/psql/bin
client-66-1xx-17-xx4:~ brent1a$ cd /psqlodbc-08.03.0200 
client-66-1xx-17-xx4:psqlodbc-08.03.0200 brent1a$ sudo ./configure
Password:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for pg_config... no
configure: error: pg_config not found (set PG_CONFIG environment variable)
client-66-1xx-17-xx4:psqlodbc-08.03.0200 brent1a$ 


----- Original Message ----
From: Albe Laurenz <laurenz.albe@wien.gv.at>
To: Brent Austin  *EXTERN* <brent1a@yahoo.com>; pgsql-odbc@postgresql.org
Sent: Friday, September 19, 2008 1:35:20 AM
Subject: RE: [ODBC] compiling odbc

Brent Austin wrote:
> My pg_config file is in:  /usr/local/pgsql/bin  so how do I 
> tell terminal to see that it's there instead of where it thinks it is?
> 
> would this fix it:
> 
> export PATH=$PATH:/usr/local/psql

Erm, no.
Try:

export PATH=$PATH:/usr/local/psql/bin

Yours,
Laurenz Albe



      

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

* Re: compiling odbc
@ 2008-09-19 11:11  Albe Laurenz <laurenz.albe@wien.gv.at>
  parent: Brent Austin <brent1a@yahoo.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Albe Laurenz @ 2008-09-19 11:11 UTC (permalink / raw)
  To: Brent Austin *EXTERN* <brent1a@yahoo.com>; pgsql-odbc

> So far this is what I get when I try that command-
> 
> client-66-1xx-17-xx4:~ brent1a$ export PATH=$PATH:/usr/local/psql/bin
> 
> client-66-1xx-17-xx4:~ brent1a$ cd /psqlodbc-08.03.0200 
> 
> client-66-1xx-17-xx4:psqlodbc-08.03.0200 brent1a$ sudo ./configure
> 
[...]
> 
> configure: error: pg_config not found (set PG_CONFIG environment variable)

Yeah, sure.

You should omit the "sudo", it's wrong.

But maybe it's best to follow the instructions you get and
export PG_CONFIG=/usr/local/psql/bin/pg_config

Yours,
Laurenz Albe



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

* Re: compiling odbc
@ 2008-09-19 11:35  Jeremy Faith <jfaith@cemsys.com>
  parent: Albe Laurenz <laurenz.albe@wien.gv.at>
  0 siblings, 0 replies; 17+ messages in thread

From: Jeremy Faith @ 2008-09-19 11:35 UTC (permalink / raw)
  To: pgsql-odbc

Hi,

Brent Austin wrote:
> My pg_config file is in:  /usr/local/pgsql/bin  so how do I 
> tell terminal to see that it's there instead of where it thinks it is?
> 
> would this fix it:
> 
> export PATH=$PATH:/usr/local/psql

Could this be as simple as the 'g' being missing from the pgsql directory in the PATH?
i.e.
  export PATH=$PATH:/usr/local/psql
should be
  export PATH=$PATH:/usr/local/pgsql
and
  export PG_CONFIG=/usr/local/psql/bin/pg_config
should be
  export PG_CONFIG=/usr/local/pgsql/bin/pg_config

Regards,
Jeremy Faith


Albe Laurenz wrote:
>> So far this is what I get when I try that command-
>>
>> client-66-1xx-17-xx4:~ brent1a$ export PATH=$PATH:/usr/local/psql/bin
>>
>> client-66-1xx-17-xx4:~ brent1a$ cd /psqlodbc-08.03.0200 
>>
>> client-66-1xx-17-xx4:psqlodbc-08.03.0200 brent1a$ sudo ./configure
>>
>>     
> [...]
>   
>> configure: error: pg_config not found (set PG_CONFIG environment variable)
>>     
>
> Yeah, sure.
>
> You should omit the "sudo", it's wrong.
>
> But maybe it's best to follow the instructions you get and
> export PG_CONFIG=/usr/local/psql/bin/pg_config
>
> Yours,
> Laurenz Albe
>
>   




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

* Re: compiling odbc
@ 2008-09-19 18:25  Brent Austin <brent1a@yahoo.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Brent Austin @ 2008-09-19 18:25 UTC (permalink / raw)
  To: Jeremy Faith <jfaith@cemsys.com>; pgsql-odbc

I got export PATH=$PATH:/usr/local/pgsql to work

but now I get:
"configure: error: unixODBC library "odbcinst" not found"

I found that "odbcinst" is in my /opt/local/bin

How do I tell configure that pgsql is in /usr/local/pgsql and ALSO tell it that obcinst is in /opt/local/bin ???





----- Original Message ----
From: Jeremy Faith <jfaith@cemsys.com>
To: pgsql-odbc@postgresql.org
Sent: Friday, September 19, 2008 6:35:23 AM
Subject: Re: [ODBC] compiling odbc

Hi,

Brent Austin wrote:
> My pg_config file is in:  /usr/local/pgsql/bin  so how do I 
> tell terminal to see that it's there instead of where it thinks it is?
> 
> would this fix it:
> 
> export PATH=$PATH:/usr/local/psql

Could this be as simple as the 'g' being missing from the pgsql directory in the PATH?
i.e.
  export PATH=$PATH:/usr/local/psql
should be
  export PATH=$PATH:/usr/local/pgsql
and
  export PG_CONFIG=/usr/local/psql/bin/pg_config
should be
  export PG_CONFIG=/usr/local/pgsql/bin/pg_config

Regards,
Jeremy Faith


Albe Laurenz wrote:
>> So far this is what I get when I try that command-
>>
>> client-66-1xx-17-xx4:~ brent1a$ export PATH=$PATH:/usr/local/psql/bin
>>
>> client-66-1xx-17-xx4:~ brent1a$ cd /psqlodbc-08.03.0200 
>>
>> client-66-1xx-17-xx4:psqlodbc-08.03.0200 brent1a$ sudo ./configure
>>
>>    
> [...]
>  
>> configure: error: pg_config not found (set PG_CONFIG environment variable)
>>    
>
> Yeah, sure.
>
> You should omit the "sudo", it's wrong.
>
> But maybe it's best to follow the instructions you get and
> export PG_CONFIG=/usr/local/psql/bin/pg_config
>
> Yours,
> Laurenz Albe
>
>  


-- 
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] 17+ messages in thread

* Re: compiling odbc
@ 2008-09-19 20:11  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Brent Austin <brent1a@yahoo.com>
  0 siblings, 0 replies; 17+ messages in thread

From: Tom Lane @ 2008-09-19 20:11 UTC (permalink / raw)
  To: Brent Austin <brent1a@yahoo.com>; +Cc: Jeremy Faith <jfaith@cemsys.com>; pgsql-odbc

Brent Austin <brent1a@yahoo.com> writes:
> How do I tell configure that pgsql is in /usr/local/pgsql and ALSO tell it that obcinst is in /opt/local/bin ???

Two PATH items?

			regards, tom lane



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

* Re: compiling odbc
@ 2008-09-19 22:49  Brent Austin <brent1a@yahoo.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Brent Austin @ 2008-09-19 22:49 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Jeremy Faith <jfaith@cemsys.com>; pgsql-odbc

Yes, two PATH items, I guess.
"export PATH=$PATH:/usr/local/pgsql"
 
takes care of:
 
"checking for pg_config... no
configure: error: pg_config not found (set PG_CONFIG environment variable)"
 
How can I take care of the following as well with out messing up the above? 


"configure: error: unixODBC library "odbcinst" not found"

(I found "odbcinst" is in my /opt/local/bin)


----- Original Message ----
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brent Austin <brent1a@yahoo.com>
Cc: Jeremy Faith <jfaith@cemsys.com>; pgsql-odbc@postgresql.org
Sent: Friday, September 19, 2008 3:11:36 PM
Subject: Re: [ODBC] compiling odbc

Brent Austin <brent1a@yahoo.com> writes:
> How do I tell configure that pgsql is in /usr/local/pgsql and ALSO tell it that obcinst is in /opt/local/bin ???

Two PATH items?

            regards, tom lane



      

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

* Re: compiling odbc
@ 2008-09-22 09:06  Jeremy Faith <jfaith@cemsys.com>
  parent: Brent Austin <brent1a@yahoo.com>
  0 siblings, 0 replies; 17+ messages in thread

From: Jeremy Faith @ 2008-09-22 09:06 UTC (permalink / raw)
  To: pgsql-odbc

Hi,

I think what Tom is saying is to try:-
  PATH=$PATH:/usr/local/pgsql:/opt/local/bin

Regards,
Jeremy Faith

Brent Austin wrote:
> Yes, two PATH items, I guess.
> "export PATH=$PATH:/usr/local/pgsql"
>  
> takes care of:
>  
> "checking for pg_config... no
> configure: error: pg_config not found (set PG_CONFIG environment 
> variable)"
>  
> How can I take care of the following as well with out messing up the 
> above?
>
> "configure: error: unixODBC library "odbcinst" not found"
>
> (I found "odbcinst" is in my /opt/local/bin)
>
> ----- Original Message ----
> From: Tom Lane <tgl@sss.pgh.pa.us>
> To: Brent Austin <brent1a@yahoo.com>
> Cc: Jeremy Faith <jfaith@cemsys.com>; pgsql-odbc@postgresql.org
> Sent: Friday, September 19, 2008 3:11:36 PM
> Subject: Re: [ODBC] compiling odbc
>
> Brent Austin <brent1a@yahoo.com <mailto:brent1a@yahoo.com>> writes:
> > How do I tell configure that pgsql is in /usr/local/pgsql and ALSO 
> tell it that obcinst is in /opt/local/bin ???
>
> Two PATH items?
>
>             regards, tom lane
>




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

* Re: compiling odbc
@ 2008-09-22 10:01  Brent Austin <brent1a@yahoo.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Brent Austin @ 2008-09-22 10:01 UTC (permalink / raw)
  To: Jeremy Faith <jfaith@cemsys.com>; pgsql-odbc

I still get this:
client-66-1xx-1x-x14:~ brent1a$ PATH=$PATH:/usr/local/pgsql/bin:/opt/local/bin
client-66-1xx-1x-x14:~ brent1a$ cd /psqlodbc-08.03.0200 
client-66-1xx-1x-x14:psqlodbc-08.03.0200 brent1a$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for pg_config... /usr/local/pgsql/bin/pg_config
checking for gcc... gcc
...........
checking how to hardcode library paths into programs... immediate
checking for library containing SQLGetPrivateProfileString... no
configure: error: unixODBC library "odbcinst" not found
client-66-1xx-1x-x14:psqlodbc-08.03.0200 brent1a$ 



----- Original Message ----
From: Jeremy Faith <jfaith@cemsys.com>
To: pgsql-odbc@postgresql.org
Sent: Monday, September 22, 2008 4:06:28 AM
Subject: Re: [ODBC] compiling odbc

Hi,

I think what Tom is saying is to try:-
  PATH=$PATH:/usr/local/pgsql:/opt/local/bin

Regards,
Jeremy Faith

Brent Austin wrote:
> Yes, two PATH items, I guess.
> "export PATH=$PATH:/usr/local/pgsql"
>  
> takes care of:
>  
> "checking for pg_config... no
> configure: error: pg_config not found (set PG_CONFIG environment 
> variable)"
>  
> How can I take care of the following as well with out messing up the 
> above?
>
> "configure: error: unixODBC library "odbcinst" not found"
>
> (I found "odbcinst" is in my /opt/local/bin)
>
> ----- Original Message ----
> From: Tom Lane <tgl@sss.pgh.pa.us>
> To: Brent Austin <brent1a@yahoo.com>
> Cc: Jeremy Faith <jfaith@cemsys.com>; pgsql-odbc@postgresql.org
> Sent: Friday, September 19, 2008 3:11:36 PM
> Subject: Re: [ODBC] compiling odbc
>
> Brent Austin <brent1a@yahoo.com <mailto:brent1a@yahoo.com>> writes:
> > How do I tell configure that pgsql is in /usr/local/pgsql and ALSO 
> tell it that obcinst is in /opt/local/bin ???
>
> Two PATH items?
>
>             regards, tom lane
>


-- 
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] 17+ messages in thread

* Re: compiling odbc
@ 2008-09-22 10:36  Zoltan Boszormenyi <zb@cybertec.at>
  parent: Brent Austin <brent1a@yahoo.com>
  0 siblings, 0 replies; 17+ messages in thread

From: Zoltan Boszormenyi @ 2008-09-22 10:36 UTC (permalink / raw)
  To: Brent Austin <brent1a@yahoo.com>; +Cc: Jeremy Faith <jfaith@cemsys.com>; pgsql-odbc

Brent Austin írta:
> I still get this:
> client-66-1xx-1x-x14:~ brent1a$
> PATH=$PATH:/usr/local/pgsql/bin:/opt/local/bin
> client-66-1xx-1x-x14:~ brent1a$ cd /psqlodbc-08.03.0200 
> client-66-1xx-1x-x14:psqlodbc-08.03.0200 brent1a$ sudo ./configure
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for pg_config... /usr/local/pgsql/bin/pg_config
> checking for gcc... gcc
> ...........
> checking how to hardcode library paths into programs... immediate
> checking for library containing SQLGetPrivateProfileString... no
> *configure: error: unixODBC library "odbcinst" not found*
> client-66-1xx-1x-x14:psqlodbc-08.03.0200 brent1a$

You need unixODBC or iODBC installed. unixODBC is used by default,
you can change the expected ODBC manager with option --with-iodbc.

> ----- Original Message ----
> From: Jeremy Faith <jfaith@cemsys.com>
> To: pgsql-odbc@postgresql.org
> Sent: Monday, September 22, 2008 4:06:28 AM
> Subject: Re: [ODBC] compiling odbc
>
> Hi,
>
> I think what Tom is saying is to try:-
>   PATH=$PATH:/usr/local/pgsql:/opt/local/bin
>
> Regards,
> Jeremy Faith
>
> Brent Austin wrote:
> > Yes, two PATH items, I guess.
> > "export PATH=$PATH:/usr/local/pgsql"
> > 
> > takes care of:
> > 
> > "checking for pg_config... no
> > configure: error: pg_config not found (set PG_CONFIG environment
> > variable)"
> > 
> > How can I take care of the following as well with out messing up the
> > above?
> >
> > "configure: error: unixODBC library "odbcinst" not found"
> >
> > (I found "odbcinst" is in my /opt/local/bin)
> >
> > ----- Original Message ----
> > From: Tom Lane <tgl@sss.pgh.pa.us <mailto:tgl@sss.pgh.pa.us>>
> > To: Brent Austin <brent1a@yahoo.com <mailto:brent1a@yahoo.com>>
> > Cc: Jeremy Faith <jfaith@cemsys.com <mailto:jfaith@cemsys.com>>;
> pgsql-odbc@postgresql.org <mailto:pgsql-odbc@postgresql.org>
> > Sent: Friday, September 19, 2008 3:11:36 PM
> > Subject: Re: [ODBC] compiling odbc
> >
> > Brent Austin <brent1a@yahoo.com <mailto:brent1a@yahoo.com>
> <mailto:brent1a@yahoo.com <mailto:brent1a@yahoo.com>>> writes:
> > > How do I tell configure that pgsql is in /usr/local/pgsql and ALSO
> > tell it that obcinst is in /opt/local/bin ???
> >
> > Two PATH items?
> >
> >            regards, tom lane
> >
>
>
> -- 
> Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org
> <mailto:pgsql-odbc@postgresql.org>)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-odbc
>


-- 
----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/




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

* Re: compiling odbc
@ 2008-09-22 17:28  Brent Austin <brent1a@yahoo.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Brent Austin @ 2008-09-22 17:28 UTC (permalink / raw)
  To: Zoltan Boszormenyi <zb@cybertec.at>; +Cc: pgsql-odbc

That's the thing, I have unixODBC installed, it is located at /opt/local/bin that is why I need help figuring out how to get the terminal to recognize where both pg_config AND obdcinst are at during the ./configure process.  
PATH=$PATH:/usr/local/pgsql/bin:/opt/local/bin   should work but it's not recognizing the second part.....the odncinst part.



----- Original Message ----
From: Zoltan Boszormenyi <zb@cybertec.at>
To: Brent Austin <brent1a@yahoo.com>
Cc: Jeremy Faith <jfaith@cemsys.com>; pgsql-odbc@postgresql.org
Sent: Monday, September 22, 2008 5:36:19 AM
Subject: Re: [ODBC] compiling odbc

Brent Austin írta:
> I still get this:   
> client-66-1xx-1x-x14:~ brent1a$
> PATH=$PATH:/usr/local/pgsql/bin:/opt/local/bin
> client-66-1xx-1x-x14:~ brent1a$ cd /psqlodbc-08.03.0200 
> client-66-1xx-1x-x14:psqlodbc-08.03.0200 brent1a$ sudo ./configure
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for pg_config... /usr/local/pgsql/bin/pg_config
> checking for gcc... gcc
> ...........
> checking how to hardcode library paths into programs... immediate
> checking for library containing SQLGetPrivateProfileString... no
> *configure: error: unixODBC library "odbcinst" not found*
> client-66-1xx-1x-x14:psqlodbc-08.03.0200 brent1a$

You need unixODBC or iODBC installed. unixODBC is used by default,
you can change the expected ODBC manager with option --with-iodbc.

> ----- Original Message ----
> From: Jeremy Faith <jfaith@cemsys.com>
> To: pgsql-odbc@postgresql.org
> Sent: Monday, September 22, 2008 4:06:28 AM
> Subject: Re: [ODBC] compiling odbc
>
> Hi,
>
> I think what Tom is saying is to try:-
>   PATH=$PATH:/usr/local/pgsql:/opt/local/bin
>
> Regards,
> Jeremy Faith
>
> Brent Austin wrote:
> > Yes, two PATH items, I guess.
> > "export PATH=$PATH:/usr/local/pgsql"
> > 
> > takes care of:
> > 
> > "checking for pg_config... no
> > configure: error: pg_config not found (set PG_CONFIG environment
> > variable)"
> > 
> > How can I take care of the following as well with out messing up the
> > above?
> >
> > "configure: error: unixODBC library "odbcinst" not found"
> >
> > (I found "odbcinst" is in my /opt/local/bin)
> >
> > ----- Original Message ----
> > From: Tom Lane <tgl@sss.pgh.pa.us <mailto:tgl@sss.pgh.pa.us>>
> > To: Brent Austin <brent1a@yahoo.com <mailto:brent1a@yahoo.com>>
> > Cc: Jeremy Faith <jfaith@cemsys.com <mailto:jfaith@cemsys.com>>;
> pgsql-odbc@postgresql.org <mailto:pgsql-odbc@postgresql.org>
> > Sent: Friday, September 19, 2008 3:11:36 PM
> > Subject: Re: [ODBC] compiling odbc
> >
> > Brent Austin <brent1a@yahoo.com <mailto:brent1a@yahoo.com>
> <mailto:brent1a@yahoo.com <mailto:brent1a@yahoo.com>>> writes:
> > > How do I tell configure that pgsql is in /usr/local/pgsql and ALSO
> > tell it that obcinst is in /opt/local/bin ???
> >
> > Two PATH items?
> >
> >            regards, tom lane
> >
>
>
> -- 
> Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org
> <mailto:pgsql-odbc@postgresql.org>)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-odbc
>


-- 
----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/


      

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

* Re: compiling odbc
@ 2008-09-23 07:48  Peter Eisentraut <peter_e@gmx.net>
  parent: Brent Austin <brent1a@yahoo.com>
  0 siblings, 1 reply; 17+ messages in thread

From: Peter Eisentraut @ 2008-09-23 07:48 UTC (permalink / raw)
  To: Brent Austin <brent1a@yahoo.com>; +Cc: Zoltan Boszormenyi <zb@cybertec.at>; pgsql-odbc

Brent Austin wrote:
> That's the thing, I have unixODBC installed, it is located 
> at /opt/local/bin that is why I need help figuring out how to get the 
> terminal to recognize where both pg_config AND obdcinst are at during 
> the ./configure process.  
> PATH=$PATH:/usr/local/pgsql/bin:/opt/local/bin   should work but it's 
> not recognizing the second part.....the odncinst part.

Try something like

export LDFLAGS=-L/opt/local/lib




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

* Re: compiling odbc
@ 2008-09-23 08:02  Hiroshi Saito <z-saito@guitar.ocn.ne.jp>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 17+ messages in thread

From: Hiroshi Saito @ 2008-09-23 08:02 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; Brent Austin <brent1a@yahoo.com>; +Cc: Zoltan Boszormenyi <zb@cybertec.at>; pgsql-odbc

> Brent Austin wrote:
>> That's the thing, I have unixODBC installed, it is located 
>> at /opt/local/bin that is why I need help figuring out how to get the 
>> terminal to recognize where both pg_config AND obdcinst are at during 
>> the ./configure process.  
>> PATH=$PATH:/usr/local/pgsql/bin:/opt/local/bin   should work but it's 
>> not recognizing the second part.....the odncinst part.
> 
> Try something like
> 
> export LDFLAGS=-L/opt/local/lib

Yeah, or they must be found odbc_config(unixODBC) by configure. 

unixODBC is this
hiroshi@developer:~$ which odbc_config
/usr/local/bin/odbc_config
hiroshi@developer:~$ odbc_config --libs
-L/usr/local/lib -lodbc

iODBC is this.
inet% which iodbc-config
/usr/local/bin/iodbc-config
inet% iodbc-config --libs
-L/usr/local/lib  -liodbc -liodbcinst

Brent-san, are they found from your path? 

Regards,
Hiroshi Saito




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


end of thread, other threads:[~2008-09-23 08:02 UTC | newest]

Thread overview: 17+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-09-18 18:10 compiling odbc Brent Austin <brent1a@yahoo.com>
2008-09-18 18:52 ` Tom Lane <tgl@sss.pgh.pa.us>
2008-09-18 19:15 Re: compiling odbc Brent Austin <brent1a@yahoo.com>
2008-09-18 19:18 Re: compiling odbc Brent Austin <brent1a@yahoo.com>
2008-09-19 06:35 ` Albe Laurenz <laurenz.albe@wien.gv.at>
2008-09-19 08:33 Re: compiling odbc Brent Austin <brent1a@yahoo.com>
2008-09-19 11:11 ` Albe Laurenz <laurenz.albe@wien.gv.at>
2008-09-19 11:35   ` Jeremy Faith <jfaith@cemsys.com>
2008-09-19 18:25 Re: compiling odbc Brent Austin <brent1a@yahoo.com>
2008-09-19 20:11 ` Tom Lane <tgl@sss.pgh.pa.us>
2008-09-19 22:49 Re: compiling odbc Brent Austin <brent1a@yahoo.com>
2008-09-22 09:06 ` Jeremy Faith <jfaith@cemsys.com>
2008-09-22 10:01 Re: compiling odbc Brent Austin <brent1a@yahoo.com>
2008-09-22 10:36 ` Zoltan Boszormenyi <zb@cybertec.at>
2008-09-22 17:28 Re: compiling odbc Brent Austin <brent1a@yahoo.com>
2008-09-23 07:48 ` Peter Eisentraut <peter_e@gmx.net>
2008-09-23 08:02   ` Hiroshi Saito <z-saito@guitar.ocn.ne.jp>

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