Skip site navigation (1) Skip section navigation (2)

Darwin/MacOSX 10.1.1 newbie

From: Nathan Wilson <velosa(at)cinenet(dot)net>
To: pgsql-ports(at)postgresql(dot)org
Subject: Darwin/MacOSX 10.1.1 newbie
Date: 2001-11-17 16:23:36
Message-ID: Pine.GSO.3.95.1011117081311.4946B-100000@hollywood.cinenet.net (view raw or flat)
Thread:
Lists: pgsql-ports
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(at)cinenet(dot)net



Responses

pgsql-ports by date

Next:From: Tegge, BerndDate: 2001-11-19 16:23:39
Subject: Re: Regression fails on Alpha True64 V5.0 for
Previous:From: Tom LaneDate: 2001-11-16 19:01:43
Subject: Re: Regression fails on Alpha True64 V5.0 for yesterdays cvs

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group