Thread: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

[Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
Brent Austin
Date:
Trying to install psqlodbc-08.03.0300 on Mac gets me this while I configure:

client-6X-XXX-17-X14:~ brent1a$ cd /psqlodbc-08.03.0300 
client-6X-XXX-17-X14:psqlodbc-08.03.0300 brent1a$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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-6X-XXX-17-X14:psqlodbc-08.03.0300 brent1a$

Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
"Grzegorz Jaśkiewicz"
Date:
On Tue, Oct 28, 2008 at 12:22 PM, Brent Austin <brent1a@yahoo.com> wrote:
Trying to install psqlodbc-08.03.0300 on Mac gets me this while I configure:

client-6X-XXX-17-X14:~ brent1a$ cd /psqlodbc-08.03.0300 
client-6X-XXX-17-X14:psqlodbc-08.03.0300 brent1a$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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-6X-XXX-17-X14:psqlodbc-08.03.0300 brent1a$

it is stated there in simple language - pg_config not found. Have you actually tried to run that command 'by hand' ? if not, update your PG_CONFIG or PATH
--
GJ

Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
Brent Austin
Date:
I've tried updating the path but it doesn't do anything. I'm not super savvy with unix bash....how might I "run pg-config by hand"?
-thanks


From: Grzegorz Jaśkiewicz <gryzman@gmail.com>
To: Brent Austin <brent1a@yahoo.com>
Cc: pgsql-general@postgresql.org
Sent: Tuesday, October 28, 2008 7:50:48 AM
Subject: Re: [GENERAL] [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

On Tue, Oct 28, 2008 at 12:22 PM, Brent Austin <brent1a@yahoo.com> wrote:
Trying to install psqlodbc-08.03.0300 on Mac gets me this while I configure:

client-6X-XXX-17-X14:~ brent1a$ cd /psqlodbc-08.03.0300 
client-6X-XXX-17-X14:psqlodbc-08.03.0300 brent1a$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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-6X-XXX-17-X14:psqlodbc-08.03.0300 brent1a$

it is stated there in simple language - pg_config not found. Have you actually tried to run that command 'by hand' ? if not, update your PG_CONFIG or PATH
--
GJ


Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
"Grzegorz Jaśkiewicz"
Date:


just type in 'pg_config' ,without quotes in terminal and see if it runs. if not, you gotta find it. For instance by using:
find /usr -name pg_config
than if it does come up with whereabouts of it - stick it into PG_CONFIG env variable:
export PG_CONFIG=/path/path/pg_config
and rerun configure in the same terminal (important, the env variable PG_CONFIG will only be seen in that scope/terminal).

Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
John DeSoi
Date:
On Oct 28, 2008, at 8:22 AM, Brent Austin wrote:

> configure: error: pg_config not found (set PG_CONFIG environment
> variable)

How did you do your PostgreSQL install? In the normal install from
source, pg_config is in the bin folder with the rest of the usual
PostgreSQL executables.




John DeSoi, Ph.D.





Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
"Albe Laurenz"
Date:
Brent Austin wrote:
> Trying to install psqlodbc-08.03.0300 on Mac gets me this
> while I configure:
>
>
> client-6X-XXX-17-X14:~ brent1a$ cd /psqlodbc-08.03.0300
> client-6X-XXX-17-X14:psqlodbc-08.03.0300 brent1a$ sudo ./configure
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> 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-6X-XXX-17-X14:psqlodbc-08.03.0300 brent1a$

Did you set PG_CONFIG?

Yours,
Laurenz Albe

Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
Brent Austin
Date:
Configure still fails....I've tried everything I can figure----


Last login: Wed Oct 29 02:58:10 on ttys000
client-6X-1XX-17-XX4:~ brent1a$ cd /psqlodbc-08.03.0300 
client-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ sudo ./configure
Password:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ /usr/local/pgsql/bin/pg_config 
BINDIR = /usr/local/pgsql/bin
DOCDIR = /usr/local/pgsql/doc
INCLUDEDIR = /usr/local/pgsql/include
PKGINCLUDEDIR = /usr/local/pgsql/include
INCLUDEDIR-SERVER = /usr/local/pgsql/include/server
LIBDIR = /usr/local/pgsql/lib
PKGLIBDIR = /usr/local/pgsql/lib
LOCALEDIR = 
MANDIR = /usr/local/pgsql/man
SHAREDIR = /usr/local/pgsql/share
SYSCONFDIR = /usr/local/pgsql/etc
PGXS = /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = 
CC = gcc -no-cpp-precomp
CPPFLAGS = 
CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
CFLAGS_SL = 
LDFLAGS = 
LDFLAGS_SL = 
LIBS = -lpgport -lz -lreadline -lm 
VERSION = PostgreSQL 8.3.4
client-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ sudo ./configure
Password:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ export PG_CONFIG=/usr/local/pgsql/bin/pg_config
client-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ 


From: Grzegorz Jaśkiewicz <gryzman@gmail.com>
To: Brent Austin <brent1a@yahoo.com>
Cc: pgsql-general@postgresql.org
Sent: Tuesday, October 28, 2008 8:23:31 AM
Subject: Re: [GENERAL] [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300



just type in 'pg_config' ,without quotes in terminal and see if it runs. if not, you gotta find it. For instance by using:
find /usr -name pg_config
than if it does come up with whereabouts of it - stick it into PG_CONFIG env variable:
export PG_CONFIG=/path/path/pg_config
and rerun configure in the same terminal (important, the env variable PG_CONFIG will only be seen in that scope/terminal).

Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
"Albe Laurenz"
Date:
Brent Austin wrote:

> Configure still fails....I've tried everything I can figure----

[...]

> configure: error: pg_config not found (set PG_CONFIG environment variable)

It's quite simple:

- Find out where pg_config is.
- If you don't have it, install the appropriate package.
- Make sure it's in your PATH or set PG_CONFIG.

Laurenz Albe

Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
Tom Lane
Date:
Brent Austin <brent1a@yahoo.com> writes:
> Configure still fails....I've tried everything I can figure----
> Last login: Wed Oct 29 02:58:10 on ttys000
> client-6X-1XX-17-XX4:~ brent1a$ cd /psqlodbc-08.03.0300
> client-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ sudo ./configure
> Password:
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> 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-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ /usr/local/pgsql/bin/pg_config

Putting /usr/local/pgsql/bin in your PATH would probably do it.
Or you could take the script's advice and set PG_CONFIG.

Just as an aside, I wouldn't recommend building packages as root.
You might need to do the install step that way, if you are installing
into a location that only root can write to; but not configure or
build.

            regards, tom lane

Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
Brent Austin
Date:
I could swear that is what I did......or is it not? That is why I sent a copy/paste of that mess from my terminal:
it showed that I do have PG_CONFIG installed  and it showed I did set my path.
That is why I am asking help because configure is saying I did neither when it plainly shows I did (to the best of my knowledge).

client-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ /usr/local/pgsql/bin/pg_config 
BINDIR = /usr/local/pgsql/bin
DOCDIR = /usr/local/pgsql/doc
INCLUDEDIR = /usr/local/pgsql/include
PKGINCLUDEDIR = /usr/local/pgsql/include
INCLUDEDIR-SERVER = /usr/local/pgsql/include/server
LIBDIR = /usr/local/pgsql/lib
PKGLIBDIR = /usr/local/pgsql/lib
LOCALEDIR = 
MANDIR = /usr/local/pgsql/man
SHAREDIR = /usr/local/pgsql/share
SYSCONFDIR = /usr/local/pgsql/etc
PGXS = /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = 
CC = gcc -no-cpp-precomp
CPPFLAGS = 
CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
CFLAGS_SL = 
LDFLAGS = 
LDFLAGS_SL = 
LIBS = -lpgport -lz -lreadline -lm 
VERSION = PostgreSQL 8.3.4
client-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ sudo ./configure
Password:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ export PG_CONFIG=/usr/local/pgsql/bin/pg_config
client-6X-1XX-17-XX4:psqlodbc-08.03.0300 brent1a$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
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)

From: Albe Laurenz <laurenz.albe@wien.gv.at>
To: Brent Austin *EXTERN* <brent1a@yahoo.com>; Grzegorz Jaśkiewicz <gryzman@gmail.com>
Cc: pgsql-general@postgresql.org
Sent: Wednesday, October 29, 2008 7:14:37 AM
Subject: Re: [GENERAL] [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

Brent Austin wrote:

> Configure still fails....I've tried everything I can figure----

[...]

> configure: error: pg_config not found (set PG_CONFIG environment variable)

It's quite simple:

- Find out where pg_config is.
- If you don't have it, install the appropriate package.
- Make sure it's in your PATH or set PG_CONFIG.

Laurenz Albe

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

Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300

From
Tom Lane
Date:
Brent Austin <brent1a@yahoo.com> writes:
> I could swear that is what I did......or is it not? That is why I sent a copy/paste of that mess from my terminal:
> it showed that I do have PG_CONFIG installed  and it showed I did set my path.
> That is why I am asking help because configure is saying I did neither when it plainly shows I did (to the best of my
knowledge).

Well, this is one of a number of reasons why it's a bad idea to sudo
right there ... presumably, sudo is resetting the environment to
something it considers safe.

            regards, tom lane