Thread: Error when I try to run initdb under cygwin. Plz help me...
Hi all...
I'm newbie with cygwin but I'm receiving a error message when I try to run
'initdb' here...
Look:
I'm using win98 and I want to run postgresql...
I installed cygwin from Internet and everything goes fine...
I open a bash shell and run 'ipc-daemon &'... ok...
When I run 'initdb -D /var/psql' the error:
The files belonging to this database system will be owned by user "dug".
This user must also own the server process.
The database cluster will be initialized with locale C.
fixing permissions on existing directory /var/psql... ok
creating directory /var/psql/base... ok
creating directory /var/psql/global... ok
creating directory /var/psql/pg_xlog... ok
creating directory /var/psql/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in /var/psql/base/1...
FATAL: could not create shared memory segment: Function not implemented
DETAIL: Failed system call was shmget(key=1, size=1081344, 03600).
initdb: failed
What's wrong? some package that I don't install ?
what now ?
thanx for any hint
Flávio Henrique
I'm newbie with cygwin but I'm receiving a error message when I try to run
'initdb' here...
Look:
I'm using win98 and I want to run postgresql...
I installed cygwin from Internet and everything goes fine...
I open a bash shell and run 'ipc-daemon &'... ok...
When I run 'initdb -D /var/psql' the error:
The files belonging to this database system will be owned by user "dug".
This user must also own the server process.
The database cluster will be initialized with locale C.
fixing permissions on existing directory /var/psql... ok
creating directory /var/psql/base... ok
creating directory /var/psql/global... ok
creating directory /var/psql/pg_xlog... ok
creating directory /var/psql/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in /var/psql/base/1...
FATAL: could not create shared memory segment: Function not implemented
DETAIL: Failed system call was shmget(key=1, size=1081344, 03600).
initdb: failed
What's wrong? some package that I don't install ?
what now ?
thanx for any hint
Flávio Henrique
Hi,
As far as I can see you're nearly doing everything right except that you're starting ipc-daemon (which is version 1) and you need to start ipc-daemon2.
Please install the official ipc-daemon2 package from Cygwin Setup and start that instead, and you should be all set! :-)
regards,
--Tim
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
-----Original Message-----
From: pgsql-cygwin-owner@postgresql.org [mailto:pgsql-cygwin-owner@postgresql.org]On Behalf Of Flávio Henrique
Sent: maandag 16 februari 2004 22:20
To: pgsql-cygwin@postgresql.org
Subject: [CYGWIN] Error when I try to run initdb under cygwin. Plz help me...Hi all...
I'm newbie with cygwin but I'm receiving a error message when I try to run
'initdb' here...
Look:
I'm using win98 and I want to run postgresql...
I installed cygwin from Internet and everything goes fine...
I open a bash shell and run 'ipc-daemon &'... ok...
When I run 'initdb -D /var/psql' the error:
The files belonging to this database system will be owned by user "dug".
This user must also own the server process.
The database cluster will be initialized with locale C.
fixing permissions on existing directory /var/psql... ok
creating directory /var/psql/base... ok
creating directory /var/psql/global... ok
creating directory /var/psql/pg_xlog... ok
creating directory /var/psql/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in /var/psql/base/1...
FATAL: could not create shared memory segment: Function not implemented
DETAIL: Failed system call was shmget(key=1, size=1081344, 03600).
initdb: failed
What's wrong? some package that I don't install ?
what now ?
thanx for any hint
Flávio Henrique
Tim... thanx... it works... but now I have other problem that maybe you can help again... after run 'postmaster -D /var/psql' the first messsage is: LOG: shmdt(0x846e0000) failed: Invalid argument after that others messages come, until "LOG: database system is ready" but seems that the process do not finish yet, 'cause the cursor do not appears in screen.. I must run posmaster with '&' ?? the first message (error) is real problem ? why the process do not finish? I must open other cygwin bash sheel ?? thanx Flávio Henrique ----- Original Message ----- From: Leeuw van der, Tim To: pgsql-cygwin@postgresql.org Sent: Tuesday, February 17, 2004 5:32 AM Subject: Re: [CYGWIN] Error when I try to run initdb under cygwin. Plz help me... Hi, As far as I can see you're nearly doing everything right except that you're starting ipc-daemon (which is version 1) and you need to start ipc-daemon2. Please install the official ipc-daemon2 package from Cygwin Setup and start that instead, and you should be all set! :-) regards, --Tim THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -----Original Message----- From: pgsql-cygwin-owner@postgresql.org [mailto:pgsql-cygwin-owner@postgresql.org]On Behalf Of Flávio Henrique Sent: maandag 16 februari 2004 22:20 To: pgsql-cygwin@postgresql.org Subject: [CYGWIN] Error when I try to run initdb under cygwin. Plz help me... Hi all... I'm newbie with cygwin but I'm receiving a error message when I try to run 'initdb' here... Look: I'm using win98 and I want to run postgresql... I installed cygwin from Internet and everything goes fine... I open a bash shell and run 'ipc-daemon &'... ok... When I run 'initdb -D /var/psql' the error: The files belonging to this database system will be owned by user "dug". This user must also own the server process. The database cluster will be initialized with locale C. fixing permissions on existing directory /var/psql... ok creating directory /var/psql/base... ok creating directory /var/psql/global... ok creating directory /var/psql/pg_xlog... ok creating directory /var/psql/pg_clog... ok selecting default max_connections... 10 selecting default shared_buffers... 50 creating configuration files... ok creating template1 database in /var/psql/base/1... FATAL: could not create shared memory segment: Function not implemented DETAIL: Failed system call was shmget(key=1, size=1081344, 03600). initdb: failed What's wrong? some package that I don't install ? what now ? thanx for any hint Flávio Henrique
Hi Flavio, Postmaster doesn't detach itself from stdin/stdout. You want to use pg_ctl, which will start you the postmaster in the background. About the shmdt error which you get -- I have no idea how harmful it is! Sorry, but I can't help you there. regards, --Tim THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intendedrecipient. If you received this in error, please contact the sender and delete the e-mail and its attachments fromall computers. -----Original Message----- From: Flávio Henrique [mailto:flavinhohenrique@terra.com.br] Sent: dinsdag 17 februari 2004 13:01 To: pgsql-cygwin@postgresql.org Cc: Leeuw van der, Tim Subject: Re: [CYGWIN] Error when I try to run initdb under cygwin. Plz help me... Tim... thanx... it works... but now I have other problem that maybe you can help again... after run 'postmaster -D /var/psql' the first messsage is: LOG: shmdt(0x846e0000) failed: Invalid argument after that others messages come, until "LOG: database system is ready" but seems that the process do not finish yet, 'cause the cursor do not appears in screen.. I must run posmaster with '&' ?? the first message (error) is real problem ? why the process do not finish? I must open other cygwin bash sheel ?? thanx Flávio Henrique