Advertisement
Guest User

Untitled

a guest
Aug 17th, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.09 KB | None | 0 0
  1. [2013-08-17T09:25:10+00:00] INFO: *** Chef 10.14.2 ***
  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
  3. [2013-08-17T09:25:11+00:00] INFO: Run List is [recipe[build-essential], recipe[openssl], recipe[postgresql::server], recipe[database::postgresql]]
  4. [2013-08-17T09:25:11+00:00] INFO: Run List expands to [build-essential, openssl, postgresql::server, database::postgresql]
  5. [2013-08-17T09:25:11+00:00] INFO: Starting Chef Run for precise32
  6. [2013-08-17T09:25:11+00:00] INFO: Running start handlers
  7. [2013-08-17T09:25:11+00:00] INFO: Start handlers complete.
  8. [2013-08-17T09:25:25+00:00] INFO: execute[apt-get update] ran successfully
  9.  
  10. ================================================================================
  11. Error executing action `install` on resource 'chef_gem[pg]'
  12. ================================================================================
  13.  
  14. Gem::Installer::ExtensionBuildError
  15. -----------------------------------
  16. ERROR: Failed to build gem native extension.
  17.  
  18. /opt/vagrant_ruby/bin/ruby extconf.rb
  19. checking for pg_config... yes
  20. Using config values from /usr/bin/pg_config
  21. checking for libpq-fe.h... yes
  22. checking for libpq/libpq-fs.h... yes
  23. checking for pg_config_manual.h... yes
  24. checking for PQconnectdb() in -lpq... yes
  25. checking for PQconnectionUsedPassword()... yes
  26. checking for PQisthreadsafe()... yes
  27. checking for PQprepare()... yes
  28. checking for PQexecParams()... yes
  29. checking for PQescapeString()... yes
  30. checking for PQescapeStringConn()... yes
  31. checking for PQescapeLiteral()... yes
  32. checking for PQescapeIdentifier()... yes
  33. checking for PQgetCancel()... yes
  34. checking for lo_create()... yes
  35. checking for pg_encoding_to_char()... yes
  36. checking for pg_char_to_encoding()... yes
  37. checking for PQsetClientEncoding()... yes
  38. checking for PQlibVersion()... yes
  39. checking for PQping()... yes
  40. checking for PQsetSingleRowMode()... no
  41. checking for rb_encdb_alias()... no
  42. checking for rb_enc_alias()... no
  43. checking for rb_thread_call_without_gvl()... no
  44. checking for rb_thread_call_with_gvl()... no
  45. checking for rb_thread_fd_select()... no
  46. checking for rb_w32_wrap_io_handle()... no
  47. checking for PGRES_COPY_BOTH in libpq-fe.h... yes
  48. checking for PGRES_SINGLE_TUPLE in libpq-fe.h... no
  49. checking for PG_DIAG_TABLE_NAME in libpq-fe.h... no
  50. checking for struct pgNotify.extra in libpq-fe.h... yes
  51. checking for unistd.h... yes
  52. checking for ruby/st.h... no
  53. checking for st.h... yes
  54. creating extconf.h
  55. creating Makefile
  56.  
  57. make
  58. sh: 1: make: not found
  59.  
  60.  
  61. Gem files will remain installed in /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/pg-0.16.0 for inspection.
  62. Results logged to /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/pg-0.16.0/ext/gem_make.out
  63.  
  64. Cookbook Trace:
  65. ---------------
  66. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:57:in `from_file'
  67. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/database/recipes/postgresql.rb:20:in `from_file'
  68.  
  69. Resource Declaration:
  70. ---------------------
  71. # In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb
  72.  
  73. 56: begin
  74. 57: chef_gem "pg"
  75. 58: rescue Gem::Installer::ExtensionBuildError => e
  76.  
  77. Compiled Resource:
  78. ------------------
  79. # Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:57:in `from_file'
  80.  
  81. chef_gem("pg") do
  82. retry_delay 2
  83. retries 0
  84. recipe_name "ruby"
  85. action :install
  86. cookbook_name :postgresql
  87. package_name "pg"
  88. provider Chef::Provider::Package::Rubygems
  89. end
  90.  
  91.  
  92. ================================================================================
  93. Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/database/recipes/postgresql.rb
  94. ================================================================================
  95.  
  96. NoMethodError
  97. -------------
  98. undefined method `ruby' for Config:Module
  99.  
  100. Cookbook Trace:
  101. ---------------
  102. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:60:in `from_file'
  103. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/database/recipes/postgresql.rb:20:in `from_file'
  104.  
  105. Relevant File Content:
  106. ----------------------
  107. /tmp/vagrant-chef-1/chef-solo-1/cookbooks/postgresql/recipes/ruby.rb:
  108.  
  109. 1: #
  110. 2: # Cookbook Name:: postgresql
  111. 3: # Recipe:: ruby
  112. 4: #
  113. 5: # Author:: Joshua Timberman (<joshua@opscode.com>)
  114. 6: # Copyright 2012 Opscode, Inc.
  115. 7: #
  116. 8: # Licensed under the Apache License, Version 2.0 (the "License");
  117. 9: # you may not use this file except in compliance with the License.
  118.  
  119. [2013-08-17T09:26:09+00:00] ERROR: Running exception handlers
  120. [2013-08-17T09:26:09+00:00] ERROR: Exception handlers complete
  121. [2013-08-17T09:26:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  122. [2013-08-17T09:26:09+00:00] FATAL: NoMethodError: undefined method `ruby' for Config:Module
  123. Chef never successfully completed! Any errors should be visible in the
  124. output above. Please fix your recipes so that they properly complete.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement