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

initdb fail when setup Postgresql-7.4.5 with Cygwin on Windows 2000 (p)

From: "Tong Shen" <shntong(at)hotmail(dot)com>
To: pgsql-cygwin(at)postgresql(dot)org
Cc: shntong(at)hotmail(dot)com, gvwilson(at)third-bit(dot)com
Subject: initdb fail when setup Postgresql-7.4.5 with Cygwin on Windows 2000 (p)
Date: 2005-01-05 19:33:10
Message-ID: BAY24-F19D9FBA58DE4FB0A955397A8920@phx.gbl (view raw or flat)
Thread:
Lists: pgsql-cygwin
Hi,

I encounter a initial database problem.

The procedure I did is as following:
1. Download and setup Cygwin
2. Download the Cygipc-2.03-2.tar.bz2  file and put it under D:\Cygwin\.  
Then I use "tar jxvf cygipc-2.03.2.tar.bz2 " to unpack the file. It seems 
the unpack automaticly installed cygipc
3. Download the postgresql-7.4.5.tar and use winzip to unpack it into 
D:\cygwin\usr\src\
4. I also download python-2.4 into D:\cygwin\usr\src
5. I install python first
6. Then I install the postgresql-7.4.5 with ./configure --with-python  
------> make ------>make install
7. I issue the command "ipc-daemon2 &"
8. I then try to initialize the database with following command: 
"/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data"
Step 8 give me the following error:
The files belonging to this database system will be owned by user 
"TONGTONG".
This user must also own the server process.

The database cluster will be initialized with locale C.

creating directory /usr/local/pgsql/data... ok
creating directory /usr/local pgsql/data/base... ok
creating directory /usr/local/pgsql/data/global... ok
creating directory /usr/local/pgsql/data/pg_xlog... ok
creating dirctory /usr/local/pgsql/data/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating configuration files... ok
creating template1 database in /usr/localpgsql/data/base/1... FATAL:  
semctl<89, 16, SETVAL, 536> failed: Invalid argument

initdb: failed
initdb: removing data directory "/usr/local/pgsql/data"

I am running the cygwin on windows 2000
Could anyone tell me what was wrong with the setting up procedure?

Thank you.
Happy New Year

Tong Shen



Responses

pgsql-cygwin by date

Next:From: Reini UrbanDate: 2005-01-05 21:55:03
Subject: Re: initdb fail when setup Postgresql-7.4.5 with Cygwin
Previous:From: roblamDate: 2005-01-02 19:34:03
Subject: Re: pgsql 8.0 on win2000 server error 2203

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