I think I got through the compile successfully. I had to modify the
src/makefiles/Makefile.darwin to add -flat_namespace and I removed
$(CFLAGS) from the %.so: %.o line since the flags were getting repeated.
Even so I to do one of the library links by hand.
I got the 'postmaster' process running. But when I try to do the
'createdb' it fails with:
[localhost:~] postgres% createdb testdb
pqReadData() -- backend closed the channel unexpectedly.
This probably means the backend terminated abnormally
before or while processing the request.
connection to server was lost
createdb: database creation failed
[localhost:~] postgres% psql testdb
psql: FATAL 1: Database "testdb" does not exist in the system catalog.
The log from postmaster says:
[localhost:~] postgres% /usr/local/pgsql/bin/postmaster -D
/usr/local/pgsql/data
DEBUG: database system was shut down at 2001-11-17 07:50:23 PST
DEBUG: CheckPoint record at (0, 1522656)
DEBUG: Redo record at (0, 1522656); Undo record at (0, 0); Shutdown TRUE
DEBUG: NextTransactionId: 615; NextOid: 18720
DEBUG: database system is in production state
Server process (pid 13950) exited with status 11 at Sat Nov 17 08:04:43
2001
Terminating any active server processes...
Server processes were terminated at Sat Nov 17 08:04:43 2001
Reinitializing shared memory and semaphores
DEBUG: database system was interrupted at 2001-11-17 07:51:03 PST
DEBUG: CheckPoint record at (0, 1522656)
DEBUG: Redo record at (0, 1522656); Undo record at (0, 0); Shutdown TRUE
DEBUG: NextTransactionId: 615; NextOid: 18720
DEBUG: database system was not properly shut down; automatic recovery in
progress...
DEBUG: ReadRecord: record with zero len at (0, 1522720)
DEBUG: redo is not required
DEBUG: database system is in production state
FATAL 1: Database "testdb" does not exist in the system catalog.
---------------
Oh one other thing, I created the postgres user using the standard System
Preferences panel rather than adduser since that does appear to exist
under MacOS 10. Also I did change the ownership on /usr/local/pgsql/data
(I also tried it with chowning everything under /usr/local/pgsql).
The system is a PowerBook G3 Lombard running MacOS X 10.1.1 with the 10.1
dev tools. I tried to find a mailing list archive, but wasn't successful.
I may just need a pointer to that.
I did get it up and running without a hitch under LinuxPPC on an old beige
233 PowerMac. Looks great!
Thanks in advance,
-Nathan
velosa@cinenet.net