从10.5升级10.6,现在postgres 8.1受到打击.为了让事情变得更糟,我尝试安装8.4,我很确定只是让事情变得糟糕十倍.无论如何,当我尝试触发postgres并且只是createuser时我得到的例外是这样的:
createuser:无法连接到数据库postgres:无法连接到服务器:没有这样的文件或目录服务器是否在本地运行并接受Unix域套接字"/tmp/.s.PGSQL.5432"上的连接?
我如何完全摆脱我的Mac上的postgres所以我可以做一个重做?
谢谢
试图安装pg gem会给我带来错误.
我正在使用使用rbenv/ruby-build构建的Ruby 1.9.3-p125.我使用一键安装程序安装了PostgreSQL.我可以使用pgAdmin连接到数据库.我的想法已经不多了.
% gem install pg ~
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/Users/sandropadin/.rbenv/versions/1.9.3-p125/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... yes
checking for PQconnectionUsedPassword()... yes
checking for PQisthreadsafe()... yes
checking for PQprepare()... yes
checking for PQexecParams()... yes
checking for PQescapeString()... yes
checking for PQescapeStringConn()... …Run Code Online (Sandbox Code Playgroud)