0

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

先感谢您!

4

1 回答 1

0

看起来有些东西(很可能是 pg)在 nokogiri 加载之前加载了 libxml。

尝试将 nokogiri 移动到 gemfile 的顶部并再次捆绑。

如果没有,按照这里的建议,您可以使用 pg 附带的 libxml 版本(它不应该对 nokogiri 产生不利影响)。

于 2013-11-06T21:12:10.320 回答