Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There appears to be a problem installing the "pg" gem:</p> <pre><code>================================================================================ Error executing action `install` on resource 'chef_gem[pg]' ================================================================================ Gem::Installer::ExtensionBuildError ----------------------------------- ERROR: Failed to build gem native extension. /opt/vagrant_ruby/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 st.h... yes creating extconf.h creating Makefile make sh: 1: make: not found </code></pre> <p>I suggest reading the documentation of the <a href="https://github.com/opscode-cookbooks/build-essential" rel="nofollow">build-essentials</a> cookbook. It suggests setting the "compiletime" attribute in order to support to ensure that the build tools are available to compile RubyGems extensions.</p> <h2>Update 1</h2> <p>The following json settings worked for me:</p> <pre><code>chef.json = { "postgresql" =&gt; { "password" =&gt; { "postgres" =&gt; "password" } }, "database" =&gt; { "create" =&gt; ["encased_dev"] }, "build_essential" =&gt; { "compiletime" =&gt; true } } </code></pre> <p>Note:</p> <ul> <li>Attribute is "build_essential" and not "build-essential"</li> </ul> <h2>Updated 2</h2> <p>I have since discovered that there is a <a href="https://github.com/hw-cookbooks/postgresql/blob/master/recipes/ruby.rb" rel="nofollow">ruby recipe</a> that fixes this issue as well (by setting the build essential node attributes about). Either add it to your run-list or use the <a href="https://github.com/opscode-cookbooks/database" rel="nofollow">database cookbook</a></p> <ul> <li><a href="https://github.com/opscode-cookbooks/database/blob/master/recipes/postgresql.rb" rel="nofollow">https://github.com/opscode-cookbooks/database/blob/master/recipes/postgresql.rb</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload