$ vagrant up
[default] VM already created. Booting if it's not already running...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 80 => 8080 (adapter 1)
[default] -- 3306 => 3306 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] -- theme: /var/www/wordpress/wp-content/themes/theme
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
stdin: is not a tty
[2013-03-06T17:14:04+01:00] INFO: *** Chef 10.14.2 ***
[2013-03-06T17:14:05+01:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[wordpress]"] from JSON
[2013-03-06T17:14:05+01:00] INFO: Run List is [recipe[apt], recipe[wordpress]]
[2013-03-06T17:14:05+01:00] INFO: Run List expands to [apt, wordpress]
[2013-03-06T17:14:05+01:00] INFO: Starting Chef Run for lucid32.hsd1.ca.comcast.net.
[2013-03-06T17:14:05+01:00] INFO: Running start handlers
[2013-03-06T17:14:05+01:00] INFO: Start handlers complete.
[2013-03-06T17:14:05+01:00] INFO: Missing gem 'mysql'
[2013-03-06T17:14:05+01:00] INFO: Processing execute[apt-get update] action run (apt::default line 20)
[2013-03-06T17:14:15+01:00] INFO: execute[apt-get update] ran successfully
[2013-03-06T17:14:15+01:00] INFO: Could not find previously defined grants.sql resource
[2013-03-06T17:14:15+01:00] INFO: Processing execute[apt-get update] action nothing (apt::default line 20)
[2013-03-06T17:14:15+01:00] INFO: Processing directory[/var/cache/local] action create (apt::default line 27)
[2013-03-06T17:14:15+01:00] INFO: Processing directory[/var/cache/local/preseeding] action create (apt::default line 27)
[2013-03-06T17:14:15+01:00] INFO: Processing package[apache2] action install (apache2::default line 20)
[2013-03-06T17:14:15+01:00] INFO: Processing service[apache2] action enable (apache2::default line 32)
[2013-03-06T17:14:15+01:00] INFO: Processing directory[/etc/apache2/ssl] action create (apache2::default line 118)
[2013-03-06T17:14:15+01:00] INFO: Processing directory[/etc/apache2/conf.d] action create (apache2::default line 125)
[2013-03-06T17:14:15+01:00] INFO: Processing directory[/var/cache/apache2] action create (apache2::default line 132)
[2013-03-06T17:14:15+01:00] INFO: Processing template[apache2.conf] action create (apache2::default line 138)
[2013-03-06T17:14:16+01:00] INFO: Processing template[security] action create (apache2::default line 152)
[2013-03-06T17:14:16+01:00] INFO: Processing template[charset] action create (apache2::default line 162)
[2013-03-06T17:14:16+01:00] INFO: Processing template[/etc/apache2/ports.conf] action create (apache2::default line 172)
[2013-03-06T17:14:16+01:00] INFO: Processing template[/etc/apache2/sites-available/default] action create (apache2::default line 181)
[2013-03-06T17:14:16+01:00] INFO: Processing template[/etc/apache2/mods-available/status.conf] action create (apache2::mod_status line 21)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod status] action run (apache2::mod_status line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing template[/etc/apache2/mods-available/alias.conf] action create (apache2::mod_alias line 21)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod alias] action run (apache2::mod_alias line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod auth_basic] action run (apache2::mod_auth_basic line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod authn_file] action run (apache2::mod_authn_file line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod authz_default] action run (apache2::mod_authz_default line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod authz_groupfile] action run (apache2::mod_authz_groupfile line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod authz_host] action run (apache2::mod_authz_host line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod authz_user] action run (apache2::mod_authz_user line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing template[/etc/apache2/mods-available/autoindex.conf] action create (apache2::mod_autoindex line 21)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod autoindex] action run (apache2::mod_autoindex line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing template[/etc/apache2/mods-available/dir.conf] action create (apache2::mod_dir line 21)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod dir] action run (apache2::mod_dir line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod env] action run (apache2::mod_env line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing template[/etc/apache2/mods-available/mime.conf] action create (apache2::mod_mime line 21)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod mime] action run (apache2::mod_mime line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing template[/etc/apache2/mods-available/negotiation.conf] action create (apache2::mod_negotiation line 21)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod negotiation] action run (apache2::mod_negotiation line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing template[/etc/apache2/mods-available/setenvif.conf] action create (apache2::mod_setenvif line 21)
[2013-03-06T17:14:16+01:00] INFO: Processing execute[a2enmod setenvif] action run (apache2::mod_setenvif line 28)
[2013-03-06T17:14:16+01:00] INFO: Processing service[apache2] action start (apache2::default line 207)
[2013-03-06T17:14:16+01:00] INFO: Processing package[mysql-devel] action install (mysql::client line 22)
[2013-03-06T17:14:16+01:00] INFO: Processing gem_package[mysql] action install (mysql::client line 48)
================================================================================
Error executing action `install` on resource 'gem_package[mysql]'
================================================================================
Gem::Installer::ExtensionBuildError
-----------------------------------
ERROR: Failed to build gem native extension.
/opt/vagrant_ruby/bin/ruby extconf.rb
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... yes
checking for mysql.h... yes
creating Makefile
make
sh: make: not found
Gem files will remain installed in /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mysql-2.9.1 for inspection.
Results logged to /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mysql-2.9.1/ext/mysql_api/gem_make.out
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/client.rb
47:
48: gem_package "mysql" do
49: action :install
50: end
51:
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/client.rb:48:in `from_file'
gem_package("mysql") do
retry_delay 2
cookbook_name :mysql
package_name "mysql"
retries 0
action [:install]
recipe_name "client"
provider Chef::Provider::Package::Rubygems
end
[2013-03-06T17:14:23+01:00] ERROR: Running exception handlers
[2013-03-06T17:14:23+01:00] ERROR: Exception handlers complete
[2013-03-06T17:14:24+01:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-03-06T17:14:24+01:00] FATAL: Gem::Installer::ExtensionBuildError: gem_package[mysql] (mysql::client line 48) had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/opt/vagrant_ruby/bin/ruby extconf.rb
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... yes
checking for mysql.h... yes
creating Makefile
make
sh: make: not found
Gem files will remain installed in /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mysql-2.9.1 for inspection.
Results logged to /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/mysql-2.9.1/ext/mysql_api/gem_make.out
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.