Usando o mac OSX Yosemite 10.10.1. Eu desinstalei e re-instalei ambos postgres e postgis com homebrew. Eu entendo que postgres está procurando no lugar errado para o arquivo de controle postgis. Também notei que o caminho 'qual psql' parece incorreto. Como / onde eu corrijo isso?
psql
(9.4.0, server 9.3.5)
ERROR: could not open extension control file "/usr/local/Cellar/postgresql/9.3.5_1/share/postgresql/extension/postgis.control": No such file or directory
encontre / usr -name postgis.control
/usr/local/Cellar/postgresql/9.4.0/share/postgresql/extension/postgis.control
qual psql
/usr/local/bin/psql
qual pg_config
/usr/local/bin/pg_config
informação de cerveja postgis
postgis: stable 2.1.5, HEAD
http://postgis.net
/usr/local/Cellar/postgis/2.1.5 (45 files, 8.6M) *
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/postgis.rb
info info postgres
postgresql: stable 9.4.0 (bottled)
http://www.postgresql.org/
Conflicts with: postgres-xc
/usr/local/Cellar/postgresql/9.4.0 (3049 files, 74M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/postgresql.rb
Ambos .bashrc e .bash_profile têm
export PGDATA='/usr/local/Cellar/postgresql/9.4.0/bin/postgres'
alias postgres-log='cd /usr/local/var/postgres/ && subl server.log'
mdfind -name "postgres" | grep -G "postgres $"
/usr/local/Cellar/postgresql/9.4.0/bin/postgres
/usr/local/var/postgres
/Users/lionelramos/macports/var/macports/sources/rsync.macports.org/release/tarballs/ports/ruby/rb-postgres
Parece que tenho uma versão local diferente de postgres, além da versão homebrew.