Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2013-08-17T09:25:10+00:00] INFO: *** Chef 10.14.2 ***
- [2013-08-17T09:25:11+00:00] INFO: Setting the run_list to ["recipe[build-essential]", "recipe[openssl]", "recipe[postgresql::server]", "recipe[database::postgresql]"] from JSON
- [2013-08-17T09:25:11+00:00] INFO: Run List is [recipe[build-essential], recipe[openssl], recipe[postgresql::server], recipe[database::postgresql]]
- [2013-08-17T09:25:11+00:00] INFO: Run List expands to [build-essential, openssl, postgresql::server, database::postgresql]
- [2013-08-17T09:25:11+00:00] INFO: Starting Chef Run for precise32
- [2013-08-17T09:25:11+00:00] INFO: Running start handlers
- [2013-08-17T09:25:11+00:00] INFO: Start handlers complete.
- [2013-08-17T09:25:25+00:00] INFO: execute[apt-get update] ran successfully
- ================================================================================
- 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 pg_config_manual.h... yes
- checking for PQconnectdb() in -lpq... yes
- checking for PQconnectionUsedPassword()... yes
- checking for PQisthreadsafe()... yes
- checking for PQprepare()... yes
- checking for PQexecParams()... yes
- checking for PQescapeString()... yes
- checking for PQescapeStringConn()... yes
- checking for PQescapeLiteral()... yes
- checking for PQescapeIdentifier()... yes
- checking for PQgetCancel()... yes
- checking for lo_create()... yes
- checking for pg_encoding_to_char()... yes
- checking for pg_char_to_encoding()... yes
- checking for PQsetClientEncoding()... yes
- checking for PQlibVersion()... yes
- checking for PQping()... yes
- checking for PQsetSingleRowMode()... no
- checking for rb_encdb_alias()... no
- checking for rb_enc_alias()... no
- checking for rb_thread_call_without_gvl()... no
- checking for rb_thread_call_with_gvl()... no
- checking for rb_thread_fd_select()... no
- checking for rb_w32_wrap_io_handle()... no
- checking for PGRES_COPY_BOTH in libpq-fe.h... yes
- checking for PGRES_SINGLE_TUPLE in libpq-fe.h... no
- checking for PG_DIAG_TABLE_NAME in libpq-fe.h... no
- checking for struct pgNotify.extra in libpq-fe.h... yes
- checking for unistd.h... yes
- checking for ruby/st.h... no
- checking for st.h... yes
- creating extconf.h
- creating Makefile
- make
- sh: 1: make: not found
- Gem files will remain installed in /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/pg-0.16.0 for inspection.
- Results logged to /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/pg-0.16.0/ext/gem_make.out
- Cookbook Trace:
- ---------------
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:57:in `from_file'
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/database/recipes/postgresql.rb:20:in `from_file'
- Resource Declaration:
- ---------------------
- # In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb
- 56: begin
- 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 `from_file'
- chef_gem("pg") do
- retry_delay 2
- retries 0
- recipe_name "ruby"
- action :install
- cookbook_name :postgresql
- package_name "pg"
- provider Chef::Provider::Package::Rubygems
- end
- ================================================================================
- Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/database/recipes/postgresql.rb
- ================================================================================
- NoMethodError
- -------------
- undefined method `ruby' for Config:Module
- Cookbook Trace:
- ---------------
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:60:in `from_file'
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/database/recipes/postgresql.rb:20:in `from_file'
- Relevant File Content:
- ----------------------
- /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:
- 1: #
- 2: # Cookbook Name:: postgresql
- 3: # Recipe:: ruby
- 4: #
- 5: # Author:: Joshua Timberman (<joshua@opscode.com>)
- 6: # Copyright 2012 Opscode, Inc.
- 7: #
- 8: # Licensed under the Apache License, Version 2.0 (the "License");
- 9: # you may not use this file except in compliance with the License.
- [2013-08-17T09:26:09+00:00] ERROR: Running exception handlers
- [2013-08-17T09:26:09+00:00] ERROR: Exception handlers complete
- [2013-08-17T09:26:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
- [2013-08-17T09:26:09+00:00] FATAL: NoMethodError: undefined method `ruby' for Config:Module
- Chef never successfully completed! Any errors should be visible in the
- output above. Please fix your recipes so that they properly complete.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement