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
提前谢谢!
答案 0 :(得分:0)
在nokogiri加载之前看起来像是(很可能是pg)正在加载libxml。
尝试将nokogiri移动到gemfile的顶部并再次捆绑。
如果没有,按照建议here你可以使用pg附带的libxml版本(它不应该对nokogiri产生负面影响)。