From: Dave M <dave@consultant.com>
To: pgsql-admin@postgresql.org
Subject: Trouble installing on XP home
Date: Sat, 14 Jan 2006 20:18:49 -0500
Message-ID: <20060115011849.5EDE483C0F@ws1-1.us4.outblaze.com> (raw)
I'm trying to install postgresql on my laptop, windows XP home edition sp2.
can't install as a service: I either have too much permission or not enough...
Here are the steps I performed and the generated messages:
1)I ran the install program (postgresql-8.1)
the data directory chosen is a folder located in a NTFS logical drive (F:\PostgreSQL\), the remainder of the drive being of FAT type.
error message: "Failed to run initdb: 1!"
the initdb log reads as follows:
------------------------------------------------------------------------------------------------
The files belonging to this database system will be owned by user "postgresusr".
This user must also own the server process.
The database cluster will be initialized with locale C.
fixing permissions on existing directory F:/PostgreSQL ... initdb: could not change permissions of directory "F:/PostgreSQL": Permission denied
------------------------------------------------------------------------------------------------
2) I ran the install again, but this time uncheck 'install as service'
I opened a Command Prompt and executed the following:
cd \program files\postgresql\8.1\bin
initdb --locale=C --username=postgres -W -A md5 -E UNICODE -D f:\postgresql
I get the following:
------------------------------------------------------------------------------------
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale C.
fixing permissions on existing directory f:/postgresql ... ok
creating directory f:/postgresql/global ... ok
creating directory f:/postgresql/pg_xlog ... ok
creating directory f:/postgresql/pg_xlog/archive_status ... ok
creating directory f:/postgresql/pg_clog ... ok
creating directory f:/postgresql/pg_subtrans ... ok
creating directory f:/postgresql/pg_twophase ... ok
creating directory f:/postgresql/pg_multixact/members ... ok
creating directory f:/postgresql/pg_multixact/offsets ... ok
creating directory f:/postgresql/base ... ok
creating directory f:/postgresql/base/1 ... ok
creating directory f:/postgresql/pg_tblspc ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 50
creating configuration files ... ok
creating template1 database in f:/postgresql/base/1 ...
Execution of PostgeSQL by a user with administrative permissions is not permitted.
The server must be started under an unpriviledged user ID to prevent possible system security compromises. See the documentation for more information on how to properly start the server.
child process was terminated by signal 1
initdb: removing contents of data directory "f:/postgresql"
---------------------------------------------------------------------------------------
3)so I try the following command:
runas /user:postgres cmd
then run initdb again as previously and get the following:
---------------------------------------------------------------------------------------
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale C.
fixing permissions on existing directory f:/postgresql ... initdb: could not change permissions of directory "F:/PostgreSQL": Permission denied'
---------------------------------------------------------------------------------------
I had no trouble installing on Win XP Pro on my desktop, but am stumped on XPhome.
Can anyone push me in the right direction?
Thanks for your time
:-)Dave
--
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: dave@consultant.com
Subject: Re: Trouble installing on XP home
In-Reply-To: <20060115011849.5EDE483C0F@ws1-1.us4.outblaze.com>
References: <20060115011849.5EDE483C0F@ws1-1.us4.outblaze.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox