Page 1 of 1

Compiling Ruby 2.4.1 from source

Posted: Sun Apr 16, 2017 8:07 am
by Toontje
takes a day or so on a Raspberry Pi 1 Model B.... Should be in the raspbian repos, IMHO.

Re: Compiling Ruby 2.4.1 from source

Posted: Sun Apr 16, 2017 8:19 am
by DougieLawson
There is a version of Ruby in the repo.

Jessie has 1.9.1
Stretch has 2.3.3

It's ancient history because of the way DebIan does their package management.

Re: Compiling Ruby 2.4.1 from source

Posted: Sun Apr 16, 2017 8:25 am
by Toontje
Yeah but i need 2.4.1. Trying to build this on my old Pi.

Re: Compiling Ruby 2.4.1 from source

Posted: Sun Apr 16, 2017 8:32 am
by DougieLawson
Won't ever happen with DebIan/Raspbian before DebIan Buster (the one after Stretch) comes out.

You may be able to find a Ubuntu armhf package for Ruby that you can install on Raspbian.

Re: Compiling Ruby 2.4.1 from source

Posted: Sun Apr 16, 2017 8:51 am
by Martin Frezman
There's really nothing out of the ordinary here.

As noted, Debian is conservative w.r.t. keeping up with the latest versions of things. The usual antidote to this conservatism is "If you want it, build it yourself". As you have done, this is what most people do.

Alternatively, you could install Arch Linux on another SD card. Arch is like the diametric opposite of Debian; they always have the latest-and-greatest, bleeding-edge versions of things. Then, once you have it running on Arch, you could probably copy it from there back to Raspbian. If you're lucky, it might actually all work(!).

Re: Compiling Ruby 2.4.1 from source

Posted: Sun Apr 16, 2017 9:03 am
by Toontje

Code: Select all

installing default gems:      /usr/local/lib/ruby/gems/2.4.0 (build_info, cache, doc, extensions, gems, specifications)
                              bigdecimal 1.3.0
                              io-console 0.4.6
                              json 2.0.2
                              openssl 2.0.3
                              psych 2.2.2
                              rdoc 5.0.0
installing bundle gems:       /usr/local/lib/ruby/gems/2.4.0 (build_info, cache, doc, extensions, gems, specifications)
                              did_you_mean 1.1.0
                              power_assert 0.4.1
                              test-unit 3.2.3
                              net-telnet 0.1.1
                              xmlrpc 0.2.1
                              rake 12.0.0
                              minitest 5.10.1
installing rdoc:              /usr/local/share/ri/2.4.0/system
installing capi-docs:         /usr/local/share/doc/ruby
[email protected]:~/ruby-2.4.1 $ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [armv6l-linux-eabihf]
:D

Re: Compiling Ruby 2.4.1 from source

Posted: Wed Apr 04, 2018 5:07 pm
by E3V3A
Toontje wrote:
Sun Apr 16, 2017 9:03 am

Code: Select all

[email protected]:~/ruby-2.4.1 $ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [armv6l-linux-eabihf]
Great!!
How did you go about it? how long did it take?
I simply DK why the rpieple doesn't keep their binaries updated or at least available to people for download with rvm.

Re: Compiling Ruby 2.4.1 from source

Posted: Wed Apr 04, 2018 5:18 pm
by fruitoftheloom
E3V3A wrote:
Wed Apr 04, 2018 5:07 pm
Toontje wrote:
Sun Apr 16, 2017 9:03 am

Code: Select all

[email protected]:~/ruby-2.4.1 $ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [armv6l-linux-eabihf]
Great!!
How did you go about it? how long did it take?
I simply DK why the rpieple doesn't keep their binaries updated or at least available to people for download with rvm.

You are responding to an out of date Raspbian Jessie post, Jessie is end of life !!


The majority of Raspbian Stretch is just a re-spin of Debian Stretch ARMHF.

If you want Ruby 2.5.x rather than 2.3.x, just point your sources at Buster, install Ruby, then change sources back to Stretch..

..obviously make a full back up first.