pardonfiu
09-02-2006, 01:16
Hello all,
I want to install PostgreSQL on the router (WL-500GX) with ipkg. Everything goes well until creating the database cluster using
initdb -d -L /opt/share/postgresql -D /opt/var/pgsql/data
I've searched for this issue and found the same questions but no answer. I've digged a bit more into the problem.
If started with the parameter -d, debug mode shows some infos:
Running in debug mode.
VERSION=8.0.6
PGDATA=/opt/var/pgsql/data
share_path=/opt/share/postgresql
PGPATH=/opt/bin
POSTGRES_SUPERUSERNAME=postgres
POSTGRES_BKI=
POSTGRES_DESCR=
POSTGRESQL_CONF_SAMPLE=
PG_HBA_SAMPLE=
PG_IDENT_SAMPLE=
initdb: file "" does not exist
This means you have a corrupted installation or identified
the wrong directory with the invocation option -L.
The required file is "". Of course it is empty because the last few 'variables' have no value, thus it can't find the sample files and can't create the DB cluster.
Nevertheless, the files reside in the /opt/share/postgresql directory.
How can I set those missing variables to get initdb to work? Does anyone have an idea?
Thank you for your help!
I want to install PostgreSQL on the router (WL-500GX) with ipkg. Everything goes well until creating the database cluster using
initdb -d -L /opt/share/postgresql -D /opt/var/pgsql/data
I've searched for this issue and found the same questions but no answer. I've digged a bit more into the problem.
If started with the parameter -d, debug mode shows some infos:
Running in debug mode.
VERSION=8.0.6
PGDATA=/opt/var/pgsql/data
share_path=/opt/share/postgresql
PGPATH=/opt/bin
POSTGRES_SUPERUSERNAME=postgres
POSTGRES_BKI=
POSTGRES_DESCR=
POSTGRESQL_CONF_SAMPLE=
PG_HBA_SAMPLE=
PG_IDENT_SAMPLE=
initdb: file "" does not exist
This means you have a corrupted installation or identified
the wrong directory with the invocation option -L.
The required file is "". Of course it is empty because the last few 'variables' have no value, thus it can't find the sample files and can't create the DB cluster.
Nevertheless, the files reside in the /opt/share/postgresql directory.
How can I set those missing variables to get initdb to work? Does anyone have an idea?
Thank you for your help!