Skip to content

Instantly share code, notes, and snippets.

@tisba
Created November 19, 2010 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tisba/706721 to your computer and use it in GitHub Desktop.
Save tisba/706721 to your computer and use it in GitHub Desktop.
Installing pg (0.9.0) with native extensions /Users/basti/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Users/basti/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb
checking for pg_config... no
=========== WARNING ===========
You are building this extension on OS X without setting the
ARCHFLAGS environment variable, and pg_config wasn't found in
your PATH. If you are seeing this message, that means that the
build will probably fail.
If it does, you can correct this by either including the path
to 'pg_config' in your PATH or setting the environment variable
ARCHFLAGS to '-arch <arch>' before building.
For example:
(in bash) $ export PATH=/opt/local/lib/postgresql84/bin:$PATH
$ export ARCHFLAGS='-arch x86_64'
(in tcsh) % set path = ( /opt/local/lib/postgresql84/bin $PATH )
% setenv ARCHFLAGS '-arch x86_64'
Then try building again.
===================================
MacOS X build: fixing architecture flags:
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=/Users/basti/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
--with-pg
--without-pg
--with-pg-config
--without-pg-config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
--enable-static-build
--disable-static-build
Gem files will remain installed in /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/pg-0.9.0 for inspection.
Results logged to /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/pg-0.9.0/ext/gem_make.out
from /Users/basti/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:486:in `block in build_extensions'
from /Users/basti/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:446:in `each'
from /Users/basti/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:446:in `build_extensions'
from /Users/basti/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:198:in `install'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/source.rb:95:in `install'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/installer.rb:55:in `block in run'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/spec_set.rb:12:in `block in each'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/spec_set.rb:12:in `each'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/spec_set.rb:12:in `each'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/installer.rb:44:in `run'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/installer.rb:8:in `install'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/cli.rb:225:in `install'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/lib/bundler/vendor/thor/base.rb:389:in `start'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.5/bin/bundle:13:in `<top (required)>'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/bin/bundle:19:in `load'
from /Users/basti/.rvm/gems/ruby-1.9.2-p0/bin/bundle:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment