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@howto.com.br

Search Discussions

  • Andre Antonio Parmeggiani at Feb 29, 2000 at 4:31 pm
    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@howto.com.br

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-ports @
categoriespostgresql
postedFeb 29, '00 at 3:27p
activeFeb 29, '00 at 4:31p
posts2
users1
websitepostgresql.org
irc#postgresql

1 user in discussion

Andre Antonio Parmeggiani: 2 posts

People

Translate

site design / logo © 2022 Grokbase