Toontje
Posts: 20
Joined: Sun Jan 13, 2013 12:51 pm

Compiling Ruby 2.4.1 from source

Sun Apr 16, 2017 8:07 am

takes a day or so on a Raspberry Pi 1 Model B.... Should be in the raspbian repos, IMHO.

User avatar
DougieLawson
Posts: 35347
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Compiling Ruby 2.4.1 from source

Sun Apr 16, 2017 8:19 am

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.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Toontje
Posts: 20
Joined: Sun Jan 13, 2013 12:51 pm

Re: Compiling Ruby 2.4.1 from source

Sun Apr 16, 2017 8:25 am

Yeah but i need 2.4.1. Trying to build this on my old Pi.

User avatar
DougieLawson
Posts: 35347
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Compiling Ruby 2.4.1 from source

Sun Apr 16, 2017 8:32 am

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.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Martin Frezman
Posts: 1020
Joined: Mon Oct 31, 2016 10:05 am

Re: Compiling Ruby 2.4.1 from source

Sun Apr 16, 2017 8:51 am

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(!).
If this post appears in the wrong forums category, my apologies.

Toontje
Posts: 20
Joined: Sun Jan 13, 2013 12:51 pm

Re: Compiling Ruby 2.4.1 from source

Sun Apr 16, 2017 9:03 am

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

User avatar
E3V3A
Posts: 26
Joined: Sun Apr 17, 2016 7:13 am
Location: -∇φ

Re: Compiling Ruby 2.4.1 from source

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.

fruitoftheloom
Posts: 19783
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Compiling Ruby 2.4.1 from source

Wed Apr 04, 2018 5:18 pm

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.
adieu

My other Computer is an Asus CS10 ChromeBit running Chrome Operating System.
HP Envy 4500 Wireless Printer supported by HPLIP software in Raspbian Buster.
Raspberry Pi Model 2B v1.1

Return to “Other programming languages”