Table of Contents

Ruby

Ruby is an open source programming language with a focus on simplicity and productivity.

Information

Usage

See which versions are available:

$ module avail ruby

Load one into your environment and run it:

$ module load ruby/3.1
$ ruby -v
ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]

Installation

Notes from the sysadmin during installation:

$ cd /var/scratch
$ wget https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.4.tar.gz
$ tar xf ruby-3.1.4.tar.gz
$ cd ruby-3.1.4
$ ./configure --prefix=/export/apps/ruby/3.1
$ make -j4
$ sudo mkdir -p /export/apps/ruby/3.1
$ sudo chown aorth /export/apps/ruby/3.1
$ make install
$ sudo chown -R root:root /export/apps/ruby/3.1