Skip to content

Instantly share code, notes, and snippets.

@overdrive3000
Created October 8, 2015 01:48
Show Gist options
  • Save overdrive3000/9d24e091ad5343be1d66 to your computer and use it in GitHub Desktop.
Save overdrive3000/9d24e091ad5343be1d66 to your computer and use it in GitHub Desktop.
failed: [localhost] => (item=pp-edi) => {"changed": true, "cmd": "bash -lc \"cd /var/www/pp-edi/releases/20151008014442/; bundle install\"", "delta": "0:00:16.737223", "end": "2015-10-08 01:47:12.374375", "item": "pp-edi", "rc": 5, "start": "2015-10-08 01:46:55.637152", "warnings": []}
stdout: Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Fetching [email protected]:PurchasingPlatform/as2.git
Fetching [email protected]:PurchasingPlatform/pp-client.git
Installing rake 10.2.1
Using i18n 0.6.11
Installing multi_json 1.10.1
Installing activesupport 3.2.19
Installing builder 3.0.4
Installing activemodel 3.2.19
Installing active_model_serializers 0.8.1
Installing arel 3.0.3
Installing tzinfo 0.3.41
Installing activerecord 3.2.19
Installing pg 0.17.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/ubuntu/.rbenv/versions/2.1.2/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=/home/ubuntu/.rbenv/versions/2.1.2/bin/ruby
--with-pg
--without-pg
--with-pg-config
--without-pg-config
--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
extconf failed, exit code 1
Gem files will remain installed in /home/ubuntu/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/pg-0.17.1 for inspection.
Results logged to /home/ubuntu/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/pg-0.17.1/gem_make.out
An error occurred while installing pg (0.17.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.17.1'` succeeds before bundling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment