Got an error about xhprof after issuing vagrant up command at command line.

Solution (to get vagrant up running successfully without xhprof) is to remove it from the setup:

I edited .\roles\drupal_dev.rb to comment out xhprof as so:

name "drupal_dev"
description "Useful tools for Drupal developers."
run_list(
  "recipe[drupal::dev]",
  "recipe[drush::head]",
  "recipe[drush_make]",
  "recipe[phpmyadmin]", # TODO Cookbook needs testing!
  "recipe[webgrind]" # TODO Does this actually work?
  # "recipe[xhprof]" - commented out for now because it fails with error message shown here: https://gist.github.com/amitaibu/4250326
)
# TODO Add recipe to create dev sites via Drush make.
================================================================================
 
Error executing action `install` on resource 'package[php5-xhprof]'
 
================================================================================
 
 
Chef::Exceptions::Exec
 
----------------------
 
apt-get -q -y install php5-xhprof=0.9.2-2ppa1~precise returned 100, expected 0
 
 
Resource Declaration:
 
---------------------
 
# In /tmp/vagrant-chef-1/chef-solo-2/cookbooks/xhprof/recipes/default.rb
 
 32: 
 33: package "php5-xhprof"
 34: 
 
Compiled Resource:
 
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-2/cookbooks/xhprof/recipes/default.rb:33:in `from_file'
 
package("php5-xhprof") do
  retry_delay 2
  retries 0
  recipe_name "default"
  action :install
  cookbook_name :xhprof
  package_name "php5-xhprof"
end

( also mentioned here: https://gist.github.com/amitaibu/4250326 )

xhprof is a performance profiling tool. I believe it is very useful. But if you want to get the rest of your setup running first and deal with these xhprof problems later then you can do so with my solution. You don't need xhprof to run your local drupal setup successfully, it is optional, but it would be useful for when you are analysing performance bottle necks for example.

Details of my host machine setup:
Windows 7 64bit Professional
4Gb RAM
version 4.2.4r81684 of Oracle VirtualBox (VirtualBox is required and used by Vagrant for this setup and many other

My solution should also apply to MacOS and Linux based setups.

Comments

therobyouknow’s picture

This is solved - see the solution in the original question text.

therobyouknow’s picture

Issue summary: View changes

added reference to same error message