Trouble installing PostgreSQL

Alejandro Imass aimass at yabarana.com
Sun Dec 9 20:20:00 PST 2012


On Sun, Dec 9, 2012 at 10:29 PM, Behrang Saeedzadeh <behrangsa at gmail.com> wrote:
> This is happening on Mountain Lion. After installing postgresql92-server, I
> followed the instructions and I am getting this error:
>

remove it and use these 2 commands _before_ trying install again

sudo sysctl -w kern.sysv.shmmax=1073741824
sudo sysctl -w kern.sysv.shmall=1073741824



If it fixes your problem you can make the above changes permanent by
adding these lines to the file /Library/LauchDaemons/sysctl.plist
Create the file with the following content if it does not exist:

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  <plist version="1.0">
  <dict>
   <key>Label</key>
   <string>sysctl</string>
   <key>ProgramArguments</key>
   <array>
   <string>/usr/sbin/sysctl</string>
   <string>-w</string>
   <string>kern.sysv.shmmax=1073741824</string>
   <string>kern.sysv.shmall=1073741824</string>
   </array>
   <key>RunAtLoad</key>
   <true/>
  </dict>
  </plist>


More information about the macports-users mailing list