Postgres - 9.3 Ruby - 1.9.3 OS X - 10.8.5
Matthews-MacBook-Pro-2:truelink Matthew$ rake db:create:all
/usr/local/rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler.rb:284: warning:
Insecure world writable dir /usr/local/rvm in PATH, mode 040777
WARNING: Nokogiri was built against LibXML version 2.9.1, but has dynamically loaded 2.7.8
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
我已经查看了在此问题上发布的所有现有问题,但无法通过查看答案来解决它。
有谁知道这里发生了什么?
编辑
PostgresSQL 通过我通过http://postgresapp.com/下载的 Postgres.App 运行
当我跑
$ sudo find / -name .s.PGSQL.5432
我明白了
/private/tmp/.s.PGSQL.5432
我的 .bash_profile
export PATH=/usr/local/bin:$PATH export JAVA_HOME=`/usr/libexec/java_home -v 1.7` export PATH=/usr/local/bin:/Applications/Postgres.app/Contents/MacOS/bin:/usr/local/rvm/gems/ruby-1.9.3-p448/bin:/usr/local/rvm/gems/ruby-1.9.3-p448@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p448/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/opt/ImageMagick/bin
当我跑
$ which postgres
我明白了
/Applications/Postgres.app/Contents/MacOS/bin/postgres
先感谢您!