Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Are you sure the correct version of postgres is running? You can check which executable is running with ps aux | grep post. Make sure the postgres process that's running is the one you want (i.e. somewhere in /usr/local/pgsql-9.1).