Subject: First try of pgsql start complains "initdb: unknown option -- m"
To: None <netbsd-help@netbsd.org>
From: Gan Uesli Starling <alias@starling.us>
List: netbsd-help
Date: 10/02/2005 19:51:55
Trying out PostgreSQL for the very first time. I
get an error when I try this for an initial
experimental run...
baal: {16} sudo /etc/rc.d/pgsql start &
[1] 1245
baal: {17} Initializing PostgreSQL databases.
initdb: unknown option -- m
Try "initdb --help" for more information.
[1] Exit 1 sudo /etc/rc.d/pgsql start
baal: {17}
...so I next enquire thus...
baal: {17} initdb --help
initdb initializes a PostgreSQL database cluster.
Usage:
initdb [OPTION]... [DATADIR]
Options:
[-D, --pgdata=]DATADIR location for this database cluster
-E, --encoding=ENCODING set default encoding for new databases
--locale=LOCALE initialize database cluster with given locale
--lc-collate, --lc-ctype, --lc-messages=LOCALE
--lc-monetary, --lc-numeric, --lc-time=LOCALE
initialize database cluster with given locale
in the respective category (default taken from
environment)
--no-locale equivalent to --locale=C
-A, --auth=METHOD default authentication method for local
connections
-U, --username=NAME database superuser name
-W, --pwprompt prompt for a password for the new superuser
--pwfile=FILE read password for the new superuser from file
-?, --help show this help, then exit
-V, --version output version information, then exit
Less commonly used options:
-d, --debug generate lots of debugging output
-s, --show show internal settings
-L DIRECTORY where to find the input files
-n, --noclean do not clean up after errors
If the data directory is not specified, the environment variable PGDATA
is used.
Report bugs to <pgsql-bugs@postgresql.org>.
baal: {18}
...and sure enough, there is no option 'm'. Anybody know what gives?
My packages for NetBSD 2.0.2 are these...
baal: {18} pkg_info | grep sql
postgresql80-client-8.0.3 PostgreSQL database client programs
postgresql80-server-8.0.3 PostgreSQL database server programs
postgresql80-8.0.3 Robust, next generation, object-relational DBMS
baal: {19}
TIA,
Gan Starling
Kalamazoo MI USA