I have an old Mac Mini that I'd like to put up a low-yield Rails app onto to learn about the back end. I appear to have successfully used homebrew to install postgresql and am failing at the initdb stage:

initdb /usr/local/pgsql/data/
FATAL ...  Failed system call was shmget(key=1, size=1900544, 03600)

OK, reading up on stackoverflow and here points me to creating a conf file:

sudo vi /etc/sysctl.conf

kern.sysv.shmmax=4194304
kern.sysv.shmmin=1
kern.sysv.shmmni=32
kern.sysv.shmseg=8
kern.sysv.shmall=65536

Rebooting the Leopard machine, I attempt to redo the initdb command above and it appears that the value I put in the conf file is not anything above.

sysctl kern.sysv.shmmax => 4194304

So, to my untrained eye, it appears that my shared memory conf file is not working? What am I not understanding?

link|improve this question
So you set kern.sysv.shmmax to 4194304, reboot the machine and then check its value and it's 4194304? – Milen A. Radev Dec 30 '11 at 17:49
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.