nativeInstallerpostgresql

Debug common issues on OS X

IMPORTANT: If you are using OS X and you upgraded to OS X 10.11 “El Capitan”, perform the following steps in order to continue using PostgreSQL. This is required because of the new System Integrity Protection feature.

Follow these steps:

  • Navigate to your stack installation directory (eg. /Applications/mappstack-VERSION/) and stop the servers using the graphical manager.

  • Rename the postgres binary to postgres.bin. When using the terminal, this is the command:

    $ mv postgresql/bin/postgres postgresql/bin/postgres.bin
    
  • Create a new file in the same location named postgres with the following content:

    #!/bin/sh
    
    . /Applications/mappstack-VERSION/scripts/setenv.sh
    
    exec /Applications/mappstack-VERSION/postgresql/bin/postgres.bin "$@"
    
  • Change the permissions of the new file:

    $ chmod 755 postgresql/bin/postgres
    
  • Restart the server using the graphical manager.

Last modification September 6, 2018