postgres.h location?

Started by Scott Frankelover 21 years ago6 messagesgeneral
Jump to latest
#1Scott Frankel
leknarf@pacbell.net

I'm looking for the file postgres.h in my recent install of
postgres-7.4.5 on
a MacOS 10.3.5 system.

I'm attempting to build PyGreSQL-3.5, which appears to require the
postgres
include dir.

My build of postgres-7.4.5 did produce an include dir,
/usr/local/pgsql/include;
but it does not contain postgres.h. Curiously, it does contain a file
called postgres_ext.h.
I'm sure they're not one-and-the-same ...

Suggestions?

Thanks in advance!
Scott

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Scott Frankel (#1)
Re: postgres.h location?

Scott Frankel <leknarf@pacbell.net> writes:

My build of postgres-7.4.5 did produce an include dir,
/usr/local/pgsql/include;
but it does not contain postgres.h.

You need to do "make install-all-headers" while installing to install
the server-side headers there.

regards, tom lane

#3Michael Fuhr
mike@fuhr.org
In reply to: Tom Lane (#2)
Re: postgres.h location?

On Wed, Oct 06, 2004 at 03:27:39PM -0400, Tom Lane wrote:

Scott Frankel <leknarf@pacbell.net> writes:

My build of postgres-7.4.5 did produce an include dir,
/usr/local/pgsql/include;
but it does not contain postgres.h.

You need to do "make install-all-headers" while installing to install
the server-side headers there.

BTW, did this just change in 8.0? The latest CVS sources no longer
have an install-all-headers target (GNUmakefile.in 1.41); it looks
like the install target installs all headers now.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Michael Fuhr (#3)
Re: postgres.h location?

Michael Fuhr <mike@fuhr.org> writes:

On Wed, Oct 06, 2004 at 03:27:39PM -0400, Tom Lane wrote:

You need to do "make install-all-headers" while installing to install
the server-side headers there.

BTW, did this just change in 8.0?

There was a proposal to change it, but I dunno if it was committed.

regards, tom lane

#5Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#4)
Re: postgres.h location?

The option install-all-headers was removed in the past few days because
install by default now installs all headers.

---------------------------------------------------------------------------

Tom Lane wrote:

Michael Fuhr <mike@fuhr.org> writes:

On Wed, Oct 06, 2004 at 03:27:39PM -0400, Tom Lane wrote:

You need to do "make install-all-headers" while installing to install
the server-side headers there.

BTW, did this just change in 8.0?

There was a proposal to change it, but I dunno if it was committed.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#6Scott Frankel
leknarf@pacbell.net
In reply to: Bruce Momjian (#5)
Re: postgres.h location?

Default now installs all headers ... with v8.0 of postgres, right?

New to postgres (and db's for that matter) I just downloaded the
tarball for postgres-7.4.5. Invoking the make install-all-headers
cmd did indeed produce the servers subdir under include.

Unfortunately, my attempts to build PyGreSQL still return a
crudjillion error msgs. But that's a matter for another list ;)

Thanks for the feedback -
Scott

On Oct 6, 2004, at 3:26 PM, Bruce Momjian wrote:

Show quoted text

The option install-all-headers was removed in the past few days because
install by default now installs all headers.

-----------------------------------------------------------------------
----

Tom Lane wrote:

Michael Fuhr <mike@fuhr.org> writes:

On Wed, Oct 06, 2004 at 03:27:39PM -0400, Tom Lane wrote:

You need to do "make install-all-headers" while installing to
install
the server-side headers there.

BTW, did this just change in 8.0?

There was a proposal to change it, but I dunno if it was committed.

regards, tom lane

---------------------------(end of
broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

-- 
Bruce Momjian                        |  http://candle.pha.pa.us
pgman@candle.pha.pa.us               |  (610) 359-1001
+  If your life is a hard drive,     |  13 Roberts Road
+  Christ can be your backup.        |  Newtown Square, Pennsylvania  
19073

---------------------------(end of
broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html