[chef] Gem install on Ubuntu 12


Chronological Thread 
  • From: Steve Bennett < >
  • To:
  • Subject: [chef] Gem install on Ubuntu 12
  • Date: Mon, 23 Jul 2012 14:29:09 +1000

Hi all,
  This is a bug report/heads up, not a support request - my issue is solved.

I ran into an issue a couple of days ago with the default (omnibus?) chef-client install on Ubuntu 12.04. Basically, it somehow ends up with two versions of Gems (or just Ruby? - I'm not a Ruby person) installed, in different locations: Gems 1.8 in /var/lib/gems, and 1.9.1 somewhere else (/opt/...something...chef-embedded I think). The upshot of this was that a cookbook that worked on Ubuntu 10.04 didn't work - a postgres gem ("pg") installed, but couldn't be found by a later step that required it. It was present, but not available to the ruby environment in use at the time.

People on IRC helped with a workaround: installing chef-client with the specific distribution, "-d ubuntu12.04".

I'm just mentioning this so the relevant people are aware and can hopefully fix it. The recipe I ran into problems with is here: https://github.com/stevage/mytardis-chef

Steve



Archive powered by MHonArc 2.6.16.

§