Installing Ruby from source


#1

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


#2

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 jjones@toppan-f.co.jpwrote:

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


#3

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 <jjones@toppan-f.co.jp
mailto:jjones@toppan-f.co.jp> 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

#4

Here u go.

Install any version of ruby as many as u want.

On Monday, May 20, 2013, 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 <jjones@toppan-f.co.jp<javascript:_e({}, ‘cvml’, ‘jjones@toppan-f.co.jp’);>

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


Sent from Millisami’z iPad mini


#5

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 jjones@toppan-f.co.jpwrote:

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 jjones@toppan-f.co.jpwrote:

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


#6

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
stormerider@gmail.comwrote:

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 jjones@toppan-f.co.jpwrote:

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 jjones@toppan-f.co.jpwrote:

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


#7

To have as few moving parts as possible, RVM, rbenv etc. is not desired.

Therefore I am looking for a cookbook that literally just installs ruby
from source.

Install support packages (gcc, readline, libyaml etc.)
download
compile
make
make install.

Not a huge amount of work but if it already exists I would prefer not to
reinvent the wheel.

On 20/05/13 17:49, Morgan Blackthorne 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 <jjones@toppan-f.co.jp
mailto:jjones@toppan-f.co.jp> 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
<jjones@toppan-f.co.jp <mailto:jjones@toppan-f.co.jp>> 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

#8

Actually, my previous email said this looks like it uses rbenv, having
looked at it again, I think I am wrong.

I must have got it mixed up with another one of the ruby options. I
shall have a look at this one, thanks.

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 <jjones@toppan-f.co.jp
mailto:jjones@toppan-f.co.jp> 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

#9

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
<stormerider@gmail.com mailto:stormerider@gmail.com> 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
<jjones@toppan-f.co.jp <mailto:jjones@toppan-f.co.jp>> 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
    <jjones@toppan-f.co.jp <mailto:jjones@toppan-f.co.jp>> 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

#10

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 jjones@toppan-f.co.jpwrote:

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 <stormerider@gmail.com

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 jjones@toppan-f.co.jpwrote:

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 jjones@toppan-f.co.jpwrote:

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


#11

Are you looking for this for workstation development or server
provisioning?

If the latter, I always make a package for my OS package manager and
then place it in an internal repo. Generally that’s Red Hat and I use
Ian Meyer’s spec to compile it on a dev server:
https://github.com/imeyer/ruby-1.9.3-rpm. If Ubuntu, they actually have
a Ruby1.9 package set.

If you are looking for workstation provisioning for OSX, the topic is
complex because OSX already ships with a system Ruby, which is why
everyone is suggesting a Ruby manager. If you don’t want one, you can
look at Seth Chisamore’s omnibus-chef-utensils which will build an
omnibus version of a ruby-chef-development toolchain:

Sascha

Jeffrey Jones 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


#12

“canonical”.

No such thing, in any software, packaging, etc.

There’s only “this seems to work for me, I’m going to test it out, and
if it works, awesome.”

This is the case for pretty much any package, anywhere.

Since many community cookbooks are named after a particular
product/package, there may be an assumption that the “redis” cookbook
is the canonical one, but there’s also “rediso”, “redis2”,
“redis-package” and others not on the site.

So there’s no canonical anything, only things that you can grok and work well.

My 2 cents,
-M

On Mon, May 20, 2013 at 11:31 AM, Sascha Bates sascha.bates@gmail.com wrote:

Are you looking for this for workstation development or server provisioning?

If the latter, I always make a package for my OS package manager and then
place it in an internal repo. Generally that’s Red Hat and I use Ian
Meyer’s spec to compile it on a dev server:
https://github.com/imeyer/ruby-1.9.3-rpm. If Ubuntu, they actually have a
Ruby1.9 package set.

If you are looking for workstation provisioning for OSX, the topic is
complex because OSX already ships with a system Ruby, which is why everyone
is suggesting a Ruby manager. If you don’t want one, you can look at Seth
Chisamore’s omnibus-chef-utensils which will build an omnibus version of a
ruby-chef-development toolchain:
https://github.com/schisamo/omnibus-chef-utensils

Sascha

Jeffrey Jones 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


#13

Ohai,

On May 20, 2013, at 2:41 AM, Jeffrey Jones jjones@toppan-f.co.jp wrote:

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.

Generally speaking, we (Opscode) recommend building a native package for the platform of the desired Ruby version, and use Chef to install that from a local repository. In this age of API driven virtual machines/compute on demand, adding 5 minutes to build Ruby on every single instance borders on “unbearable.”

Further, with the omnibus project0, we do recommend using it for making “full stack” installers for applications, including Ruby or other runtimes required. Generally that is the kind of build that happens in CI such as Jenkins pipelines.

That said, personally, I use Fletcher Nichol’s rbenv cookbook for managing Ruby on my OS X systems.

Cheers,
Joshua