【发布时间】:2014-01-09 00:29:04
【问题描述】:
运行 bundle install(或 gem install pg)时出现以下错误,我已经尝试修复 xcode 命令行工具
/Users/josh/.rvm/rubies/ruby-2.0.0-p353/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.
- Ruby 2.0.0
- Rails 4.0.2
- OSX 10.9.1
【问题讨论】:
-
stackoverflow.com/questions/19262312/… 提供了全面的答案。
标签: ruby-on-rails ruby macos osx-mavericks