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

Re: initdb fail when setup Postgresql-7.4.5 with Cygwin

From: Reini Urban <rurban(at)x-ray(dot)at>
To: Tong Shen <shntong(at)hotmail(dot)com>
Cc: pgsql-cygwin(at)postgresql(dot)org, gvwilson(at)third-bit(dot)com
Subject: Re: initdb fail when setup Postgresql-7.4.5 with Cygwin
Date: 2005-01-05 21:55:03
Message-ID: 41DC6237.6000709@x-ray.at (view raw or flat)
Thread:
Lists: pgsql-cygwin
Tong Shen schrieb:
> 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 

why don't you read the docs before installing the cygipc package?

1. less /usr/share/doc/Cygwin/postgresql*
2. postgresql-7.4.5 uses cygserver and not cygipc anymore.
3. cygwin packages are installed via http://cygwin.com/setup.exe

if you have to use the src package, remove cygipc und rebuild or
remove cygserver and rebuild.
when the postgresql configure sees cygipc it will use that.

or (preferred) just install the postgresql, cygwin and python binary 
packages.

> 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?
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

In response to

pgsql-cygwin by date

Next:From: Randy YatesDate: 2005-01-15 13:55:30
Subject: problem with initdb
Previous:From: Tong ShenDate: 2005-01-05 19:33:10
Subject: initdb fail when setup Postgresql-7.4.5 with Cygwin on Windows 2000 (p)

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