패킷 libpq-dev를 설치하고 postgresql을 설치하려고했지만 gem pg로 인해 번들 설치가 실패합니다. 이것은 내가 얻는 오류입니다 :gem pg -v '0.15.1'을 설치할 수 없습니다.
$ gem install pg -v '0.15.1'
Building native extensions. This could take a while...
/.rvm/rubies/ruby-1.9.3-
p484/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:73: warning: Insecure
world writable dir /usr/local in PATH, mode 040777
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/.rvm/rubies/ruby-1.9.3-p484/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again
with --with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
엉망을 정리하는 적절한 방법은 무엇입니까? 당신이 맥에있는 경우
실행중인 OS는 무엇입니까? 포스트그레스를 어떻게 설치 했습니까? – Josh
Mac OS Mavericks에서 'postgresql-9.3.2-3-osx'파일로 설치했지만 아직 잘못되어 있는지 확실하지 않습니다. – blueseal