public inbox for [email protected]
help / color / mirror / Atom feedFrom: Rich Morin <[email protected]>
To: [email protected]
Subject: INSTALL file nits
Date: Wed, 28 Sep 2005 18:29:07 -0700
Message-ID: <p06230927bf60f0d716be@[192.168.254.205]> (raw)
I just grabbed a copy of PostgreSQL from
http://www.apple.com/downloads/macosx/unix_open_source/postgresql.html
and installed it on my Mac OS X (Tiger; 10.4.2) machine. I followed the
"Short Version" in the INSTALL file until I ran into problems, then did
some workarounds, as discussed below. Perhaps this file should be made
a bit more explicit or an INSTALL.OSX file could be generated...
./configure
No reported problems.
gmake
No such command, but I ran "make --version" and saw that it
was GNU Make, so I used it. No reported problems.
su
This command requires a root password, which does not exist.
OSX uses "sudo -s" for this sort of thing.
gmake install
Used make; no reported problems.
adduser postgres
No such command. I considered using System Preferences > Accounts
to add a user, but this seemed like a rather bogus approach, as it
would put a user in the Login dialog (unlike lp, postfix, ...). I
found a (slightly dated) note from Apple, however, that suggested
just this approach, so I gave it a try.
http://developer.apple.com/internet/opensource/postgres.html
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
No reported problems.
su - postgres
No reported problems (when run under sudo).
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
No reported problems, but the last command left me at a prompt
with no particular instructions as to what I should do next.
-r
--
email: [email protected]; phone: +1 650-873-7841
http://www.cfcl.com - Canta Forda Computer Laboratory
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
view thread (8+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: INSTALL file nits
In-Reply-To: <p06230927bf60f0d716be@[192.168.254.205]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox