Mac OS X 10.8.5를 사용하고 homebrew를 사용하여 postgreSQL을 설치하려고합니다. 나는 몇 가지 에러와 경고를 수정했다. 내가 BREW 정보 postgresql을 실행했을 때 발생했다. 그러나 나머지 문제를 해결하는 방법을 모르겠습니다.homebrew를 사용하여 PostgreSQL을 설치하는 중에 오류가 발생했습니다.
$ 양조 정보 PostgreSQL의
postgresql: stable 9.3.2 (bottled)
http://www.postgresql.org/
Conflicts with: postgres-xc
/usr/local/Cellar/postgresql/9.3.2 (2924 files, 40M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/postgresql.rb
==> Dependencies
Required: readline ✔
Recommended: ossp-uuid ✔
==> Options
--32-bit
Build 32-bit only
--enable-dtrace
Build with DTrace support
--no-perl
Build without Perl support
--no-tcl
Build without Tcl support
--without-ossp-uuid
Build without ossp-uuid support
--without-python
Build without python support
==> Caveats
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
you may need to remove the previous version first. See:
https://github.com/Homebrew/homebrew/issues/issue/2510
To migrate existing data from a previous major version (pre-9.3) of PostgreSQL, see:
http://www.postgresql.org/docs/9.3/static/upgrading.html
When installing the postgres gem, including ARCHFLAGS is recommended:
ARCHFLAGS="-arch x86_64" gem install pg
To install gems without sudo, see the Homebrew wiki.
To have launchd start postgresql at login:
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
Then to load postgresql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Or, if you don't want/need launchctl, you can just run:
postgres -D /usr/local/var/postgres
내가 서버를 실행하면, 내가 얻을 : 나는 PostgreSQL을 제거 할 수없는 것처럼
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.0/lib/active_record/connection_adapters/postgresql_adapter.rb:825:in `initialize': could not connect to server: No such file or directory (PG::ConnectionBad)
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
나는 PostgreSQL의를 제거하고 다시 설치하지만 보인다했습니다 8 .x 버전.
postgreSQL을 올바르게 설치하고 실행하기 위해 여러 가지 게시물을 읽고 제안한 내용을 시도했지만 나에게 도움이되지 않는 것 같습니다.
Mac OS X의 PostgreSQL 패키징 상황은 끔찍합니다. 이 경우 PostgreSQL의 homebrew 설치에 대한 PostgreSQL 로그 파일을 찾아서 시작하지 않는 것으로 보이는 이유를 확인하십시오. 또한 프로세스 목록 ('ps -ef | grep postgres')을 검사하여 실제로 실행 중인지 확인하십시오. –