chef_gem w/ native extensions under omnibus


#1

How does one install chef_gem’s with native extensions under omnibus? I’m guessing (on Ubuntu) that I need build-essential installed first, but obviously the chef_gem gets evaluated before the build-essential recipe.

Is there a way to setup a build environment before chef_gem’s are installed in omnibus?

Wes


#2

Hiya,

On Thu, Jul 19, 2012 at 6:17 AM, Wes Morgan cap10morgan@gmail.com wrote:

How does one install chef_gem’s with native extensions under omnibus? I’m guessing (on Ubuntu) that I need build-essential installed first, but obviously the chef_gem gets evaluated before the build-essential recipe.

Is there a way to setup a build environment before chef_gem’s are installed in omnibus?

If you’re using the latest version of the build-essential cookbook,
there’s an attribute to control whether build-essential is installed
at compile-time so that chef_gem.

See node[‘build_essential’][‘compiletime’] and the Usage section here:

http://community.opscode.com/cookbooks/build-essential

Zac


#3

Perfect, thanks!

Wes

On Jul 19, 2012, at 3:57 AM, Zac Stevens wrote:

Hiya,

On Thu, Jul 19, 2012 at 6:17 AM, Wes Morgan cap10morgan@gmail.com wrote:

How does one install chef_gem’s with native extensions under omnibus? I’m guessing (on Ubuntu) that I need build-essential installed first, but obviously the chef_gem gets evaluated before the build-essential recipe.

Is there a way to setup a build environment before chef_gem’s are installed in omnibus?

If you’re using the latest version of the build-essential cookbook,
there’s an attribute to control whether build-essential is installed
at compile-time so that chef_gem.

See node[‘build_essential’][‘compiletime’] and the Usage section here:

http://community.opscode.com/cookbooks/build-essential

Zac