From: | Andre Antonio Parmeggiani <aap(at)howto(dot)com(dot)br> |
---|---|
To: | pgsql-ports(at)postgresql(dot)org |
Subject: | IPC problems with Linux 2.0.36 |
Date: | 2000-02-29 15:18:06 |
Message-ID: | Pine.LNX.3.96.1000229121540.2631A-100000@ns1.howto.com.br |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
Hi All,
Im trying to access the archives without success :(
Sorry if a common question...
Well, Im trying to run postgres 6.5.3 or 7Beta1 on my 2.0.36 linux.
server.log returns :
IpcMemoryCreate: shmget failed (Invalid argument) key=5432001,
size=1063936, per
mission=600
FATAL 1: ShmemCreate: cannot create region
In the FAQ_Linux I found :
3.5) Why do I get an error like:
IpcMemoryCreate: memKey=155356396 , size=760632 ,
permission=384IpcMemoryCreate: shmget(..., create, ...)
failed: Invalid argument
You haven't build IPC support into your Linux kernel. You
will have to rebuild the kernel and switch on this option.
BUT, my kernel was built with IPC support !!
This silly program works fine :
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
void main(void)
{
int shmid, result;
shmid = shmget(IPC_PRIVATE, 1024 * 1024, (SHM_R | SHM_W));
printf("shmid = %d\n",shmid);
result = shmctl(shmid, IPC_RMID, 0);
printf("result = %d\n",result);
}
shmid = 2305
result = 0
Whats wrong ?
Any suggestions ??
Thanks in Advance,
Andre
--
Andre A. Parmeggiani
aap(at)howto(dot)com(dot)br
From | Date | Subject | |
---|---|---|---|
Next Message | Andre Antonio Parmeggiani | 2000-02-29 16:22:35 | IPC problems with Linux 2.0.36 |
Previous Message | Elmar.Haneke | 2000-02-29 13:59:08 | Re: [PORTS] initdb problem on NT with 7.0 |