$ psql -l psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
こちらの方法で対処します
RailsでPostgreSQLを使うまでの設定 - ヘウレーカを廻って
$ cd /usr/local/Cellar/postgresql $ curl -o fixBrewLionPostgresql.sh http://nextmarvel.net/blog/downloads/fixBrewLionPostgres.sh $ chmod 777 fixBrewLionPostgresql.sh $ ./fixBrewLionPostgresql.sh $ pg_ctl -D /usr/local/var/postgres start
問題なく表示されました
$ psql -l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges ---------------------+----------+----------+-------------+-------------+---------------------