Monday, 28 February 2011

PostgreSQL + PostGIS

  • brew install postgres
  • add the following to .bash_profile:
    export PATH=$PATH:/usr/local/pgsql/bin
    export PGDATA=/usr/local/pgsql/data
  • mkdir /usr/local/pgsql
    mkdir /usr/local/pgsql/data
  • brew install postgis
  • restart the console, to load the new path & etc
  • pg_ctl initdb
  • createdb test
Is it working?
It's working! <3

No comments:

Post a Comment