title: gem install pg -v 0.12.2 error on mac
body: <p>I'm new to the world of programming and I'm having a bit of a time resolving a bundling error with ruby on rails. I'm running OSX 10.9.1, RVM for Ruby management, and I am using ruby 2.1.1.</p>
  
  <p>The error I receive is:</p>
  
  <p>Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
      /Users/Removed/.rvm/rubies/ruby-2.1.1/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</p>
  
  <p>checking for libpq-fe.h... no</p>
  
  <p>Can't find the 'libpq-fe.h header</p>
  
  <p><strong>* extconf.rb failed *</strong></p>
  
  <p>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.
  extconf failed, exit code 1</p>
  
  <p>Gem files will remain installed in /Users/Removed/.rvm/gems/ruby-2.1.1/gems/pg-0.12.2 for inspection.
  Results logged to /Users/Removed/.rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-13/2.1.0/pg-0.12.2/gem_make.out
  An error occurred while installing pg (0.12.2), and Bundler cannot continue. </p>
  
  <p>After a little research I downloaded the Postgres App and put it into the Application directory. It appears I am still having a header problem as well, so I tried try specifying the include directory of the app. Still no resolution. Iv'e also came across some material relating to homebrew,but I'm at a loss for getting set up here. If I could have some help getting sorted out it would be greatly appreciated. Thank you in advance.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>rvm info :</p>
  
  <p>ruby-2.1.1:</p>
  
  <p>system:
      uname:       "Darwin christohersmini 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64"
      system:      "osx/10.9/x86_64"
      bash:        "/bin/bash => GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)"
      zsh:         "/bin/zsh => zsh 5.0.2 (x86_64-apple-darwin13.0)"</p>
  
  <p>rvm:
      version:      "rvm 1.25.19 (stable) by Wayne E. Seguin , Michal Papis  [https://rvm.io/]"
      updated:      "35 minutes 14 seconds ago"
      path:         "/Users/christopherwhittemore/.rvm"</p>
  
  <p>ruby:
      interpreter:  "ruby"
      version:      "2.1.1p76"
      date:         "2014-02-24"
      platform:     "x86_64-darwin13.0"
      patchlevel:   "2014-02-24 revision 45161"
      full_version: "ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]"</p>
  
  <p>Checking to see if I'm in a  subdirectory was a good idea, but sadly I'm not. I'm just trying to boot the server from the root directory of the application.</p>