title: How to install PostgreSQL-contrib-9.3 on Mac OSX?
body: <p>I'm trying to get PostgreSQL up and running on my MacOSX 10.9.4.</p>
  
  <p>I successfully installed PostgreSQL itself using Homebrew by following the instructions listed here: <a href="https://www.codefellows.org/blog/how-to-install-postgresql" rel="nofollow noreferrer">https://www.codefellows.org/blog/how-to-install-postgresql</a>. It's up and I can connect to it using the <code>psql</code> command. </p>
  
  <p>However, when I try to create the postgis extension, it fails (see below). I understand I need to install <code>postgresql-contrib-9.3</code>. </p>
  
  <pre><code>$ psql -d mydb
  psql (9.3.5)
  Type "help" for help.
  
  mydb=# CREATE EXTENSION postgis;
  ERROR:  could not open extension control file "/usr/local/Cellar/postgresql/9.3.5/share/postgresql/extension/postgis.control": No such file or directory
  </code></pre>
  
  <p>How can I install this <code>postgresql-contrib-9.3</code> on Mac OSX? I don't have <code>apt-get</code>. The instructions I have seen are not at all clear how to install it. Can someone please advise?</p>