Trouble installing PostgreSQL

Vincent Habchi vince at macports.org
Mon Dec 10 01:19:24 PST 2012


Le 10 déc. 2012 à 08:46, Ryan Schmidt <ryandesign at macports.org> a écrit :

>> sudo sysctl -w kern.sysv.shmmax=1073741824
>> sudo sysctl -w kern.sysv.shmall=1073741824
> 
> What does that do?

This increases the contents of shared memory available to userland processes using System V semantics. The last line should *not* be a size in bytes, but a size in pages (= 4,096 bytes). I had to do that too, the default values happens to be slightly undersized, especially when you need to support more than a few clients.

But the problem of Behrang (now, that’s a Persian name, isn’t it?) is not related to that. It is caused by using sudo from a nonexistent working directory (i.e. “.”), probably because it was deleted while installing postgresql92. Try doing “cd” first, then all the other commands.

Vincent


More information about the macports-users mailing list