# Rvm with chef system/user-wide for multiple applications

**URL:** <https://discourse.chef.io/t/rvm-with-chef-system-user-wide-for-multiple-applications/3334>\
**Category:** Chef Infra (archive)\
**Created:** [November 25, 2012, 11:08pm UTC](https://discourse.chef.io/t/rvm-with-chef-system-user-wide-for-multiple-applications/3334 "2012-11-25T23:08:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcelo\_de\_Moraes\_Se](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Marcelo\_de\_Moraes\_Se](https://discourse.chef.io/u/Marcelo_de_Moraes_Se)\
**Post date:** [November 25, 2012, 11:08pm UTC](https://discourse.chef.io/t/rvm-with-chef-system-user-wide-for-multiple-applications/3334/1 "2012-11-25T23:08:52Z")

</div>

Hi list,

I’ve given up on Chef+rvm for now. It seems to be a little bit more  
involved than I expected. I ended up using this recipe to install Ruby  
1.9.2 from source: [https://github.com/carlo/chef-ruby1.9](https://github.com/carlo/chef-ruby1.9), luckily all my  
apps are 1.9-based anyway.

However, I was wondering if anyone out there managed to successfully use  
rvm to install ruby system-wide or user-wise. I’d also like to know if  
there’s anyone using it to have multiple ruby apps using different rubies  
by using the .rvmrc.

Any insights appreciated,

- Marcelo.

---

<div class="post-metadata">

**Author:** ![Larry\_Wright](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/larry_wright/32/177_2.png) [@Larry\_Wright](https://discourse.chef.io/u/Larry_Wright)\
**Post date:** [November 26, 2012, 2:47am UTC](https://discourse.chef.io/t/rvm-with-chef-system-user-wide-for-multiple-applications/3334/2 "2012-11-26T02:47:48Z")

</div>

I've tried, and even made it work, but it was _painful_. This was in the days before the Omnibus installer, though, so maybe it's better. IMO though, you're better off just installing them in /opt/ and referencing them directly.  
On Nov 25, 2012, at 5:08 PM, Marcelo de Moraes Serpa [celoserpa@gmail.com](mailto:celoserpa@gmail.com) wrote:

> Hi list,
> 
> I've given up on Chef+rvm for now. It seems to be a little bit more involved than I expected. I ended up using this recipe to install Ruby 1.9.2 from source: [GitHub - czottmann/chef-ruby1.9: Chef cookbook: Installs Ruby 1.9.x from source.](https://github.com/carlo/chef-ruby1.9), luckily all my apps are 1.9-based anyway.
> 
> However, I was wondering if anyone out there managed to successfully use rvm to install ruby system-wide or user-wise. I'd also like to know if there's anyone using it to have multiple ruby apps using different rubies by using the .rvmrc.
> 
> Any insights appreciated,
> 
> - Marcelo.

---

<div class="post-metadata">

**Author:** ![Sascha\_Bates](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/sascha_bates/32/504_2.png) [@Sascha\_Bates](https://discourse.chef.io/u/Sascha_Bates)\
**Post date:** [November 26, 2012, 3:07am UTC](https://discourse.chef.io/t/rvm-with-chef-system-user-wide-for-multiple-applications/3334/3 "2012-11-26T03:07:08Z")

</div>

The best Chef-RVM cookbook I've found is Fletcher Nichol's:

> **[GitHub - sous-chefs/rvm: Development repository for the rvm cookbook](https://github.com/sous-chefs/rvm)**
>
> Development repository for the rvm cookbook. Contribute to sous-chefs/rvm development by creating an account on GitHub.

It's a bit tricky on OSX because of the compiler, but if you're doing it  
on Linux it should be fairly straightforward.

There's _a lot_ of documentation but generally you can get away with  
just adding override attributes for the existing recipes.

Sascha Bates | [sascha.bates@gmail.com](mailto:sascha.bates@gmail.com) | 612 850 0444 |  
sascha.bates@skype | sascha\_bates@yahoo |  
On 11/25/12 5:08 PM, Marcelo de Moraes Serpa wrote:

> Hi list,
> 
> I've given up on Chef+rvm for now. It seems to be a little bit more  
> involved than I expected. I ended up using this recipe to install Ruby  
> 1.9.2 from source: [GitHub - czottmann/chef-ruby1.9: Chef cookbook: Installs Ruby 1.9.x from source.](https://github.com/carlo/chef-ruby1.9), luckily all  
> my apps are 1.9-based anyway.
> 
> However, I was wondering if anyone out there managed  
> to successfully use rvm to install ruby system-wide or user-wise. I'd  
> also like to know if there's anyone using it to have multiple ruby  
> apps using different rubies by using the .rvmrc.
> 
> Any insights appreciated,
> 
> - Marcelo.
