On Sun, Apr 04, 2004 at 03:15:03PM +0200, JC Jan Christensen wrote:
> and downloaded the file :
> and installed the cygipc-daemon in the file.
The above is a bad thing to do. See below for why.
> I have downloaded the file postgresql-7.4.2.tar.gz and unpacked it and
> run the following commands:
> make install
The above just built a version of PostgreSQL against cygserver not
> I have made a shell-script that contains the following lines:
> ipc-daemon2 &
You are running cygipc not cygserver.
> initdb -D /usr/local/pgsql/data
> postmaster -i -n -d 2 -D /usr/local/pgsql/data
> When I run this shell-script I get the following error-message from
> initdb :
> FATAL: could not create shared memory
> segment: Function not implemented
> DETAIL: Failed system call was
> shmget(key=1, size=1081344, 03600)
> initdb: failed
> What is wrong here ???????????
You are building against cygserver and running against cygipc. This is
guaranteed not to work.
> How can I solve this problem ????????????
Build and run against the same IPC implementation.
My suggestion is to install both the cygipc and postgresql packages via
Cygwin's setup.exe instead of manually installing cygipc and trying to
build your own PostgreSQL version.
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
In response to
pgsql-cygwin by date
|Next:||From: Jason Tishler||Date: 2004-04-06 14:39:02|
|Subject: Re: Help postmaster in Postgresql... shmdt failed...|
|Previous:||From: Jon Mountjoy||Date: 2004-04-04 21:43:11|
|Subject: Re: Multiple clean installs: get same error of "invalid length of startup packet"|