carlhuda/bundler — Issue #1704: Faled to install pg (0.13.2) on Mac OSX  10.6.8
Author: ppngiap
Created: 2012-03-08 09:13:32+00:00
State: open

Installing pg (0.13.2) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/usr/local/Cellar/ruby/1.9.3-p125/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.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/Cellar/ruby/1.9.3-p125/bin/ruby
--with-pg
--without-pg
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config

Gem files will remain installed in /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/pg-0.13.2 for inspection.
Results logged to /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/pg-0.13.2/ext/gem_make.out
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rubygems/installer.rb:530:in `block in build_extensions'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rubygems/installer.rb:505:in `each'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rubygems/installer.rb:505:in `build_extensions'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rubygems/installer.rb:180:in `install'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/source.rb:90:in `block in install'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/rubygems_integration.rb:82:in `preserve_paths'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/source.rb:89:in `install'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:73:in `block in install_gem_from_spec'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/rubygems_integration.rb:97:in `with_build_args'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:72:in `install_gem_from_spec'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:56:in `block in run'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:55:in `run'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/installer.rb:12:in `install'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/cli.rb:271:in `update'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/vendor/thor/base.rb:386:in `start'
from /usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/bin/bundle:13:in `'
from /usr/local/Cellar/ruby/1.9.3-p125/bin/bundle:19:in `load'
from /usr/local/Cellar/ruby/1.9.3-p125/bin/bundle:19:in `

'