[chef] Re: mysql-0.23 cookbook fails on Lucid


Chronological Thread 
  • From: " " < >
  • To:
  • Subject: [chef] Re: mysql-0.23 cookbook fails on Lucid
  • Date: Thu, 15 Jul 2010 03:21:13 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SsFRz+dnNZgKQiR9VO3b5vJPjpIaSSvTCfA6Q+bnqGVYkC5AAzJHpL45IPVuH7Ztyj GEiZuLngf9o+FqQRq1qtaPqIbmtWra4ycajHXm06Fkrl0ERu7FZm3jUzU75iZymg2piN TXgmCx85OqK5zmGcbjWr0MvALDW3m+1mjPNSM=

You do need build-essential, that will install gcc for you, I do not see it in your run_list and just checked the mysql cookbooks for server/client that is also pulled in by mysql::server and I didn't see an include_recipe.

--sahil


On Thu, Jul 15, 2010 at 2:34 AM, Dmitry V'yal < "> > wrote:
Hello, I'm struggling trying to debug my cookbooks

I have a node with a runlist:

 "run_list": [
   "recipe[apt::default]",
   "recipe[nginx::passenger]",
   "recipe[mysql::server]",
   "recipe[php-fpm::default]",
   "recipe[monit::default]",
   "recipe[bodhysite::default]",
   "recipe[mail-system::vdomains]"
 ],

nginx::passenger starts with include_recipe "build-essential".

The chef run fails saying this: http://pastebin.com/H7nFSqdy
Looks like mysql::client fails while building mysql gem because mkfs from ruby-dev is missing. So I added

r1 = package "ruby1.8-dev"
r1.run_action(:install)

to mysql client, but now it still fails with the messages:

[Thu, 15 Jul 2010 09:01:45 +0000] INFO: Installing gem_package[mysql] version 2.8.1
Building native extensions.  This could take a while...
[Thu, 15 Jul 2010 09:01:46 +0000] ERROR: Running exception handlers
[Thu, 15 Jul 2010 09:01:46 +0000] ERROR: Exception handlers complete
[Thu, 15 Jul 2010 09:01:46 +0000] ERROR: Re-raising exception: Gem::Installer::ExtensionBuildError - ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***

Necessary headers are there, the root of problem is what gcc isn't installed. But build-essential included as part of nginx::passenger earlier than mysql. I even tried to add it into run_list as a separate recipe right after apt::default, it didn't helped.

A nice person on #chef told me there's some magic in mysql cookbook, it makes use of run_action method.

Can someone please clarify it a bit and point me in right direction?

Oh forgot to mention, all this was about mysql-0.23 and build-essential-0.7 cookbooks.

Thanks,
Dmitry




Archive powered by MHonArc 2.6.16.

§