{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu-chef/issues/270","labels_url":"https://api.github.com/repos/sensu/sensu-chef/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu-chef/issues/270/comments","events_url":"https://api.github.com/repos/sensu/sensu-chef/issues/270/events","html_url":"https://github.com/sensu/sensu-chef/issues/270","id":40887921,"number":270,"title":"gem 'pg' could not be installed","user":{"login":"Entea","id":531803,"avatar_url":"https://avatars.githubusercontent.com/u/531803?v=3","gravatar_id":"","url":"https://api.github.com/users/Entea","html_url":"https://github.com/Entea","followers_url":"https://api.github.com/users/Entea/followers","following_url":"https://api.github.com/users/Entea/following{/other_user}","gists_url":"https://api.github.com/users/Entea/gists{/gist_id}","starred_url":"https://api.github.com/users/Entea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Entea/subscriptions","organizations_url":"https://api.github.com/users/Entea/orgs","repos_url":"https://api.github.com/users/Entea/repos","events_url":"https://api.github.com/users/Entea/events{/privacy}","received_events_url":"https://api.github.com/users/Entea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-08-22T08:18:58Z","updated_at":"2015-02-18T22:01:00Z","closed_at":null,"body":"```\r\n/opt/sensu/embedded/bin/gem install pg -q --no-rdoc --no-ri\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing pg:\r\n        ERROR: Failed to build gem native extension.\r\n\r\n    /opt/sensu/embedded/bin/ruby extconf.rb\r\nchecking for pg_config... yes\r\nUsing config values from /usr/bin/pg_config\r\nchecking for libpq-fe.h... yes\r\nchecking for libpq/libpq-fs.h... yes\r\nchecking for pg_config_manual.h... yes\r\nchecking for PQconnectdb() in -lpq... no\r\nchecking for PQconnectdb() in -llibpq... no\r\nchecking for PQconnectdb() in -lms/libpq... no\r\nCan't find the PostgreSQL client library (libpq)\r\n*** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n        --with-opt-dir\r\n        --with-opt-include\r\n        --without-opt-include=${opt-dir}/include\r\n        --with-opt-lib\r\n        --without-opt-lib=${opt-dir}/lib\r\n        --with-make-prog\r\n        --without-make-prog\r\n        --srcdir=.\r\n        --curdir\r\n        --ruby=/opt/sensu/embedded/bin/ruby\r\n        --with-pg\r\n        --without-pg\r\n        --with-pg-config\r\n        --without-pg-config\r\n        --with-pg_config\r\n        --without-pg_config\r\n        --with-pg-dir\r\n        --without-pg-dir\r\n        --with-pg-include\r\n        --without-pg-include=${pg-dir}/include\r\n        --with-pg-lib\r\n        --without-pg-lib=${pg-dir}/\r\n        --with-pqlib\r\n        --without-pqlib\r\n        --with-libpqlib\r\n        --without-libpqlib\r\n        --with-ms/libpqlib\r\n        --without-ms/libpqlib\r\n\r\n\r\nGem files will remain installed in /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/pg-0.17.1 for inspection.\r\nResults logged to /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/pg-0.17.1/ext/gem_make.out\r\n```"},"comment":{"url":"https://api.github.com/repos/sensu/sensu-chef/issues/comments/74957490","html_url":"https://github.com/sensu/sensu-chef/issues/270#issuecomment-74957490","issue_url":"https://api.github.com/repos/sensu/sensu-chef/issues/270","id":74957490,"user":{"login":"mateodelnorte","id":554847,"avatar_url":"https://avatars.githubusercontent.com/u/554847?v=3","gravatar_id":"","url":"https://api.github.com/users/mateodelnorte","html_url":"https://github.com/mateodelnorte","followers_url":"https://api.github.com/users/mateodelnorte/followers","following_url":"https://api.github.com/users/mateodelnorte/following{/other_user}","gists_url":"https://api.github.com/users/mateodelnorte/gists{/gist_id}","starred_url":"https://api.github.com/users/mateodelnorte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateodelnorte/subscriptions","organizations_url":"https://api.github.com/users/mateodelnorte/orgs","repos_url":"https://api.github.com/users/mateodelnorte/repos","events_url":"https://api.github.com/users/mateodelnorte/events{/privacy}","received_events_url":"https://api.github.com/users/mateodelnorte/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T22:01:00Z","updated_at":"2015-02-18T22:01:00Z","body":"I'm doing a `/opt/sensu/embedded/bin/gem install pg` on CentOS 7 using ansible for deployment - no chef. Seeing the same issue. \r\n\r\nRuby version `ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]`\r\n\r\nShould have all the necessary libs `yum`-installed:\r\n```\r\npostgresql.x86_64                       9.2.7-1.el7                    @base\r\npostgresql-devel.x86_64                 9.2.7-1.el7                    @base\r\npostgresql-libs.x86_64                  9.2.7-1.el7                    @base\r\npostgresql-server.x86_64                9.2.7-1.el7                    @base\r\nlibpqxx.x86_64                          1:4.0.1-1.el7                  @epel\r\nlibpqxx-devel.x86_64                    1:4.0.1-1.el7                  @epel\r\n```\r\n\r\nAnyone have ideas for a fix on CentOS 7?"}}