You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error executing action install on resource 'chef_gem[pg]'
Gem::Installer::ExtensionBuildError
ERROR: Failed to build gem native extension.
/opt/chef/embedded/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... no
checking for PQconnectdb() in -llibpq... no
checking for PQconnectdb() in -lms/libpq... no
Can't find the PostgreSQL client library (libpq)
*** 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.
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/pg-0.17.1 for inspection.
Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/pg-0.17.1/ext/gem_make.out
Cookbook Trace:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:57:in rescue in from_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:24:infrom_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/database/recipes/postgresql.rb:20:in from_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/gitlab/recipes/database_postgresql.rb:14:infrom_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/gitlab/recipes/install.rb:12:in `from_file'
Resource Declaration:
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb
57: chef_gem "pg"
58: rescue Gem::Installer::ExtensionBuildError => e
Compiled Resource:
Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:57:in `rescue in from_file'
chef_gem("pg") do
provider Chef::Provider::Package::Rubygems
action :install
retries 0
retry_delay 2
package_name "pg"
version "0.17.1"
cookbook_name :postgresql
recipe_name "ruby"
end
The text was updated successfully, but these errors were encountered:
Error executing action
install
on resource 'chef_gem[pg]'Gem::Installer::ExtensionBuildError
ERROR: Failed to build gem native extension.
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... no
checking for PQconnectdb() in -llibpq... no
checking for PQconnectdb() in -lms/libpq... no
Can't find the PostgreSQL client library (libpq)
*** 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
--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=/opt/chef/embedded/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
--with-pqlib
--without-pqlib
--with-libpqlib
--without-libpqlib
--with-ms/libpqlib
--without-ms/libpqlib
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/pg-0.17.1 for inspection.
Results logged to /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/pg-0.17.1/ext/gem_make.out
Cookbook Trace:
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:57:in
rescue in from_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:24:in
from_file'/tmp/vagrant-chef-1/chef-solo-1/cookbooks/database/recipes/postgresql.rb:20:in
from_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/gitlab/recipes/database_postgresql.rb:14:in
from_file'/tmp/vagrant-chef-1/chef-solo-1/cookbooks/gitlab/recipes/install.rb:12:in `from_file'
Resource Declaration:
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb
57: chef_gem "pg"
58: rescue Gem::Installer::ExtensionBuildError => e
Compiled Resource:
Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:57:in `rescue in from_file'
chef_gem("pg") do
provider Chef::Provider::Package::Rubygems
action :install
retries 0
retry_delay 2
package_name "pg"
version "0.17.1"
cookbook_name :postgresql
recipe_name "ruby"
end
The text was updated successfully, but these errors were encountered: