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

Re: unable to initdb under cygwin

From: mike g <mike(at)thegodshalls(dot)com>
To: nasr(dot)laili(at)tin(dot)it
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: unable to initdb under cygwin
Date: 2004-07-17 04:23:28
Message-ID: 1090038208.14010.19.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-cygwin
I still have not been able to overcome this problem(haven't spent much
time on it either to be truthful) but according to the new readmes it
might be helpful to change a value in cygserver.conf file.

I get that error while trying to start up postgres when I compile from
source code on XP.  Using the postgresql binaries from cygwin don't give
me that error.

So if you tried to compile on your own try the pre-compiled packages.

Mike
On Sun, 2004-07-11 at 19:16, nasr(dot)laili(at)tin(dot)it wrote:
> Hi all!
> I'm having the same kind of trouble I read about a few posts in this
> list, i.e. :... FATAL:  shmat(id=3538944) failed: Invalid argument
> with all that follows. 
> I cygchecked the system and got only one error (see below), which I
> don't deem responsible for that. I tried cygrunsrv with worst results.
> Started both cygserver and ipc-daemon2 with more or less the same error.
> Here follows some information which might help the more knoledgeable
> among you to understand better what is going on:
> 
> Cygwin Configuration Diagnostics
> Current System Time: Mon Jul 12 01:16:38 2004
> 
> Windows 98 SE Ver 4.10 Build 2222 
> 
> Path:	C:\cygwin\usr\local\bin
> 	C:\cygwin\bin
> 	C:\cygwin\bin
> 	C:\cygwin\usr\X11R6\bin
> 	c:\WINDOWS
> 	c:\WINDOWS\COMMAND
> 	C:\cygwin\bin
> 	C:\cygwin\usr\sbin
> 	C:\cygwin\bin
> 	C:\cygwin\sbin
> 
> Output from C:\cygwin\bin\id.exe (nontsec)
> UID: 500(admin) GID: 544(all)
> 544(all)
> 
> Output from C:\cygwin\bin\id.exe (ntsec)
> UID: 500(admin) GID: 544(all)
> 544(all)
> 
> SysDir: C:\WINDOWS\SYSTEM
> WinDir: C:\WINDOWS
> 
> CYGWIN = `server'
> HOME = `C:\cygwin\home\admin'
> LD_LIBRARY_PATH = `C:\cygwin\lib\postgresql\:\lib\postgresql'
> MAKE_MODE = `unix'
> PWD = `/home/admin'
> USER = `admin'
> [ ... ]
> Found: C:\cygwin\bin\awk.exe
> [ ... ]
> Not Found: cpp (good!)
> Not Found: gcc
> Not Found: gdb
> Not Found: ld
> Not Found: make
> [ ... ]
>   330k 2004/02/09 C:\cygwin\bin\cyghttpd.dll
> [ ... ]
> 
> cygcheck: dump_sysinfo: GetVolumeInformation() failed: 5
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> # This is the 'ps' result, after starting cygserver:
> 
>       PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
>    353937       1  353937 4294613359  con  500 00:47:34 /usr/bin/BASH
>    349821  353937  349821 4294615323  con  500 00:54:22 /USR/SBIN/CYGSERVER
>    282789  353937  282789 4291042255  con  500 01:06:35 /usr/bin/PS
> 
> # and the output of 'initdb -D $PGDATA -W -E LATIN1:
> 
> The files belonging to this database system will be owned by user "admin".
> This user must also own the server process.
> 
> The database cluster will be initialized with locale C.
> 
> creating directory /usr/share/postgresql/data... ok
> creating directory /usr/share/postgresql/data/base... ok
> creating directory /usr/share/postgresql/data/global... ok
> creating directory /usr/share/postgresql/data/pg_xlog... ok
> creating directory /usr/share/postgresql/data/pg_clog... ok
> selecting default max_connections... 10
> selecting default shared_buffers... 50
> creating configuration files... ok
> creating template1 database in /usr/share/postgresql/data/base/1... FATAL:  shmat(id=3538944) failed: Invalid argument
> 
> initdb: failed
> initdb: removing data directory "/usr/share/postgresql/data"
> 
> # And again ...
> [ ... cut ... ]
> creating template1 database in /usr/share/postgresql/data/base/1... FATAL:  shmat(id=1179648) failed: Invalid argument
> 
> initdb: failed
> initdb: removing data directory "/usr/share/postgresql/data"
> 
> -------------
> Thank you for tour attention,
> 	Ennio
> 
> 
> --
> [Perche' usare Win$ozz (dico io) se ..."anche uno sciocco sa farlo.     \\?//
>  Fa' qualche cosa di cui non sei capace!"   (diceva Henry Miller) ]     (|)
> [Why to use Win$ozz (I say) if ... "even a fool can do that.             )=(
>  Do something you aren't good at!" (used to say Henry Miller) ]
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

In response to

pgsql-cygwin by date

Next:From: mike gDate: 2004-07-17 04:24:23
Subject: Re: initdb failed
Previous:From: mike gDate: 2004-07-17 04:19:46
Subject: Re: xp configuring problem

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