Archives For November 30, 1999

Ruby, the free open-source high-level general-purpose programming language, released new 3.4.0 (then 3.4.1 with quick fix) today at Christmas!

The release introduced it block parameter reference, which behaves very much the same as _1. As the feature request descripted:

it is implemented as a special case of getlocal insn, not a method. it without an argument is considered _1 or a normal local variable if defined. it is considered a method call only when it has any positional/keyword/block arguments.

Continue Reading…

How to Install Ruby in Ubuntu 24.04 LTS

Last updated: December 25, 2024 — 1 Comment

This is a step by step beginners guide shows how to install Ruby and setup local programming environment in Ubuntu 24.04 LTS.

Ruby is an interpreted, high-level programming language designed with an emphasis on programming productivity and simplicity. It was first released 29 years ago in 1995, by Yukihiro Matsumoto in Japan.

Ruby is available to install in Ubuntu in a few different ways, they include:

  • Snap package.
  • Deb package in system repository.
  • Third-party manager with multiple version support.
  • Build from source.

And, here’s how to install them in Ubuntu step by step.
Continue Reading…

Ruby, interpreted object-oriented scripting language, now can be installed easily in Ubuntu 16.04 and higher via Snap package.

The official Ruby snap, containerised software package, was finally released for Linux Desktop. While Ruby is always old in Ubuntu universe repositories, Ruby snap is always updated!

How to Install Ruby Snap in Ubuntu:

1. (Only required for Ubuntu 16.04) Open terminal (Ctrl+Alt+T) and run command to make sure snapd daemon is installed:

sudo apt install snapd snapd-xdg-open

Type user password (no asterisks feedback) when it prompts and hit Enter to continue.

2. For Ubuntu 18.04 and higher, directly install the Ruby snap from Ubuntu Software:

or install it via command (also works in Ubuntu 16.04):

snap install ruby --classic

3. Once installed successfully, check via command /snap/bin/ruby --version:

That’s it!