OS X Lion - homebrew - rvm で Postgres を起動して実行しようとしています。
http://railscasts.com/episodes/342-migrating-to-postgresql
上記の指示に従った後、ここで説明されているのと同じ問題に遭遇しました。
OSX 10.7 Lion にアップグレードした後の Postgresql の修復
which psql
あるべきusr/bin/psql
ときに実行中usr/local/bin/psql
わかりましたので、次のようにパスを変更しました (これがファイル内のすべてです)。
export PATH="/usr/local/bin:$PATH"
[[ -s "/Users/chase/.rvm/scripts/rvm" ]] && source "/Users/chase/.rvm/scripts/rvm"
良い - 実行するsource ~/.bash_profile
と、which psql
今度は利回りが得られますusr/local/bin/psql
ただし、データベースとして新しいRailsアプリを生成すると、どの結果が得られる-d postgresql
かを試すまで機能しますrake db:create:all
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"?
どんな手掛かり?
アップデート
Postgres.app をインストールすることになりました: http://postgresapp.com/ - これは動作します。