[chef] Re: Re: Re: Re: Re: Re: Installing Ruby from source


Chronological Thread 
  • From: Angus Buchanan < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Installing Ruby from source
  • Date: Mon, 20 May 2013 12:29:21 +0100

I've gone from rvm to rbenv to chruby.  A chruby cookbook was recently released, which I am now using:

http://community.opscode.com/cookbooks/chruby

It uses ruby-build (which just builds Ruby) and then chruby to manage versions

-aob


On Mon, May 20, 2013 at 9:58 AM, Jeffrey Jones < " target="_blank"> > wrote:
Thanks for that, I must have gotten that cookbook mixed up with another one.

I shall look into it further.


On 20/05/13 17:52, Prajwal Manjunath wrote:
No, ruby-build CAN be built as a rbenv plugin, but the cookbook doesn't do that, rather it works as a standalone. It essentialy compiles a fresh copy of ruby in a directory of your choosing and leaves it at that. I then link them to /usr/bin/(ruby|gem) and I'm done. Everything in my machine now sees a single version of ruby. We make it a point to not have any sort of ruby versioning in production either.


On Mon, May 20, 2013 at 2:19 PM, Morgan Blackthorne < " target="_blank"> > wrote:
Could you elaborate a bit more on the why behind this statement, which might help folks understand your goals a bit better?

--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS


On Mon, May 20, 2013 at 1:48 AM, Jeffrey Jones < " target="_blank"> > wrote:
Ruby build uses rbenv from what I can see which is a no-no I am afraid.



On 20/05/13 17:45, Prajwal Manjunath wrote:
There's the ruby-build cookbook. I've been using it on Ubuntu and CentOS without issues.



On Mon, May 20, 2013 at 2:11 PM, Jeffrey Jones < " target="_blank"> > wrote:
Hello all.

I have decided that one of chef's greatest strengths; and biggest weaknesses is the community cookbooks (but that is a post for another time).

Is there any "canonical" cookbook that will install ruby (version of our choosing) from source (Including the build-essential'ish packages)? I have found half a dozen ruby cookbooks but none of them offer the source option (I did actually find one but it is 2 years old, barely documented and released under the WTFPL)

I am pretty surprised that I could not find one "opscode" blessed "Install ruby from source" cookbook, seems like a pretty basic building block.

On a slight return to my first line, the community cookbook page really REALLY needs some sorting and filtering features.

Cheers

Jeff









Archive powered by MHonArc 2.6.16.

§